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

Пребарај: #blockchains

当前筛选 #blockchains清除筛选
Telegram & TON NEWS

@all_telegram_ton_news · Post #22617 · 07.01.2026 г., 08:58

The Daily TON (Telegram) 🔥 EVM vs non-EVM ⚫️ Let's expand on the topic "#blockchains in 2026". If you have interacted with DeFi, you have probably heard the terms "EVM-compatible" or "non-EVM" blockchain. This is not just technical jargon, but a fundamental division that determines which applications can run on the network and who will develop them. ⚫️EVM (Ethereum Virtual Machine) is the Ethereum virtual machine that has become the standard in the crypto world. Blockchains like Polygon, BSC, and Avalanche are EVM-compatible. This means that any smart contract or dApp written for Ethereum can be ported to such networks with almost no changes. The main advantage is compatibility and a huge ecosystem: developers, tools, and users are already there. ⚫️Non-EVM blockchains are networks with their own unique architecture. Bitcoin stands apart without smart contracts. Solana, SUI, TON, and others have created their own virtual machines and programming languages. Their goal is not... View original post

Hashtags

djangoproject

@djangoproject · Post #499 · 14.11.2017 г., 16:33

https://pypi.python.org/pypi/hyperledger/0.1.5 #Python#client for #Hyperledger. This work is licensed under the Apache License, Version 2.0. Hyperledger Project is a new Collaborative Project at The Linux Foundation. The technical community is just getting started and will be adding code to the repository in the coming weeks. Check hyperledger.org for more information about joining the mailing lists and participating in the conversations. #Blockchains