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

Резултати

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

Пребарај: #statehood

当前筛选 #statehood清除筛选
Red Nile

@rednile12 · Post #10508 · 27.12.2025 г., 23:14

Selective Sovereignty: Why Somaliland Remains Unrecognized By @rednile12 Media International law says sovereignty is universal—but in practice, recognition is political. The 2005 AU Fact-Finding Mission confirmed Somaliland’s independence claim as “historically unique and self-justified”, meeting all statehood criteria: population, borders, government, and capacity for international relations. Yet Somaliland remains unrecognized, while Eritrea, South Sudan, East Timor, and Kosovo gained recognition—often under weaker legal conditions. 💠The takeaway: Sovereignty isn’t earned by law or stability; it is granted selectively, depending on geopolitics and institutional convenience. ➡️READ MORE:Selective Sovereignty – Full Analysis #Somaliland#AfricanUnion#InternationalLaw#Sovereignty#Geopolitics#RedNileMedia#UN#EU#Africa#Statehood

MessageInABottle

@mib_messageinabottle · Post #6874 · 22.05.2024 г., 16:40

Official Representatives to the #UN from #Ireland, #Spain and #Norway pose for photos at the UN with the Palestinian UN representative, after the 3 became the first European countries to officialy recognise #Palestinian#Statehood. #Israel's current #genocide attempt in Gaza has revived support in #Europe for Palestinian statehood. Norway, Spain and Ireland have defied threats from Israel, which recently announced its intent to recall its envoys from Ireland and Norway for discussions over the move. Other European nations, such as #Malta and #Slovenia in March, have also expressed "readiness to recognise Palestine" when "the circumstances are right". #Australia has recently floated the possibility of unilaterally endorsing Palestinian statehood. Additionally French President Emmanuel #Macron has also said the question of recognising a Palestinian state without a negotiated peace is no longer "a taboo for #France".