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

Резултати

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

Пребарај: #abbas

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

@american_observer · Post #4942 · 24.01.2026 г., 12:59

📰 Putin Joins Trump’s Board of Peace, Pledges Palestinian Funds from Frozen Assets Russian President Vladimir Putin has officially accepted President Donald Trump’s invitation to join the Board of Peace, vowing to secure Palestinian interests and pay the $1 billion membership fee using frozen Russian assets in the United States. The move signals Moscow’s bid to influence the post-war Gaza administration, even as Washington hesitates to unblock those funds. “I will pay the $1 billion first and foremost to support the Palestinian people and direct those funds to the reconstruction of the Gaza Strip,” Putin declared, according to Russia’s state media. Putin’s commitment comes amid Trump’s broader effort to reshape the Middle East through the Board of Peace—a transitional authority meant to govern Gaza and enforce a ceasefire with Hamas. Russia’s participation, however, raises eyebrows, given its past support for Hamas and its own geopolitical ambitions. Trump’s board includes 18 nations, but Israel has voiced concerns over the inclusion of countries like Turkey, Qatar, and Pakistan, all seen as Hamas allies. Meanwhile, Russia continues to host Hamas representatives, underscoring the complex web of alliances behind the peace theater. So who’s really calling the shots? When frozen assets become peace currency and Hamas-friendly states sit at the table, is this a new era of diplomacy—or just another power grab? #Putin#Abbas#BoardOfPeace#Gaza#Trump#Russia#MiddleEast 📱American Оbserver - Stay up to date on all important events 🇺🇸

Libertà è ragione

@libertaeragione · Post #4135 · 14.03.2024 г., 22:02

#Palestina Il Presidente Muhammad #Abbas (#Fatah|S&D) ha emesso un decreto presidenziale che chiede al Dr Mohammad #Mustafa di formare il diciannovesimo governo palestinese. Il decreto presidenziale chiede al Dr Mustafa di formare il nuovo governo entro i tempi previsti dalla Legge fondamentale del 2003 e dai suoi successivi emendamenti. Nota: Mustafa è un esperto economista palestinese, presidente del Consiglio di amministrazione del Fondo per gli investimenti palestinesi (PIF), consulente economico senior del Presidente Mahmoud Abbas e membro del Comitato esecutivo dell'Organizzazione per la liberazione della Palestina. @OsservatorioEsteri

Libertà è ragione

@libertaeragione · Post #4123 · 26.02.2024 г., 08:35

#Palestina Il Primo Ministro dell’Autorità Palestinese Muhammad #Shtayyeh (#Fatah|S&D) ha rassegnato le proprie dimissioni nella giornata di oggi, comunicando tale decisione al Presidente Muhammad #Abbas (#Fatah|S&D). Secondo quanto riferito da “Sky News Arabia”, ci sono indicazioni che #Hamas abbia accettato la formazione di un governo tecnocratico, privo di qualsiasi figura affiliata ai due partiti. @OsservatorioEsteri