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

Резултати

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

Пребарај: #pixelage

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

@NothingPhone2Updates · Post #553 · 05.02.2025 г., 18:08

Pixelage Official | Android 15 | Nothing Phone (2) ✍️ Details: - Version: 2.5 - Codename: #Pong - Released: 5/2/25 🔽 Download: Here | Mirror 🆘 Support : Here ⚙️ Installation: Here 📸 Screenshots: Here ✨ Source Changelogs: Here 🔖 Tags : #ROM#AOSP#pixelage#V#qpr1 ✨ Changelogs - switched to a different tree - clean flash recommended ✍️ Note: - Meteoric kernel is baked in with prepatched KSU - gapps inbuilt, don't flash gapps 🏆 Credits - @Ghosuto7 for trees - Fabian for PA Glyph Implementation 😎 Maintainer : @Drishal 🔔 Updates : @NothingPhone2Updates 💬 Chat : @NothingPhone2

Nothing Phone (2) | Updates

@NothingPhone2Updates · Post #524 · 23.01.2025 г., 08:38

Pixelage Official | Android 15 | Nothing Phone (2) ✍️ Details: - Version: 2.4 - Codename: #Pong - Released: 23/1/24 🔽 Download: [ Here ] (Sideload/Flash via orangefox recovery) 🆘 Support : Here ⚙️ Installation: Here 📸 Screenshots: Here ✨ Source Changelogs: Here 🔖 Tags : #ROM#AOSP#pixelage#V#qpr1 ✨ Changelogs - updated to NOS V3.0-250113-1723 ✍️ Note: - Meteoric kernel is baked in with prepatched KSU - gapps inbuilt, don't flash gapps - IF CLEAN FLASHING MAKE SURE TO REMOVE SCEEEN LOCK FROM PREVIOUS ROM 🏆 Credits - Chandu for base DT - Hellboy for Meteoric kernel - Fabian for PA Glyph Implementation - Testers: @Devasee@notnaito 😎 Maintainer : @Drishal 🔔 Updates : @NothingPhone2Updates 💬 Chat : @NothingPhone2

Nothing Phone (2) | Updates

@NothingPhone2Updates · Post #502 · 30.12.2024 г., 13:59

Pixelage Official | Android 15 | Nothing Phone (2) ✍️ Details: - Version: 2.3 - Codename: #Pong - Released: 30/12/24 🔽 Download: [ Here ] (Sideload/Flash via orangefox recovery) 🆘 Support : Here ⚙️ Installation: Here 📸 Screenshots: Here ✨ Source Changelogs: Here 🔖 Tags : #ROM#AOSP#pixelage#V#qpr1 ✨ Changelogs - official build ✍️ Note: - Meteoric kernel is baked in with prepatched KSU - gapps inbuilt, don't flash gapps 🏆 Credits - Chandu for base DT - Hellboy for Meteoric kernel - Fabian for PA Glyph Implementation - Testers: @Devasee@notnaito 😎 Maintainer : @Drishal 🔔 Updates : @NothingPhone2Updates 💬 Chat : @NothingPhone2

Nothing Phone (2) | Updates

@NothingPhone2Updates · Post #497 · 21.12.2024 г., 16:37

Pixelage | Android 15 | Nothing Phone (2) ✍️ Details: - Version: 2.3 - Codename: #Pong - Released: 12/12/24 🔽 Download: [ Here | sourceforge ] (Sideload/Flash via orangefox recovery) 🆘 Support : Here ⚙️ Installation: Here 📸 Screenshots: Here ✨ Source Changelogs: Here 🔖 Tags : #ROM#AOSP#pixelage#V#qpr1 ✨ Changelogs - qpr1 ✍️ Note: - Meteoric kernel is baked in with prepatched KSU - gapps inbuilt, don't flash gapps 🏆 Credits - Chandu for base DT - Hellboy for Meteoric kernel - Fabian for PA Glyph Implementation - Testers: @Devasee@notnaito 😎 Maintainer : @Drishal 🔔 Updates : @NothingPhone2Updates 💬 Chat : @NothingPhone2

Nothing Phone (2) | Updates

@NothingPhone2Updates · Post #633 · 12.06.2025 г., 11:27

Pixelage - Official | Android 15 | Nothing Phone (2) ✍️ Details: - Version: 2.8 - Codename: #Pong - Type: #Gapps - Released: 10/6/25 🔽 Download: Here | Mirror 🆘 Support : Here ⚙️ Installation: Here 📸 Screenshots: Here ✨ Changelogs: Here 🔖 Tags : #ROM#AOSP#Pixelage#V#QPR2#Official ✍️ Note: - Meteoric kernel is baked in with prepatched KSU - Gapps inbuilt, don't flash gapps 🏆 Credits - @Ghosuto7 for trees - Hellboy & Fabian for PA Glyph Implementation 👤 Maintainer : @Drishal 🔔 Updates : @NothingPhone2Updates 💬 Chat : @NothingPhone2