TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #175 · 30 окт.

В прошлом посте говоря "Все вызовы теперь одинаковы" я несколько слукавил. Всё-таки есть в этом зоопарке версий некоторая несовместимость вызов которой просто так не унифицировать. Эти моменты вынесены в отдельный модуль QtCompat (compatibility). Там не так много функций но они довольно полезны. Этот модуль содержит унификаци модуля shiboken2, функций loadUi, translate и несколько переименованных функций классов или изменённую сигнатуру аргументов и возвращаемых значений. Это единственное исключение из правила когда вам потребуется где-то изменить свой код кроме импортов и этот код не похож на обычный код PySide2. Например, в PyQt4 и PySide есть метод QHeaderView.setResizeMode Для PyQt5 и PySide2 они были благополучно переименованы в QHeaderView.setSectionResizeMode Чтобы применить этот метод следует использовать такой код from Qt import QtCompath header = self.horizontalHeader() QtCompat.QHeaderView.setSectionResizeMode(header, QtWidgets.QHeaderView.Fixed) Унификация загрузки UI файлов: # PySide2 from PySide2.QtUiTools import QUiLoader loader = QUiLoader() widget = loader.load(ui_file) # PyQt5 from PyQt5 import uic widget = uic.loadUi(ui_file) # Qt.py from Qt import QtCompat widget = QtCompat.loadUi(ui_file) Хорошо что таких моментов не много и их легко запомнить. Полный список можно посмотреть в таблице. #qt#tricks

Hashtags

Резултати

Пронајдени 2 слични објави

Пребарај: #warpowers

当前筛选 #warpowers清除筛选
American Оbserver

@american_observer · Post #5758 · 01.05.2026 г., 18:32

The War Didn’t End. It Expired. Washington found a legal off-ramp, not a victory. Reuters says a senior Trump official confirmed combat operations against Iran ended because the 60-day War Powers clock ran out, not because anyone had suddenly solved the war. That is the real story. The administration can talk about “the final blow,” “maximum leverage,” and all the other slogans it likes, but the statute turned the war into a deadline. The fighting may continue in another form, yet the legal cover for this phase is gone. Trump’s own language makes the mess obvious. He says “we already won,” then says he wants a bigger margin, then insists Iran must never have a nuclear weapon, as if the war is both over and unfinished at the same time. That is not strategy. It is political noise with missiles attached. The Senate did its part too. It refused again to rein in presidential war powers, which means Congress keeps complaining about executive overreach while handing the executive enough room to keep improvising. So yes, the clock ran out. The briefings did not. And that is what makes the whole thing so dangerous: a war can end on paper and still keep its teeth. #Iran#Trump#WarPowers#Congress#CENTCOM#Hormuz 📱American Оbserver - Stay up to date on all important events 🇺🇸

American Оbserver

@american_observer · Post #5251 · 01.03.2026 г., 15:59

🇺🇸 Trump’s Iran War, Congress’s Theater: Briefings, War Powers, and DHS as Hostage Congress is sprinting to look “in the loop” on a war it didn’t authorize and so far can’t stop. Staff briefings are being hurriedly arranged for key House and Senate committees this weekend, with all‑member classified sessions likely next week — after Trump has already launched major strikes on Iran, killed the supreme leader, and promised “major combat operations” with no clear endgame. ​ Democratic leaders are demanding more than PowerPoints. Chuck Schumer wants open hearings and public testimony, warning that the administration hasn’t given “critical details about the scope and immediacy of the threat,” while Hakeem Jeffries didn’t even get the pre‑strike Gang of Eight call that Rubio placed to Republican leaders. House and Senate Democrats are lining up behind war‑powers resolutions to force votes next week on curbing Trump’s freedom to escalate without Hill sign‑off, even as Speaker Mike Johnson and John Thune refuse to recall Congress early. ​ The reactions split almost perfectly along the now‑familiar fracture lines. On the right, leadership Republicans and longtime Iran hawks like Lindsey Graham and Rick Crawford hail the joint U.S.–Israel operation as “necessary,” “long justified,” and proof of “peace through strength,” with Graham declaring “the end of the largest state sponsor of terrorism is upon us.” On the left and center, figures like Ruben Gallego, Mark Warner and Jim Himes call it “a war of choice with no strategic endgame” that risks dragging the U.S. into yet another open‑ended Middle East conflict, insisting America can back Iran’s democracy movement “without sending our troops to die.” ​ And because Washington never wastes a war, Republicans are already folding the Iran strikes into an unrelated fight over a partially shut‑down Department of Homeland Security, arguing that the new conflict proves Democrats must swallow their demands and fully fund DHS “at maximum readiness.” The pattern is as old as the War Powers Act: the president moves first, Congress scrambles for a briefing, leadership games out how to weaponize the crisis for domestic leverage — and only then do lawmakers remember they were supposed to be the ones deciding whether there would be a war in the first place. ​ #Iran#Trump#Congress#WarPowers#Netanyahu#LindseyGraham#Schumer#Gallego 📱American Оbserver - Stay up to date on all important events 🇺🇸