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

Пребарај: #lunaris

当前筛选 #lunaris清除筛选
Nothing Phone (2) | Updates

@NothingPhone2Updates · Post #694 · 23.11.2025 г., 14:26

LunarisAOSP - Official | A16 | Nothing Phone 2 (Pong) ✍️ Details: - Version: 3.5 - Codename: #Pong - Updated : 23/11/'25 🔽 Download: Here | Mirror 🆘 Support : Here 📖 Changelogs: Here 📸 Screenshots:Here 💰 Donation: steinsgate007@axl | BMC | Paypal 🔖 Tags : #ROM#AOSP#lunaris ✍️ Note: • Latest base firmware is recommended • Strong integrity by default • Ksu inbuild • If you face any bugs, report with logs. • Initial NTcamera and dolby support available 🏆 Credits: - Hellboy for kernel - Fabian and Hellboy for Glyph Implementation 👤 Maintainer : @Ghosutox 🔔 Updates : @NothingPhone2Updates 💬 Chat : @NothingPhone2

Nothing Phone (2) | Updates

@NothingPhone2Updates · Post #683 · 14.10.2025 г., 16:23

LunarisAOSP - Official | A16 | Nothing Phone 2 (Pong) ✍️ Details: - Version: 3.4 - Codename: #Pong - Updated : 14/10/'25 🔽 Download: Here | Mirror 🆘 Support : Here 📖 Changelogs: Here 📸 Screenshots:Here 💰 Donation: steinsgate007@axl | BMC | Paypal 🔖 Tags : #ROM#AOSP#lunaris 📚 Device: - Custom Call glyph pattern implementation - Add shake to toggle glyph torch - Tune powerhint - Enable WiFi 6 - Add configurable ringer mode for flip to glyph ✍️ Note: • Latest base firmware is recommended. • Strong integrity by default • If you face any bugs, report with logs. • Initial NTcamera and dolby support available 🏆 Credits: - Hellboy for kernel - Fabian and Hellboy for Glyph Implementation 👤 Maintainer : @Ghosutox 🔔 Updates : @NothingPhone2Updates 💬 Chat : @NothingPhone2

Nothing Phone (2) | Updates

@NothingPhone2Updates · Post #672 · 15.09.2025 г., 14:41

LunarisAOSP - Official | A16 | Nothing Phone 2 (Pong) ✍️ Details: - Version: 3.2 - Codename: #Pong - Updated : 15/09/'25 🔽 Download: Here | Mirror 🆘 Support : Here ⚙️ Installation: Here 📖 Changelogs: Here 📸 Screenshots:Here 💰 Donation: steinsgate007@axl | BMC 🔖 Tags : #ROM#AOSP#lunaris ✍️ Note: • Latest base firmware is recommended. • If you face any bugs, report with logs. • Initial NTcamera and dolby support available 🏆 Credits: - Hellboy for kernel - Fabian and Hellboy for Glyph Implementation 👤 Maintainer : @Ghosutox 🔔 Updates : @NothingPhone2Updates 💬 Chat : @NothingPhone2

Nothing Phone (2) | Updates

@NothingPhone2Updates · Post #661 · 16.08.2025 г., 12:42

LunarisAOSP - Official | A16 | Nothing Phone 2 (Pong) ✍️ Details: - Version: 3.2 - Codename: #Pong - Updated : 16/08/'25 🔽 Download: Here | Mirror 🆘 Support : Here ⚙️ Installation: Here 📖 Changelogs: Here 📸 Screenshots:Here 💰 Donation: steinsgate007@axl | BMC 🔖 Tags : #ROM#AOSP#lunaris ✍️ Note: • Latest base firmware is recommended. • If you face any bugs, report with logs. • NTcamera and dolby support available 👤 Maintainer : @Ghosutox 🔔 Updates : @NothingPhone2Updates 💬 Chat : @NothingPhone2

Nothing Phone (2) | Updates

@NothingPhone2Updates · Post #655 · 27.07.2025 г., 16:03

LunarisAOSP | A16 | Nothing Phone 2 (Pong) Updated : 27/07/'25 ✍️ Details: - Version: Official - Codename: #Pong 🔽 Download: Here | Mirror 🆘 Support : Here ⚙️ Installation: Here 📖 Changelogs: Here 📸 Screenshots:Here 🔖 Tags : #ROM#AOSP#lunaris 📚 Changelogs - 15-08 - Add Simulated Nothing Charging service - FlipToGlyph: Vibrate instad of silent - Enable AIDL fastboot HAL - Sync props from stock ✍️ Note: - Kernel is prepatched KSU - Dirty/ota flash possible from previous build - Latest base firmware recommended - Update inbuilt pif and import keybox xml for integrity 😎 Maintainer : @Ghosutox 🔔 Updates : @NothingPhone2Updates 💬 Chat : @NothingPhone2

Nothing Phone (2) | Updates

@NothingPhone2Updates · Post #647 · 03.07.2025 г., 04:48

LunarisAOSP | A16 | Nothing Phone 2 (Pong) Updated : 03/07/'25 ✍️ Details: - Version: Official - Codename: #Pong 🔽 Download: Here | Mirror 🆘 Support : Here ⚙️ Installation: Here 📸Screenshots:Here 🔖 Tags : #ROM#AOSP#lunaris 📑Changelogs - 16/07/25 - Use expressive design for Singularuty icons - Add QuickTap service - Tune QS round tile - Fix cloned profile issues - Fix Keyguard slice - Screenrecord: Add delete action to the notification - Update PIF - Fix bluetooth time out ✍️ Note: 16/07/25 - Kernel is prepatched KSU - Dirty/ota flash possible from previous build - Base firmware 3.0 is recommended - Update inbuilt pif and import keybox xml for integrity 😎 Maintainer : @Ghosutox 🔔 Updates : @NothingPhone2Updates 💬 Chat : @NothingPhone2

Xiaomi 12T Pro | K50U | Updates

@xiaomi_12tpro_updates · Post #453 · 17.10.2025 г., 21:33

#Lunaris#AOSP#UNOFFICIAL#A16#BKA#Diting Lunaris-AOSP UNOFFICIAL V3.4 | A16 Released: 17/10/2025 Download : SF | Mirror Screenshots : Here Changelog : Here Support:Group Changelogs: • Initial build • Hyper Camera by default • Dolby Audio by default • Support KernelSU Notes: If you want to receive regular updates, you can donate and we will add you to VIP support. Credits:Here By@Jezzay97 | Donate Follow@xiaomi_12tpro_updates Join@xiaomi12tpro_chat