В прошлом посте говоря "Все вызовы теперь одинаковы" я несколько слукавил. Всё-таки есть в этом зоопарке версий некоторая несовместимость вызов которой просто так не унифицировать. Эти моменты вынесены в отдельный модуль 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
ANA a volunteer-led charity founded by Feven Melese, addressing animals in need.
Vision: create an environment where all animals are treated with compassion, respect, and dignity in Ethiopia.
Mission: promoting animal welfare through community education, volunteer engagement, and animal right advocacy.
Work with us: volunteering in building temporary shelters, providing foods for animals, transporting animals, providing community education, medical care, connecting with fosters and adopters, financial support . please join our telegram group https://t.me/animalsneedattention
#Thankyou🙏Feven Melese🙏
https://t.me/starvetbooks
የባቡር ካፒቴኖቻችን ደስታና ኩራት የሚመነጨው መንገደኞችን በተሟላ ደህንነትና ምቾት ከመነሻ እስከ መዳረሻ ማድረስ በመቻላቸው ነው።
የገቢ ወጪ ጭነቶችን ባጠረ ጊዜ ከወደብ ወደ ሀገር ከሀገር ወደ ወደብ በአስተማማኝ ሁኔታ ማመላለሳቸው ደግሞ ተጨማሪ ደስታና ኩራት ያጎናፅፋቸዋል።
#እናመሠግናለን!
Our train captains’ joy and pride stem from their ability to transport passengers safely and comfortably from departure to destination.
Similarly, the reliable and timely movement of import and export cargo between the port and the country further enhances their sense of fulfillment and pride.
#Thankyou Ethio-Djibouti Railway
Connecting Business
Find us on: 👇👇👇
📌Facebook: https://www.facebook.com/share/15vDenutJd/?mibextid=wwXIfr
📌Web: https://www.edrsc.com
📌TikTok: @ethiodjiboutirailway
📌Call center: 9546
📢 Important Chessio Update 💔
This is probably the hardest yet message we are sharing with you, our lovely Chessio Community.
Before we explain further, here’s the honest truth:
All this time, we’ve been running Chessio entirely from our own pockets - covering infrastructure, prize tournaments, drops, and more. We developed and maintained the platform alongside our main jobs, often sacrificing valuable family time.
After much thought, we’ve decided to pause Chessio development at the end of March 2025.
Additionally, we have stopped mining because we can’t promise what we aren’t sure about.
We didn't receive support from the TON Foundation, even though we were among the top 10 projects out of over 1,000 in the Summer Hackathon. For example, the marketing campaign that was part of our winning prize hasn’t been launched yet.
Our final drop will have a place for top 100 players of the SION leaderboard where we share 1000 USDT proportionally between players.
If you are in the top 100 list, make sure you have your wallet connected.
We have always been with you, and we truly appreciate your support. We hope for your understanding during these challenging times.
What’s Next?
Chessio will remain online on minimal hardware so you can still play games with friends and host tournaments, though it will be running on a minimal hardware, and we may need to turn off games with bots and server analysis as it eats infrastructure resources. We will be around, but the development will be on hold.
But we are not giving up. Something even more exciting is coming! So stay with us and stay subscribed!🔥
Thank you for being part of this incredible Chessio and SION journey. We look forward to meeting you on the next page 😉
❤️🧡💚💖🤍
Your Chessio Team!
#Chessio#ThankYou#SeeYouSoon
🎉100,000 Players and Counting!🎉
A huge THANK YOU to our incredible community for making SingSing Tycoon such a massive hit! 💥
Your support has helped us reach this amazing milestone, and we couldn’t have done it without you. 🙌
Here’s to many more tycoon adventures ahead! 🏗️💰
#SingSingTycoon#100KPlayers#Milestone#ThankYou#GameFi
🎤Announcement | Chat | X (Twitter) | Website | Game
The Journey Has Just Begun! 🌕
We're over the moon to celebrate a huge milestone with you all. In just 10 days since launch, To The Moon! has reached 550,000 players🎉; together, we're mining at an incredible rate of 570M Space Bucks per hour and have already mined around 26 billion Space Bucks🌌
These numbers are growing right now as we post this! This awesome progress wouldn’t be possible without each and every one of you. Your excitement and teamwork in colonizing the moon 🌌 and finding its hidden treasures are out of this world.
Thank you for being part of this epic journey. Let’s keep pushing forward and make our lunar colony thrive! 🚀
To The Moon! | Website | Telegram Chat | X | Discord | Medium
#ToTheMoon#MoonPlay#ecosystem#blockchain#gamefi#web3#milestone#thankyou#wenlisting#airdropsoon#communityfirst#taptap#clicker#game
Спасибо тебе, Япония!
Красиво выступили на чемпионате мира и играли наравне с грандами Европы. Не теряли уверенность, пропустив гол в группе от таких известных команд, как Германия и Испания.
А фанаты были настоящими фанатами, не только поддерживающие сборную слезами, но и показали пример всем, собрав мусора после игр.
Теперь ждем красивой игры от Южной Кореи.
***
Rahmat, senga Yaponiya!
JCHda chiroyli o'yin ko'rsatib, Yevropaning grand jamoalari bilan tengma-teng o'ynading. Guruhda Germaniya va Ispaniya kabi nomdor jamoalardan mag'lub bo'la turib, ishonchni yo'qotmading.
Muxlislaring ham haqiqiy muxlis bo'lib, nafaqat ko'z yoshi bilan qo'llab-quvvatladi, shu bilan birga o'yindan keyin chiqindilarni yig'ishtirib, barchaga o'rnak ko'rsatdi.
Endi Janubiy Koreyadan ham chiroyli o'yin kutib qolamiz.
#Japan#thankyou#worldcup#qatar2022
👇Подписаться на канал👇
https://t.me/uzsduz
@ThankStickerBot
Qué puede hacer este bot?
Envía automáticamente pegatinas de miembros de agradecimiento cuando su grupo llega a los miembros 'x'.
Idioma: Inglés
(visto en @BotsGram_cu)
#thankyou, #thanks, #group, #members, #sticker, #stickers
Мы вчера МОЛОДЦЫ!
Горжусь своей командой!
Спасибо за сердечный приём нашим дорогим зрителям!
♥️
#ялюблюсвоюработу#annabuturlina#аннабутурлина#ilovemyjob#джаз_ню#buturlinanews#спасибо#thankyou
I still remember when we first met
You were 13 and I was 12
You were moving in to your new house
You were our new neighbors I later learned
That time I came home from school
You were standing at the door carrying a box
You were wearing blue skirts to your knees
You look to me as I stand briefly on the street at the front of our house
You smiled but I creep out inside
Never had a pretty face smiled to me
I wanted to speak and say hello but decided against it and went inside the house instead
Out of fear I say stupid and embarrassed myself
The next day though we became officially friends
You really made the effort to make friends and not me
Through the years we still remain friends
But it's not the same as it used to be
You are now living overseas to fullfil your dreams
While I stay in the country and still looking for myself
You were my first crush and you knew it well
I told it to you the year later we met
I never courted you though because I don't want to ruin our friendship,
And I have a haunch you don't feel the same thing with me
As you keep telling me I was like a younger brother to you as you are an only child
Yeah yeah I kind of understand it all
But still it kinda hurts
Knowing you like someone but the feeling isn't mutual
But we gotta be tough, right?
This isn't the end I know it well
We're both young, a lot could happen
Wether we end up become lovers or maybe not
I only hope our friendship still remains
I hope it'll last forever
This will be all
Hope you don't find it weird
I just misses you so much so here it is
That's all and I wish you are always safe
#review#poem#openforcretics
#I'llsendittosomeonespecialtome
#kidlycorrectforgrammars
#andopenforsuggestions
#thankyou
#[email protected] with @make_repost
・・・
Thanks you so much @samsonbuket For this wonderful floral composition that enchanted my universe 🤩✨⭐️#flowers#peony #love#wonderful #thankyou#peace#enchanted #
New day, new chapter, new hotel, new emotions, new memories ..🤍🐚🧜🏻♀️
Our Mermaid adventure continue with @velassarumaldives💙
The Best Beach I’ve ever been to!
#оченьрекомендую#pureshores#velassarumaldives#velassaru#maldives#vacation#travelling#каникулы#miracle#indianocean#worldwide#mermaidlife#mira#thankyou #🙏🏻 #🤍#harmony#balance #🧘🏼♀️