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

Резултати

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

Пребарај: #weddingrituals

当前筛选 #weddingrituals清除筛选
Google Facts™ [ ️@googlefactss🌎]

@googlefactss · Post #40899 · 04.04.2026 г., 22:01

In parts of Togo, wedding ceremonies include the groom’s family performing dances and music. These performances show respect to the bride’s family and celebrate the upcoming marriage. The events often involve drumming, singing, and group dancing as part of the traditional festivities. 💃🥁💍🌍 [Read more] @googlefactss #marriage#culture#tradition#worldfacts#anthropology#africa#weddingrituals#travel If you have ideas or feedback contact us: @Googlefactss_Feedback_bot

Google Facts™ [ ️@googlefactss🌎]

@googlefactss · Post #40839 · 21.03.2026 г., 23:01

In certain Thai weddings, couples participate in the Sai Sin ritual, a sacred tradition rooted in Buddhist beliefs. A cotton thread, called Sai Sin, is blessed by monks before the ceremony. The thread is tied around the bride and groom’s wrists or connected around their heads. This ritual symbolizes protection, good luck, and spiritual blessings for the couple. Guests and family may also touch or tie pieces of the thread to pass on their blessings. The Sai Sin connects the newlyweds to their family, community, and the monks who bless them, emphasizing unity and shared support. It is often performed alongside other traditional Thai wedding customs like pouring holy water over the hands of the bride and groom. 🧵👰🤵🇹🇭 [Read more] @googlefactss #marriage#culture#tradition#worldfacts#anthropology#thailand#weddingrituals#travel

Google Facts™ [ ️@googlefactss🌎]

@googlefactss · Post #40872 · 28.03.2026 г., 23:01

In some Mexican weddings, couples participate in the Lazo ritual. A large cord or rosary is placed around the bride and groom in a figure-eight shape to symbolize unity and lifelong commitment. 🤍👰🤵🇲🇽 [Read more1] [Read more2] @googlefactss #marriage#culture#tradition#worldfacts#anthropology#mexico#weddingrituals#travel