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

Пребарај: #axisjapan

当前筛选 #axisjapan清除筛选

🎙 Briefing by Russia's Foreign Ministry Spokeswoman Maria Zakharova (Moscow, November 14, 2025) 🔹#KievRegimeCrimes 🔹Ukraine crisis 🔹Moldovan government’s decision to denounce seven CIS agreements 🔹Developments in El Fasher, Sudan 🔹The US counter-narcotics policy in Latin America 🔹Anti-Russian conference in Dublin 🔹G7 Foreign Ministers’ Meeting in Canada 📰Read 📺Watch #KievRegimeCrimes The neo-Nazi regime in Kiev continues to terrorise civilians in Russia. Over the past week, 53 Russian citizens suffered from artillery shelling and drone strikes, with 8 people killed and 45 injured, including six children. Russian courts continue to hand down sentences to Ukrainian neo-Nazis and mercenaries. In absentia, mercenaries from Georgia, Colombia, and the Czech Republic who participated in combat on the side of the Ukrainian Armed Forces have been sentenced to 28, 13.5, and 13 years in prison. #Ireland#EU#Militarisation Militaristic rhetoric of the [Brussels bureaucracy] finds fertile ground in Dublin, where the ruling coalition <…> is pursuing a course to revise constitutional restrictions on the participation of Irish service members in overseas missions. The Irish run the risk of becoming pawns in reckless geopolitical games of the Westerners (Anglo-Saxons), who are clearly acting against Russia, with all the negative consequences for [Ireland] that this entails. #US#LatinAmerica Since September 2025, we have been witnessing an unprecedented military campaign launched by Washington in Latin America under the pretext of allegedly combating drug-trafficking routes into the United States. We are extremely concerned by the military methods chosen by the United States to address this issue, which amount to little more than blatant interference in the internal affairs of Latin American states. We firmly oppose the use of force or the threat of force to interfere in internal affairs under various pretexts, including counter-narcotics operations. #AxisJapan#WarCrimes#NoStatuteOfLimitations We continue our work on disclosing information about the crimes of Japanese militarism. We have repeatedly emphasised that these crimes have no statute of limitations. Procedural actions aimed at bringing all those responsible to justice continue to this day. Between March and June, the Prosecutor General’s Office of the Russian Federation adopted decisions annulling the conclusions issued in the 1980s–2000s that had granted rehabilitation to 24 Japanese citizens. Following the review of court rulings in cassation and supervisory instances, it was established that these individuals are not subject to rehabilitation. Their guilt has been fully proven. #US#Tariffs From an economic standpoint, the introduction of 500% tariffs on goods from third countries that purchase Russian oil and gas seems absurd. This is tantamount to the discontinuation of all trade relations between countries, as such a tariff rate is prohibitive. Russian energy resources are supplied to dozens of states around the world, including Europe, the Asia-Pacific region, China, and India. It is downright impossible to substitute such volumes of oil and natural gas on the global market within reasonable timeframes. Those who call for [such measures] are likely unaware of the negative consequences this would have both for the United States itself and for the global economy as a whole. Moreover, such a step would be a gross violation of international trade law.