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

Резултати

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

Пребарај: #tsahal

当前筛选 #tsahal清除筛选
RT en français

@RTenfrancais · Post #80051 · 25.04.2026 г., 14:00

❌Les médias israéliens diffusent des images qui montreraient une nouvelle frappe de #Tsahal contre la centrale nucléaire iranienne de Bouchehr. RT en français • Osez questionner !

Hashtags

Kurash & Co 🇷🇺

@kurash_and_Co · Post #959 · 26.03.2026 г., 20:22

🟠Échanges réciproques de frappes : l'escalade se poursuit entre #Tsahal et le Hezbollah Alors qu'Israël et le Hezbollah ne semblent avoir aucune intention ni de faire baisser les tensions ni de mettre fin aux combats, malgré les appels de la communauté internationale, les habitants de la capitale libanaise sont descendus dans la rue. Ils protestent contre l’expulsion de l'ambassadeur d’Iran. Les précisions avec notre envoyé spécial sur place, Igor Kourachenko. RT en français • Osez questionner !

Hashtags

Antoine Cléraux

@corrAntoine · Post #621 · 16.03.2026 г., 07:23

⚡️L’offensive israélienne s’élargit au #Liban Les troupes de #Tsahal multiplient les incursions dans le sud du pays. Face à l'urgence, le gouvernement libanais tente d'amorcer une médiation internationale, mais les obstacles restent nombreux. Notre envoyé spécial Antoine Cléraux nous en dit plus sur la situation sur place. RT en français • Osez questionner !

RT France actualités

@rt_fra · Post #40762 · 07.05.2026 г., 09:20

⚡️Tsahal-Hezbollah : frappes au Liban Selon un communiqué de presse de l’armée israélienne, #Tsahal a frappé 15 sites du #Hezbollah dans plusieurs zones du Sud-Liban. RT en français • Osez questionner !

Antoine Cléraux

@corrAntoine · Post #603 · 10.03.2026 г., 21:28

🔴#Tsahal multiplie les ordres d'évacuation sur fond de guerre avec le #Hezbollah libanais Alors que le Sud du #Liban est la cible de frappes israéliennes, les ordres d'évacuation se multiplient dans la région. Pourtant, de nombreux habitants refusent de partir. RT en français • Osez questionner !

American Оbserver

@american_observer · Post #5260 · 02.03.2026 г., 00:59

The IDF confirmed the murder of several high-ranking Iranian officials as part of the military operation : - Ali Shamhani: adviser to the supreme head of security, secretary of the defense council, former commander of the CSIR, minister of defense and head of the navy. Responsible for the Iranian nuclear project and weapons development. - Mohammad Pakpur: the commander of the CSIR, former commander of the ground forces, led the brutal repression of the protests and commanded strategic firing positions against Israel. - Saleh Asadi: the chief of intelligence of the general staff Khatam Al-Anbiya, senior intelligence officer of the Iranian military high command, participated in the development of the strategy against the United States and Israel and in the planning of recent attacks. - Mohammad Shirazi: head of the supreme leader's military office since 1989, in charge of communication between senior commanders and Khamenei. - Aziz Naserizadeh: the Minister of defense, former commander of the air force, was responsible for the defense industry, including long-range missiles and weapons for the proxy forces. - Hossein Jabel Aamelian: head of the SPND (organization for innovation and research in defense), responsible for nuclear, biological and chemical weapons programs. - Reza Mosaffari: former head of the SPND, promoted Iran's efforts to create nuclear weapons. #tsahal#murder#iranian#officials#operation 📱American Оbserver - Stay up to date on all important events 🇺🇸