В прошлом посте говоря "Все вызовы теперь одинаковы" я несколько слукавил. Всё-таки есть в этом зоопарке версий некоторая несовместимость вызов которой просто так не унифицировать. Эти моменты вынесены в отдельный модуль 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
Whale NFT Expands to Solana via DYOR.io Community
#Whale#NFT
Whale has launched a new NFT bridge from TON to Solana, allowing users to seamlessly transfer and list NFTs on Magic Eden. The process is efficient and secure, with the added excitement of a suspenseful artwork reveal.
Source: link
@tonlines
🚨 A Bitcoin Whale Awakens After 14 Years!
Guess who made a comeback? A legendary Bitcoin whale, dormant for 14 years, just stirred. On their wallet sits a staggering 3,962 BTC, valued at a whopping $468 million.
Stay tuned with us for more crypto insights!
#btc#bitcoin#whale
🤑 $NOTCOIN — latest news
🥇 Notcoin is currently holding steady in the top 100 coins by capitalisation, ranking 55th. Daily trading volume has exceeded $500 million, making $NOT the 14th most traded coin among all existing coins.
💎 In the last 24 hours, the trading volume on Ston.fi in pairs with $NOT reached almost $2 million. The DEX team has prepared a guide for you on how to quickly buy or sell your Notcoin.
💎 As part of the test of the new w5 wallet standard, Tonkeeper has implemented the ability to send $NOT, without a TON on the wallet.
You can read more about w5 in our post.
💎 Strong projects on TON started actively burning $NOT, besides Not Foundation itself #Whale and #Catizen participated in this campaign. We continue to wait for more information from the team regarding the burning of $NOT coins from the bot.
💎 Coin owner rights have been revoked, making it so the total number of coins cannot be higher than the current number.
The token was added to Season 4 of The Open League, where it is now holding on to the prizes.
The team's immediate plans:
✔️Referrals (friends) will give you % of what they earn.
✔️PlatinumPlatinum and gold will get access to exclusive presales.
✔️ProjectsProjects and companies will be able to activate boosts without Not Foundation participation, which will speed up the addition of new tasks many times.
Channel: Whale Tank crypto
Members: ~18.19K
💢 Username: @whale_tank_crypto
Description:
The only channel run by real whales. We can guarantee you nobody else will ever get close to the trading volume in our pumps and signals…
Elevate your trading #journey ,
🏷 Tags: #crypto_fx_trading
#crypto#trading#signals#whale#bitcoin
https://lve.to/6dzu2j8pae
🌎 Sperm whales use a form of vocal “click” codes called codas to communicate within social groups. Each group has its own dialect of codas, with some sequences unique to specific clans. Adult whales use these patterns to maintain social bonds—individuals can be identified by their group’s coda “accent.” ✨
#whale⚡#communication⚡#animalbehavior⚡#bioacoustics
👉subscribe Interesting Planet
👉more Channels
🌴Whale: Claim Update Extended by Month...
wen TGE sir?
Guys, we have "alarm for +30 days" again. We were waiting for the Swap button, kept champagne in the fridge — but the timer was updated again... #$%^&* We understand, we are also a bit upset 🐸
Why does this happen?
As Whale reports, there are still 753 billion mWhale tokens are still in the game. Let us recall that according to tokenomics, 10% of the total emission of $Whale is intended for the community. In order for all these tokens to pass into our hands, the claims (and farming) were extended. The date of the TGE itself has not yet been announced.
What's the plan?
It's still the same: farm and claim as many tokens as possible, not giving the timer a chance to extend again, and we break into TGE with an even more impressive balance.
🪙
Patience and a collective sigh, friends... Let's stick together and keep our sense of humor
🤗
🤗
🤗
#WoW#Claim#Airdrop#Whale