@WorldNews · Post #74239 · 19.04.2026 г., 21:19
Carney calls Canada's ties to the U.S. 'weaknesses' that must be corrected | CBC News [Read FullArticle] @WorldNews#CanadaUS#CanadaUSRelations#WorldNews
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
Пребарај: #canadausrelations
@WorldNews · Post #74239 · 19.04.2026 г., 21:19
Carney calls Canada's ties to the U.S. 'weaknesses' that must be corrected | CBC News [Read FullArticle] @WorldNews#CanadaUS#CanadaUSRelations#WorldNews
@WorldNews · Post #74236 · 19.04.2026 г., 17:59
PM Carney declares U.S. ties now a ‘weakness’ in address to Canadians [Read FullArticle] @WorldNews#CanadaUSRelations#USCanada#WorldNews
@CryptoM · Post #64616 · 09.04.2026 г., 11:04
🚀 Hormuz Shipping Crisis Presents Opportunity for Canada to Mend Ties with Trump The ongoing shipping crisis in the Strait of Hormuz has opened a diplomatic window for Canada to improve relations with U.S. President Donald Trump. Bloomberg posted on X that the situation has escalated tensions in the region, affecting global oil supply routes. Canada, with its strategic position and resources, is in a unique position to offer assistance and mediate in the crisis. The Strait of Hormuz is a critical chokepoint for the global oil trade, and recent disruptions have raised concerns over energy security. As a major oil producer, Canada could play a pivotal role in stabilizing the situation by increasing its oil exports to offset potential shortages. Furthermore, this crisis presents an opportunity for Canada to strengthen its diplomatic ties with the United States. By offering support and collaboration, Canada can demonstrate its commitment to regional stability and international cooperation. The Canadian government is reportedly considering various options to address the situation, including diplomatic engagement and increased energy exports. This approach could not only help alleviate the immediate crisis but also pave the way for improved bilateral relations with the U.S. under President Trump's administration. As the situation develops, Canada’s actions could have significant implications for both regional stability and its relationship with the United States. #HormuzCrisis#Shipping#CanadaUSRelations#Diplomacy#OilTrade#EnergySecurity#InternationalRelations#GlobalOilSupply#Geopolitics#TradeRoutes