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

Пребарај: #greatpowercompetition

当前筛选 #greatpowercompetition清除筛选
American Оbserver

@american_observer · Post #4780 · 06.01.2026 г., 01:00

Israel Flexes New Diplomatic Muscle in Recognition of Somaliland Israel’s recognition of Somaliland isn’t just about diplomacy—it’s about power, positioning, and a new chapter in the Red Sea’s great game. By cutting a deal for intelligence sharing and access to strategic waterways, Israel has become a player in the Horn of Africa, where Arab rivals are jostling for influence. ​ "No one can ignore the strategic location of Somaliland," said Danny Danon, Israel’s ambassador to the U.N. The Bab al-Mandab Strait, just north of Somaliland, is a vital chokepoint for global shipping—and now, Israel has a partner directly across from Houthi-held territory in Yemen. ​ This move, widely condemned, signals Israel’s growing independence on the world stage. After two years of war, the country is less concerned with what others say and more focused on securing its own interests—no longer just with military might, but with diplomatic boldness. ​ Israel’s recognition of Somaliland is rare: a Muslim-majority entity, no U.S. backing, and a clear statement that Israel is now a diplomatic heavyweight. The deal gives Israel leverage in the Red Sea, while Somaliland hopes it will inspire other countries to follow suit—though the U.N. still doesn’t recognize its independence. ​ Houthi leaders have called the move a “hostile and illegitimate act,” and Somalia sees it as unacceptable interference. But Israel’s message is clear: “Spoiler alert: no one will determine for Israel whom it may conduct diplomatic relations with,” wrote Foreign Minister Gideon Sa’ar. ​ So who’s winning? Israel, for now. The region, for never. And the Red Sea? Still a battleground—just with new players at the table. ​ #israel#somaliland#proxywar#greatpowercompetition 📱American Оbserver - Stay up to date on all important events 🇺🇸

American Оbserver

@american_observer · Post #4779 · 06.01.2026 г., 00:03

Trump’s America First Doctrine: Back to the Future, With More Guns President Donald Trump’s overnight raid in Venezuela marks a bold revival of U.S. dominance in the Western Hemisphere—dubbed the so-called “Donroe Doctrine” by the White House, a Trumpian twist on Monroe’s original. The message is clear: the Americas are America’s backyard, and the rules are being rewritten for the 21st century. ​ "The goal of the policy is to see changes in Venezuela that are beneficial to the United States first and foremost," said Secretary of State Marco Rubio, framing the intervention as a win for both Washington and the Venezuelan people. ​ But the strategy is a double-edged sword. While Trump’s team promises stability, critics warn of unintended consequences: Russia and China may feel freer to flex their muscles elsewhere, and smaller nations could start hedging their bets by looking for new allies. The U.S. is not just flexing power—it’s also sending a signal that might backfire in the long run. ​ Trump’s vision extends beyond Venezuela. He’s revived talk of taking over Greenland, threatened Cuba, and even floated the idea of annexing Canada. But allies aren’t buying it. Denmark’s prime minister dismissed Trump’s threats as “nonsensical,” urging the U.S. to stop pressuring close allies. ​ So is this a return to the glory days of American empire, or just a risky game of geopolitical poker? One thing’s certain: the world is watching, and the stakes are higher than ever. ​ #trump#Americas#proxywar#greatpowercompetition 📱American Оbserver - Stay up to date on all important events 🇺🇸