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

Пребарај: #kagyupa

当前筛选 #kagyupa清除筛选
Laughing Lotus 🪷

@laughinglotus · Post #807 · 12.08.2025 г., 10:23

Tigers on the walls and in the smoke: According to the ancient Kagyu tradition, the gates of all temples are decorated with tiger patterns, especially the mother tiger playing with her cubs. This majestic image not only shows the fearlessness of the vajra dharma protectors, but also symbolizes that the masters of the Kagyu Golden Garland tradition are as strong as iron and stone, with proud bones and compassionate hearts they are free and benefit all living beings. In this picture, taken in the 1970's, the Venerable 16th Karmapa is sitting on a wooden chair, and the third Jamgon Kongtrul Rinpoche stands respectfully beside him. Jamgon Kongtrul Rinpoche lowered his eyes and stared at the Tibetan incense in his hand. The mist was flowing and changing in the air. With the tigers on the temple entrance wall as a backdrop, the rising incense smoke gradually condensed and naturally showed the image of a lion with its head raised and roaring—pure appearances of the Vajrayana, showing the uninterrupted tiger-like power of the enlightened Kagyu Golden Garland tradition. • • • www.instagram.com/pemalotus #karmapa#kagyu#jamgonkongtrul#karmapakhyenno#karmapachenno#karmakagyu#kagyupa#jamgonkongtrulrinpoche#vajrayana#mahamudra#vajrayanabuddhism#yogi#yogini#buddhistmasters