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

Резултати

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

Пребарај: #russiapanama

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

@MFARUSSIA · Post #28899 · 29.03.2026 г., 06:01

🇷🇺🇵🇦 March 29 marks the 35th anniversary of diplomatic relationsbetween Russia and Panama Bilateral ties have a much longer history though: consular and trade relations were first established in November 1903, when the Russian Empire recognised the independence of the Central American state almost immediately after it was declared. Following the formation of the USSR, Panama closed its existing consulates in our country, although the two nations continued to maintain diverse and mutually beneficial cooperation. During World War II, Panama joined the Allied Powers, demonstrating solidarity in the fight against Nazism. #Victory81: One of the most significant episodes in the history of bilateral relations was the passage of a Soviet submarine squadron through the Panama Canal in November-December 1942. The aim was to help protect the Allied Arctic convoys, which supplied military equipment and goods to the USSR via the North Atlantic under the Lend-Lease programme. This support underscored the friendly and cooperative relations between the USSR and Panama, as well as their unity in the shared fight against Nazism. 🤝 Today, cooperation between our countries is grounded in the provisions of the 1997 Treaty on the Principles of Relations and Cooperation, as well as the preceding Declaration of the same name signed in 1994 during a visit to Moscow by Panama’s Foreign Minister José Raúl Mulino, who now serves as the country’s President. #Panamais a promising trade and economic partner for Russia, with its unique geographical location and well-developed trade and financial infrastructure. 💬 Foreign Ministry Spokeswoman Maria Zakharova during her weekly briefing (March 25, 2026): “The Russian-Panamanian ties have much potential. Its implementation is consistently achieved through a constructive political dialogue, promotion of inter-parliamentary and inter-agency contacts, and expansion of scientific, educational and academic exchanges and cultural-humanitarian cooperation as a whole.” 🎉 Congratulations to our colleagues and the people of Panama on this shared occasion! We wish you well-being, prosperity, and success. #RussiaPanama#RussiaLatinAmerica

Noticias de LAD🇷🇺

@LAD_MAERusia · Post #23190 · 29.03.2026 г., 08:54

🇷🇺🇵🇦 March 29 marks the 35th anniversary of diplomatic relationsbetween Russia and Panama Bilateral ties have a much longer history though: consular and trade relations were first established in November 1903, when the Russian Empire recognised the independence of the Central American state almost immediately after it was declared. Following the formation of the USSR, Panama closed its existing consulates in our country, although the two nations continued to maintain diverse and mutually beneficial cooperation. During World War II, Panama joined the Allied Powers, demonstrating solidarity in the fight against Nazism. #Victory81: One of the most significant episodes in the history of bilateral relations was the passage of a Soviet submarine squadron through the Panama Canal in November-December 1942. The aim was to help protect the Allied Arctic convoys, which supplied military equipment and goods to the USSR via the North Atlantic under the Lend-Lease programme. This support underscored the friendly and cooperative relations between the USSR and Panama, as well as their unity in the shared fight against Nazism. 🤝 Today, cooperation between our countries is grounded in the provisions of the 1997 Treaty on the Principles of Relations and Cooperation, as well as the preceding Declaration of the same name signed in 1994 during a visit to Moscow by Panama’s Foreign Minister José Raúl Mulino, who now serves as the country’s President. #Panamais a promising trade and economic partner for Russia, with its unique geographical location and well-developed trade and financial infrastructure. 💬 Foreign Ministry Spokeswoman Maria Zakharova during her weekly briefing (March 25, 2026): “The Russian-Panamanian ties have much potential. Its implementation is consistently achieved through a constructive political dialogue, promotion of inter-parliamentary and inter-agency contacts, and expansion of scientific, educational and academic exchanges and cultural-humanitarian cooperation as a whole.” 🎉 Congratulations to our colleagues and the people of Panama on this shared occasion! We wish you well-being, prosperity, and success. #RussiaPanama#RussiaLatinAmerica