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

Резултати

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

Пребарај: #gustavopetro

当前筛选 #gustavopetro清除筛选
Venezuelanalysis

@venanalysis · Post #2039 · 25.07.2025 г., 20:35

📰 NEWS | Maduro Confirms Sale of Venezuelan Fertilizer Firm Monómeros to Colombia, Ending Privatization Rumors Venezuelan and Colombian authorities are engaged in talks for the sale of agrochemical producer Monómeros. A confidential agreement reportedly set a base price. The firm, which had a tumultuous time under Venezuelan opposition management, is set to be purchased by the Colombian state as the Petro government aims to maintain stability in the agricultural inputs market. Read our report: https://venezuelanalysis.com/news/maduro-confirms-sale-of-venezuelan-fertilizer-firm-monomeros-to-colombia-ending-privatization-rumors/ #Monomeros#Fertilizer#Venezuela#GustavoPetro

Venezuelanalysis

@venanalysis · Post #1810 · 19.11.2024 г., 21:22

Colombia’s corporate watchdog has stepped in to oversee Monómeros, the Venezuelan state-owned agrochemical firm, as concerns grow over a potential sale. President Petro opposes privatization plans, citing risks to the agricultural sector. Read the full report here: https://shorturl.at/KAezV #colombiavenezuelarelations #gustavopetro#monómeros#monomeros

Crypto M - Crypto News

@CryptoM · Post #64736 · 09.04.2026 г., 16:48

🚀 Colombia Limits Pension Funds' Overseas Investments to Boost Local Economy Colombia has announced a new policy to cap pension funds' overseas investments at 30%, a decision supported by President Gustavo Petro. Bloomberg posted on X, highlighting that this move is intended to stimulate domestic economic growth by redirecting billions of dollars into local assets. The policy aims to strengthen the country's financial markets and encourage investment within Colombia, potentially leading to increased economic stability and development. #Colombia#PensionFunds#OverseasInvestments#LocalEconomy#EconomicGrowth#FinancialMarkets#Investment#GustavoPetro#EconomicPolicy#Development

Crypto M - Crypto News

@CryptoM · Post #65077 · 10.04.2026 г., 20:08

🚀 Colombia to Implement 100% Tariffs on Ecuadorian Imports Amid Diplomatic Strain Colombia has announced plans to impose 100% tariffs on imports from Ecuador, escalating trade and diplomatic tensions between the two nations. Bloomberg posted on X, highlighting the growing discord between Colombian President Gustavo Petro and Ecuadorian President Daniel Noboa. The decision marks a significant shift in the trade relationship between the neighboring countries, potentially impacting economic ties and regional cooperation. The move comes amid broader geopolitical challenges in the region, with both leaders navigating complex domestic and international pressures. The tariff imposition is expected to affect various sectors, including agriculture and manufacturing, as businesses and consumers brace for potential disruptions. Observers are closely monitoring the situation, anticipating further developments in the diplomatic standoff. #Colombia#Ecuador#Tariffs#TradeWar#DiplomaticTensions#GustavoPetro#DanielNoboa#EconomicImpact#RegionalCooperation#Agriculture#Manufacturing