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

Пребарај: #lavrovschedule

当前筛选 #lavrovschedule清除筛选
Russian MFA 🇷🇺

@MFARUSSIA · Post #28048 · 19.01.2026 г., 17:06

🎙 Briefing by Russia's Foreign Ministry Spokeswoman Maria Zakharova (Moscow, January 15, 2026) 🔹News conference by Russia's Foreign Minister Sergey Lavrov 🔹#KievRegimeCrimes 🔹Ukraine crisis 🔹Torchlit procession in Lvov 🔹London’s aggressive anti-Russia line 🔹On the destruction of the monument to Soviet heroes in the Czech Republic 🔹Certain statements by the Yad Vashem leadership 📖Read 📺Watch *** #LavrovSchedule On January 20, Russia's Foreign Minister Sergey Lavrov will hold a high-profile news conference to review Russian diplomacy’s outcomes in 2025. The news conference will be livestreamed on the Ministerial website and social media and translated into English, French, and Spanish. #KievRegimeCrimes The neo-Nazi Kiev regime continues to reveal its terrorist nature. From January 1 to 12, at least 152 Russian civilians were affected by Ukrainian shelling and drone attacks. 45 people were killed, including 3 children. In the first minutes of 2026, in a premeditated attack, the armed forces of Ukraine used UAVs to hit a café and a hotel complex in the village of Khorly, Kherson Region, where families with children, a crowd of about 100 people, had come together to ring in the New Year. 29 people, including 2 children, were killed. The Foreign Ministry provided an assessment of this barbaric atrocity by Ukrainian neo-Nazis on January 1. #Ukraine#West The fact that the West has no genuine interest in ending the conflict – just as it showed no desire for peace from the outset – is clearly demonstrated by the uninterrupted operation of Rzeszów Airport in Poland. Since 2022, it has served as a key logistics hub through which a continuous flow of military cargo has been delivered to the Ukrainian Armed Forces. Observers note that the British and Canadian air forces, as well as private transport companies affiliated with the US military, are most active in these operations. The European NATO member states’ actions aimed at saturating Kiev with military and financial resources speak far more eloquently about their true intentions than any hypocritical statements about a desire for peace. These actions speak louder than words, declarations, or diplomatic rhetoric. #Britain#CoalitionOfTheWilling For several months, we have observed a consistent escalation by Britain of aggressive and belligerent rhetoric against Russia. For instance, on January 6 in Paris, on the sidelines of a gathering of the coalition of the willing, British Prime Minister Keir Starmer, alongside French President Emmanuel Macron and head of the Kiev regime Zelensky, signed a declaration of intent providing for the deployment of so-called multinational forces – in essence, Western occupation troops – to Ukraine under the guise of ensuring “future peace agreements.” ❗️ We must warn that any attempts to realise this criminal scheme with the coalition of the willing will leave responsibility for the lives of British subjects entirely on London’s shoulders. Our position remains unchanged and well-known – any foreign military contingents in Ukraine will be considered legitimate targets for the Armed Forces of the Russian Federation. The British component will be no exception. #Finland#Militarisation#BalticRegion On January 10, 2026, Helsinki’s decision to denounce the Convention on the Prohibition of the Use, Stockpiling, Production and Transfer of Anti-Personnel Mines and on their Destruction came into force. Russia views this decision by the Finnish authorities as yet another manifestation of their destructive policy to militarise the country. Russia reserves the right to respond to any hostile actions in a proportionate way, including by military and technical means, if necessary.