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

Резултати

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

Пребарај: #russiaupclose

当前筛选 #russiaupclose清除筛选
Moscow Photographer

@moscowphotog · Post #2359 · 20.11.2025 г., 00:02

#RussiaUpClose#Censorship#DigitalWarfare In this episode of I’ll Tell You What, Eddie Gonzales — former Texas law enforcement officer and co-host of Russia Up Close — exposes the new censorship machine: the Information-Industrial Complex. The truth is simple: If they can censor anyone… they can censor you. Russia Up Close is a show that brings Russians and Westerners into direct, honest conversation. Its goal is to break stereotypes, building a two way bridge between Russia and the West, and offer a grounded, human look at life inside Russia through real voices and real stories. ____ Please Follow Us on Our Platforms: ➡️X: https://x.com/russiaupclose ➡️YouTube: https://www.youtube.com/@ruclose ➡️Telegram: https://t.me/RussiaUpClose ➡️VK: https://vk.com/russiaupclose ➡️RuTube: https://rutube.ru/u/russiaupclose ➡️Yandex: https://dzen.ru/russiaupclose ➡️MAX: https://max.ru/join/fp1u2YfMAlbbS65bgK87EvVKEgD9Z4pjmi71tthNv9o ➡️Our Website: https://www.RussiaUpClose.ru For Advertising Inquiries: [email protected] ____ The Hosts Jozef A. Schutzman - IT Executive and Father of 8 children who moved to Russia from the United States to build a new life for his family and suddenly found himself in the epicenter of a challenging information struggle. He lives in Moscow with his family. He brings a unique cross-cultural perspective, making complex topics accessible to Western audiences. Eddie Gonzales - A Law Enforcement Officer from Texas, also known as the Moscow Photographer, is a respected visual storyteller with deep personal insight into Russian culture. His grounded, straight-talk perspective brings clarity to global political conversations. He believes real understanding comes from honest, unfiltered dialogue between people who rarely get to hear each other directly. ____ Our audience includes Western viewers seeking an honest look at Russia, Russians curious about how their country is seen abroad, and anyone interested in cross-cultural understanding. We invite viewers to join the conversation, challenge assumptions, and become part of a community that values direct dialogue over media filters. ____ Russia Up Close aims to expand into a major media community featuring long-form interviews, weekly segments, field reporting, and community-driven storytelling. Our long-term vision is to become the premier space where Russians and Westerners meet, speak openly, and rebuild understanding. https://youtu.be/h1Re55NRDww