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

Пребарај: #nyclife

当前筛选 #nyclife清除筛选
IELTS|Newspapers & Magazines|English

@emagzinewspars · Post #9539 · 14.11.2025 г., 10:10

#The_NewYorker🇺🇸📕[PDF]⬇️ 17 #November2025 #Weekly_Magazines For learning, for free(dom). @backupofmagazines This issue moves through New York’s shifting moods, capturing a city shaped by #CultureWatch tensions, #PoliticsNow anxieties and the creative pulse of #NYCLife. From the rise of conspiracy voices to Rian Johnson’s #ArtScene vision and Rosalía pushing pop into harder terrain, the magazine reveals how storytelling bends with the moment. Essays reflect on America’s coming 250th year, while profiles like David Byrne’s search for meaning deepen the emotional layers. Even the subway on the cover suggests a #RealPeople narrative woven through daily noise and #MediaTrends shaping how we see the world.

J.D. Vance Hateclub (Kingspup's Nonhuman Memehole)

@cassiekingspupsmemes · Post #7888 · 09.01.2026 г., 05:28

Openly | LGBTQ+ news on tiktok Replying to @Ian Rush Happy World Sustainable Transport Day - because who doesn't like the metro? 👀 Bernie Wagenblast (she/her) has become a local celebrity of everyday life in New York City and a pioneer in trans representation in the voice industry for her years-long work as one of the voices of the city's subway system. What other things would you like to know about Bernie? Let us know in the comments" And go to the comment we responded to to watch our video with Philippa Jarke, the trans woman who voiced Berlin's underground. 🎙️ Reporter: Afeef Nessouli #transawareness#transrights#transandproud#nyc#nyclife#nycsubway#transrepresentation