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

Пребарај: #hassannasrallah

当前筛选 #hassannasrallah清除筛选
Marwa Osman/MidEaStream

@Marwa_OsmanLB · Post #3365 · 29.09.2024 г., 13:19

Statement by the President of the Syrian Arab Republic, Dr. Bashar al-Assad To the Lebanese National Resistance To the family of the martyr, #HassanNasrallah My message is not to console you on the martyrdom of the Resistance leader, for over the past decades, you have demonstrated such resilience, strength, determination, and solidarity that no tragedy, no matter how great, could weaken you. You come from a school of struggle that knows only perseverance and steadfastness on the path of truth, no matter how high the cost. Noble and pure blood is only spilled in the pursuit of justice and its causes. The Resistance does not weaken with the martyrdom of its leaders; instead, it remains firmly rooted in the hearts and minds of its people. Great leaders, during their lifetimes, build the doctrine of struggle, chart its course, and establish its path. When they depart, they leave behind a legacy of thought and a practical approach to honor and resistance. They build for that inevitable hour of destiny, which does not come by chance but carries a profound message and consequence, as it transitions them from temporary presence among us to eternal immortality in our collective memory and consciousness, becoming an enduring symbol of resistance for generations to come. The Resistance is both an idea and a principle. The martyr, Hassan Nasrallah, is its memory and its history. He will never be regarded merely as a legend but will remain a path that creates a reality centered on the Resistance, with pride as its essence, dignity as its compass, liberation as its goal, and his name—Hassan Nasrallah—as its guiding light across generations. We are confident that the Lebanese National Resistance will continue on the path of struggle and justice against occupation and will remain the steadfast shoulder supporting the Palestinian people in their just cause. The martyr Nasrallah will always be remembered by the Syrian people for his unwavering stance, leading the Lebanese National Resistance alongside Syria in its battle against the tools of Zionism, despite the burdens he carried in his confrontation. This memory of loyalty will enshrine the name of the martyr, Hassan Nasrallah, forever. September 29, 2024 President Bashar al-Assad

Marwa Osman/MidEaStream

@Marwa_OsmanLB · Post #3700 · 23.11.2024 г., 03:04

The missiles deployed in the Israeli enemy airstrikes on Fathallah street in the heart of the capital #Beirut were advanced bunker-buster (seismic) bombs, highly toxic, generating an enormous blast that resonated as far as Sidon and the surrounding mountain regions. Notably, these are the same type of strikes previously employed in attempts to target #Hezbollah Secretary-General Sayyed #HassanNasrallah and Sayyed #HashemSafieddine. سترك يا رب.