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

Пребарај: #decipher2024

当前筛选 #decipher2024清除筛选
DWF Labs Broadcast

@DWFLabs · Post #728 · 27.06.2024 г., 08:35

We had a great day yesterday at #Decipher2024 hosted by Algorand Foundation 🔥 Alessia Baumgartner, Business Partner of Ecosystems at DWF Labs, shared about what we look for in our portfolio and tips for pitches. Check out some key insights 👇 1️⃣ Pitch decks should be concise and compelling - communicating the ethos and important aspects of a project within the first two minutes. 2️⃣ Founders with strong technical skills and adaptability are integral to what we look for in projects, as they can adjust their strategies during market fluctuation to ensure success and longevity. 3️⃣ Projects that strongly fulfill key KPIs such as network activity and community engagement have a competitive edge. We're always looking for projects to support - feel free to reach out if you're working on a project, or have a project to share. Let's buidl! 🤝

DWF Labs Broadcast

@DWFLabs · Post #722 · 24.06.2024 г., 02:01

Catch Alessia Baumgartner, Business Partner of Ecosystems at DWF Labs, at #Decipher2024 hosted by Algorand Foundation. She'll be taking the stage at 4.15pm CET on June 26 to discuss what we look for in projects to support and partner with. Don't miss her panel.🔥

DWF Labs Broadcast

@DWFLabs · Post #725 · 26.06.2024 г., 13:57

Could you decipher where we are? 😁 Our Business Partner of Ecosystems, Alessia Baumgartner is taking the stage soon. If you're around and would like to hear more about what we look for in projects, come join us 🔥 #Decipher2024#Algorand#DWFLabs