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

Пребарај: #militaryactions

当前筛选 #militaryactions清除筛选
Crypto M - Crypto News

@CryptoM · Post #65038 · 10.04.2026 г., 15:25

🚀 Trump Urges Israel to Ease Military Actions in Lebanon Amid U.S.-Iran Talks U.S. President Donald Trump has requested Israeli Prime Minister Benjamin Netanyahu to reduce military actions in Lebanon to avoid disrupting upcoming U.S.-Iran negotiations. According to ChainCatcher, Trump communicated with Netanyahu, emphasizing that while the U.S. understands Israel's security concerns, it is crucial to moderate military strikes to protect the forthcoming talks. A U.S. official disclosed that the conversation between Trump and Netanyahu was notably shorter than usual. The official noted that this is the first time the Trump administration has asked Israel to ease its military operations against Hezbollah in Lebanon. This pressure comes after Iran and mediator Pakistan accused Israel of violating a ceasefire agreement, raising concerns for Trump that continued military actions could affect the U.S.-Iran ceasefire and disrupt the openness of the Strait of Hormuz. #Trump#Israel#Lebanon#USIranTalks#Netanyahu#Hezbollah#MilitaryActions#Ceasefire#StraitOfHormuz

Crypto M - Crypto News

@CryptoM · Post #64705 · 09.04.2026 г., 15:17

🚀 U.S. Stock Indices Rise Briefly as Trump Urges Netanyahu to Reduce Military Actions in Lebanon, U.S. Media Reports U.S. stock indices experienced a brief surge, with the Nasdaq turning positive. According to Jin10, U.S. media reports that U.S. President Donald Trump has requested Israeli Prime Minister Benjamin Netanyahu to scale back military operations in Lebanon. This development comes amid ongoing geopolitical tensions in the region. The request from President Trump highlights the U.S. administration's involvement in seeking to de-escalate the situation. The market's reaction reflects investor sentiment towards potential changes in geopolitical dynamics. The impact of these discussions on future market movements remains to be seen. #USStockIndices#Trump#Netanyahu#MilitaryActions#Lebanon#GeopoliticalTensions#InvestorSentiment#MarketReaction#Nasdaq#DeEscalation