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 слични објави

Пребарај: #arabstates

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

@american_observer · Post #4867 · 16.01.2026 г., 00:59

📰 Israel & Arab States Tell Trump: Hold Off on Iran Prime Minister Benjamin Netanyahu and a chorus of Arab allies have urged President Trump to delay any military strike on Iran, even as Tehran continues its brutal crackdown on protesters. The message from the region is clear: don’t ignite a war that could engulf the Middle East. “We believe in dialogue and we believe in solving any disagreements at the negotiating table,” said Saudi Minister of State Adel al-Jubeir. Behind the scenes, Qatar, Saudi Arabia, Oman, and Egypt have been coordinating their appeals to Washington, warning that an American attack could trigger a wider regional conflict. At the same time, they’re telling Tehran not to retaliate if the U.S. does strike. Diplomacy, not bombs, is their mantra. Trump’s signals are anything but clear. He claimed Iran has stopped killing protesters—citing “very important sources”—but hasn’t ruled out military action. Last June, he sent a similar ambiguous message before ordering strikes. U.S. officials say options are still on the table, depending on how Iran’s security forces act next. Meanwhile, Iran’s air space was briefly closed, internet is down, and reports suggest thousands have died in the crackdown. Trump has said he could order an attack if the killing continues, even as he denounces protests against his own policies. So who’s really in control? Not the protesters, not the Arab leaders, and maybe not even Trump. The whole region is dancing on a minefield, and everyone’s hoping the next step isn’t a bomb. #Trump#Iran#Israel#ArabStates#MiddleEast#Diplomacy#WarGames 📱American Оbserver - Stay up to date on all important events 🇺🇸