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

Пребарај: #whiteboard

当前筛选 #whiteboard清除筛选
𝐋abyrinth

@labyrinthclassh · Post #9336 · 11.12.2021 г., 12:36

˖ ࣪⭑ Dingg.. Dongg.. 🛎 Check it out students, the bell has rung. It’s such an honour to present our new #Whiteboard. Dont forget to read our school rules before using it hoho. Have a wondrous day ahead! ♡⸝⸝

Hashtags

𝐋abyrinth

@labyrinthclassh · Post #8837 · 07.11.2021 г., 01:17

˖ ࣪⭑ Dingg.. Dongg.. 🛎 Check it out students, the bell has rung. It’s such an honour to present our new #Whiteboard. Dont forget to read our school rules before using it hoho. Have a wondrous day ahead! ♡⸝⸝

Hashtags

𝐋abyrinth

@labyrinthclassh · Post #8193 · 14.10.2021 г., 07:33

˖ ࣪⭑ Dingg.. Dongg.. 🛎 Check it out students, the bell has rung. It’s such an honour to present our new #Whiteboard. Dont forget to read our school rules before using it hoho. Have a wondrous day ahead! ♡⸝⸝

Hashtags

𝐋abyrinth

@labyrinthclassh · Post #8012 · 07.10.2021 г., 10:23

˖ ࣪⭑ Dingg.. Dongg.. 🛎 Check it out students, the bell has rung. It’s such an honour to present our new #Whiteboard. Dont forget to read our school rules before using it hoho. Have a wondrous day ahead! ♡⸝⸝

Hashtags

GitHub Trends

@githubtrending · Post #15082 · 21.08.2025 г., 11:30

#typescript#collaboration#drawing#flowchart#localfirst#mindmap#productivity#whiteboard Drawnix is a free, open-source online whiteboard tool that combines mind maps, flowcharts, and free drawing in one platform. It supports features like image insertion, undo/redo, infinite canvas zooming, and exporting to PNG or JSON. It works on mobile devices and supports markdown and mermaid syntax for easy diagram creation. Built on a plugin architecture, it allows flexible development and integration with different UI frameworks. Using Drawnix helps you organize ideas visually, collaborate smoothly, and save your work automatically, making creative work and teamwork easier and more efficient. https://github.com/plait-board/drawnix