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

Пребарај: #magidhage

当前筛选 #magidhage清除筛选
bjjfanaticsinstructionals

@bjjfanaticsinstructionals · Post #1921 · 03.03.2026 г., 17:29

😁The Best of Both Worlds by Magid Hage😁 ➡️Learn pummeling drills you’ve never seen before that will help you gain an all-new perspective on obtaining both underhooks and overhooks. ➡️Upgrade classic passes like the knee cut with brutal controlling details that maximize the use of powerful underhooks. $97😍$9.99😍 ❗️Channel Info and FAQ (MUST CHECK BEFORE BUY)❗️ 📱Payment: 📱📱📱 💰Submeta FOR FREE 👑MasterClass ✈️@bjjfanaticsinstructionals #MagidHage#Guard#NoGi#IBJJF 💁‍♀️Buy 💁‍♀️

bjjfanaticsinstructionals

@bjjfanaticsinstructionals · Post #1920 · 03.03.2026 г., 17:27

😁Magids Abstract Armlocks by Magid Hage😁 ➡️Get ready to see armlocks in a whole new light. In Magid’s Abstract Armlocks, world-class black belt and competition standout Magid Hage takes you deep into the world of unconventional, creative, and downright sneaky armlock attacks. ➡️Whether you're attacking from guard, top position, scrambles, or even from “bad” spots — you’ll learn how to hunt arms from anywhere. $79😍$6.99😍 ❗️Channel Info and FAQ (MUST CHECK BEFORE BUY)❗️ 📱Payment: 📱📱📱 💰Submeta FOR FREE 👑MasterClass ✈️@bjjfanaticsinstructionals #MagidHage#Submissions#NoGi#IBJJF 💁‍♀️Buy 💁‍♀️

bjjfanaticsinstructionals

@bjjfanaticsinstructionals · Post #1931 · 12.04.2026 г., 00:30

😁Top 10 Sweeps and Reversals by Magid Hage😁 ➡️In Top 10 Sweeps and Reversals, Magid Hage breaks down the most basic, high-percentage sweeping techniques that every Brazilian Jiu-Jitsu practitioner should have in their game. ➡️This course focuses on simplicity, timing, and efficiency, showing you how to off-balance your opponent and reverse the position with minimal strength and maximum control. $79😍$9.99😍 ❗️Channel Info and FAQ (MUST CHECK BEFORE BUY)❗️ 📱Payment: 📱📱📱 💰Submeta FOR FREE 👑MasterClass ✈️@bjjfanaticsinstructionals #MagidHage#Sweeps#NoGi#IBJJF 💁‍♀️Buy 💁‍♀️