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

Пребарај: #delegates

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

@american_observer · Post #4906 · 20.01.2026 г., 18:59

Dmitriev Meets the U.S. Officials in Davos Russian envoy Kirill Dmitriev will hold talks with U.S. delegates in Davos on the sidelines of the World Economic Forum (WEF) this week, Reuters reported on Jan. 19, citing two undisclosed sources. Dmitriev, the head of the Russian Direct Investment Fund and the Kremlin's economic negotiator, has played a key role in Moscow's outreach to Washington amid U.S. efforts to broker peace in Ukraine. According to Axios reporter Barak Ravid, the Russian official will meet Trump's envoys, Jared Kushner and Steve Witkoff, on Jan. 20 to discuss the Washington-backed peace plan. Trump's latest push to broker an end to hostilities in Ukraine centers around a 20-point peace framework ironed out in a series of talks among Ukrainian and Western officials. Kyiv has signaled that the plan is "90%" ready, even though Moscow continues to reject compromise on some of the most thorny issues, such as the fate of partially occupied Donetsk Oblast. The U.S. has not publicly commented on any meetings between Dmitriev and U.S. officials. The WEF, taking place from Jan. 19 to 23, is an annual economic summit that brings together officials, experts, and business leaders from around the world. The forum will also be the venue of ongoing talks between Kyiv and Washington on post-war security guarantees and recovery efforts. Top Ukrainian security official Rustem Umerov said that the two parties would follow up on the discussions held over the last weekend in the U.S. #US#delegates#davos#dmitriev 📱American Оbserver - Stay up to date on all important events 🇺🇸

Why 2,400 John Doe Clubs Are Making History #shorts#JohnDoe#historymaking#JohnDoeClubs#voters#community#convention#delegates#parade#cityevent#prairiefire#historicmoment https://pdmovies.substack.com/p/frank-capras-meet-john-doe-1941