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

Пребарај: #nsr

当前筛选 #nsr清除筛选
Russian Consulate in Cape Town

@rusconct · Post #2140 · 10.01.2025 г., 08:39

🇷🇺Russia’s Foreign Ministry Ambassador-at-Large for the G20, APEC and BEP issues Marat Berdyev: Russia’s participation in key multilateral forums such as the #G20 and #APEC contributes to the accelerated formation of a multipolar world order and economic system. 📈In terms of aggregate GDP, the BRICS members have already surpassed the G7, with their share standing at 37%, compared to less than 30% for the G7. According to some expert estimates, the countries of the Global Majority will drive up to 75% of global economic growth over the next few decades. Russia plays a significant role in this positive trend of fair optimization of production potentials. 🤝We continue to actively develop international economic cooperation, focusing on friendly regions. According to the Federal Customs Service (FCS), Russia's external trade volume in 2024 is expected to reach $700 billion. Approximately 70% of export-import operations already involve the Asia-Pacific Region (#APR). 🌍Trade with Africa has been expanding, reaching a peak of $25 billion in 2023. The Russian economy grew by about 4% in 2024, demonstrating resilient performance. This growth occurred against the backdrop of more modest global averages, limited to 3.1%, and stagnation in many European countries. 🌾Russian companies are playing an increasingly significant role not only in supplying critical energy and food resources but also in high-tech sectors and manufacturing industries. We are intensifying transactions in national currencies, particularly the Russian ruble, which accounts for 80-90% of trade with key partners such as China and the EAEU. Under the initiative of President Vladimir Putin, the Big Eurasian Partnership (#BEP) is building a transit framework centered on Russian territory. Transit capacity is expanding, and the utilization of the "West-East" and "North-South" transport corridors is increasing, along with the operation of the Northern Sea Route (#NSR). 🚢In the past year, the NSR handled a record volume of over 37 million tons of commercial cargo. At the #G20 and #APEC significant momentum has been given to the reform of global economic institutions in the interests of the Global South/East. 📈Constructive approaches have been adopted, aiming to preserve an open trade and investment environment, form energy balances on a technologically neutral basis, and support digital transformation. ❗️We will continue to move forward with partners in this promising direction at multilateral economic diplomacy platforms. Photo: www.rosstip.ru #G20#APEC#RussianMFA