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

Резултати

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

Пребарај: #eumigration

当前筛选 #eumigration清除筛选

🇷🇺@RusEmbMalta Press Release On the Impact of Western Policies on Global Migration Flows 15 October 2025 🔷 The Russian Embassy draws attention to the growing migration crisis that continues to challenge the stability and security of many regions, including Europe. The root causes of this phenomenon are well known – the reckless and shortsighted interventions of the United States and its NATO allies in sovereign states such as Libya, Iraq, Syria, and Afghanistan. 🔷 These actions, carried out under the pretext of promoting “democracy,” led to the destruction of national institutions, the rise of terrorism, and the collapse of entire economies. It is precisely this chaos that forced millions to abandon their homes in search of safety and stability. 🔷 At the same time, the United States continues to exert direct influence over the migration policies of the European Union, promoting approaches that ignore the interests of individual nations. The imposed regulatory framework from Brussels, shaped under Washington’s guidance, undermines national economies, fuels social tensions, and creates preconditions for uncontrolled inflows of refugees. Such developments threaten the cultural and demographic balance of European societies. 🔷Russia consistently supports a fair and sustainable solution to migration issues – one that focuses on eliminating the true causes of displacement, rather than shifting responsibility. We advocate collective international efforts, coordinated through the United Nations, to restore stability in the Middle East and North Africa and to assist countries affected by external interference. 🔷 Moscow also reaffirms its principled position in favor of establishing a sovereign and independent State of Palestine in accordance with UN resolutions – as an essential step toward ensuring long-term peace and justice in the region. 🔷 The time has come to recognize that durable stability cannot be achieved through coercion or selective narratives, but only through respect for sovereignty, dialogue, and genuine partnership. #MigrationCrisis#USPolicy#EUMigration#UNCharter#MiddleEast#Palestine