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

Резултати

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

Пребарај: #slavic

当前筛选 #slavic清除筛选

On the Zorya In Slavic mythology, the Zorya are the two guardian goddesses who guard and watch over the doomsday hound, Simargl, who is chained to the North Star - Polaris in the constellation Ursa Minor, the “little bear”. If the chain ever breaks, the hound will devour the constellation and the universe will end. The Zorya represent the Morning Star and the Evening Star. They serve the sun god Dažbog, who in some myths is described as their father. Zorya Utrennyaya, the Morning Star, opens the gates to his palace every morning for the sun-chariot’s departure. At dusk, Zorya Vechernyaya, the Evening Star, closes the palace gates once more after his return. #mythology#slavic @EuropeanTribalism

It's 'Telegram Thursday' and I want to recommend you interesting channels. Today marks the first of a series of recommendations, based on the various expressions of European culture. We start with a channel, which focuses on the Slavic aspect: https://t.me/THEOLDWAYS Have a look and follow! #Slavic#TelegramThursday @EuropeanTribalism

Dreams Gallery

@dreamsgallerys · Post #2043 · 05.02.2024 г., 04:56

Из старых запасов. Немного ужастиков по мотивам русского народного фольклора By Voodoont Dreams Gallery #voodoont #ai#арт#art#girl#horror#fairy_tail#dark_fantasy#fantasy#slavic#witch