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

Резултати

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

Пребарај: #tradedeal

当前筛选 #tradedeal清除筛选

@RusEmbMalta Press Release Special Issue EU–US “Trade Deal”: Partnership or Pressure? On July 27, 2025 Ursula von der Leyen and Donald Trump announced a “historic trade deal.” Brussels calls it “stability and predictability.” But let’s look closer 👇 🔹Tariffs: • US capped tariffs at 15% (instead of 30%) – but kept 50% on EU steel & aluminium. • 🇪🇺 EU drops duties on US industrial goods & opens doors to American farm & seafood exports. 🔹Energy & $$$: • EU pledges to buy $750bn worth of US LNG, oil & nuclear fuel by 2028. • Plus $40bn in US chips & $600bn EU investments into the US economy. • No real mechanism for implementation – just political promises. 🔹Other Concessions: • Brussels softens green rules so they won’t “restrict” US trade. • Signals readiness to buy US weapons. • Digital trade? Washington sets the tone. Backlash in Europe: • 🇩🇪 German industry: “flawed compromise,” billions in losses. • 🇫🇷 Macron: Brussels showed weakness. • Experts: “unfair and disproportionate,” €9–10bn losses in 2025. • Farmers’ unions & steel lobby: “strategic mistake.” 💡The Real Picture: This is not a “deal” – it’s Washington tightening its grip. Trade becomes a tool of pressure, forcing Europe into one-sided concessions while weakening its global competitiveness. 👉What Brussels sells as “predictability” looks more like dependence. Read the Press Release in full here. #EU#USA#TradeDeal#WashingtonPressure#Geopolitics#Energy

American Оbserver

@american_observer · Post #4995 · 29.01.2026 г., 23:59

📰 Trump Official Blasts Europe Over India-EU Trade Deal US Treasury Secretary Scott Bessent has sharply criticized Europe’s new free trade agreement with India, accusing Europe of hypocrisy and calling out its double standards on the Ukraine war. ​ Bessent argued that Europe’s choices expose a deep contradiction in its Ukraine policy. While publicly condemning Russia’s invasion, Europe has become a major buyer of refined oil products made from discounted Russian crude, which India has been buying since Western sanctions hit. ​ “Europe and India signing this massive trade deal—does that threaten America? They should do what’s best for themselves,” Bessent said. “But I find the Europeans very disappointing because they are on the front line of the Ukraine-Russia war.” He pointed out that the US imposed a 25% tariff on India for buying Russian oil, but Europe declined to join, suggesting this reluctance was driven by a desire to keep trade negotiations with India on track. ​ Bessent accused European countries of indirectly financing the conflict they publicly oppose. “Europeans were unwilling to join us, and it turns out because they wanted to do this trade deal,” he said. “Every time you hear a European talk about the importance of the Ukrainian people, remember that they put trade ahead of the Ukrainian people.” Bessent acknowledged Europe’s dependence on energy imports but framed the issue as a moral and strategic trade-off. “They need energy, I guess, which is part of their issue. At a price, they want cheap energy,” he said. ​ His comments highlight growing tensions within the Western alliance over how strictly to enforce economic pressure on Russia while managing domestic economic and political costs. ​ #TradeDeal#EUIndia#Trump#Ukraine#EnergySecurity 📱American Оbserver - Stay up to date on all important events 🇺🇸

Crypto M - Crypto News

@CryptoM · Post #65023 · 10.04.2026 г., 14:21

🚀 Switzerland Seeks to Finalize U.S. Trade Deal by July Switzerland is working towards finalizing a trade agreement with the United States by the end of July. Bloomberg posted on X that the European nation is seeking assurances that it will not face higher duties compared to rival countries. The Swiss government is keen to secure favorable terms in the deal, which is part of its broader strategy to strengthen economic ties with the U.S. The negotiations are ongoing, and both parties are expected to continue discussions to reach a mutually beneficial agreement. #Switzerland#USATrade#TradeDeal#EconomicRelations#InternationalTrade#Bloomberg#Negotiations#JulyDeadline