В прошлом посте говоря "Все вызовы теперь одинаковы" я несколько слукавил. Всё-таки есть в этом зоопарке версий некоторая несовместимость вызов которой просто так не унифицировать. Эти моменты вынесены в отдельный модуль 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
🔻 Heidi & I wish everyone a Happy #Thanksgiving. May God bless your families and continue to bless the United States. https://t.co/xRnllLEoMQ
November 25, 2021 at 06:00PM
via Twitter
@SenTedCruz
When Congress asked President Washington to declare America's first NATIONAL DAY OF PRAYER & THANKSGIVING, his proclamation of Nov. 26, 1789, noted "it is the duty of all Nations to acknowledge the providence of Almighty God, to obey his will, to be grateful for his benefits, and humbly to implore his protection and favor."
We do well to remember that today.
Have a happy, blessed #Thanksgiving.
"Give thanks to the Lord, for he is good; his love endures forever." Psalm 118:1
Follow me at @SpeakerJohnson
🎆#Thanksgiving Giveaway!
Which coin pumped your bag the hardest this year? 📈
Vote & win a share of $300💰
✅ Follow @HTXCommunity@HTX_Global
🕹RT+ tag 2
🚀 Join and Invite friends to join HTX Telegram Group 1 & Group 2
⬇️ Vote and share which #crypto made you the most money this year
➡️ Vote now HERE
✉️Telegram |
❌X
✉️Announcements |
📷Instagram
💕💕Happy #Thanksgiving! 🐔
Wishing You a Joyous Thanksgiving!
Thank you for the unwavering support from #TPFam and #TokenPocket Partners!
Keep Building! 🏃🏃♂️🏃♀️
【Details】https://twitter.com/TokenPocket_TP/status/1727620906225373326
【Powered By】Crypto Box
Catizen Announcement: Exciting Year Ahead and Thanksgiving Rewards
#Capybobo#Thanksgiving
Catizen Announcement expresses gratitude to its community and anticipates an exciting upcoming year. Bro projects Capybobo and COC are offering Thanksgiving rewards totaling over 2000 USDT.
Source: link
@tonlines
❤️Happy #Thanksgiving day!
💰$1,000 Giveaway To #TokenPocket Users.
We've partnered with symbiosis_fi and Tronify_io for an exclusive DeFi expedition!
🏆 Prize Pool: $1,000 ( $USDT + $TRX)
🎁 Top 10: $200 ( $USDT + $TRX)
🎁 11th-60th: $500 ( $USDT + $TRX)
🎁 51st-100th: $300 ( $USDT + $TRX)
Complete the simple tasks and get a chance to share the rewards!
Tasks on #Glaxe👇
https://galxe.com/TokenPocket/campaign/GCS8ytUEqJ
👉https://tokenpocket.pro
📌 Eligibility: Participants are #TokenPocket users
and must have received an energy subsidy or
rental energy during the campaign period in
order to be eligible for rewards.
🗓️ Nov. 22-Dec. 6
🔥Snatch your ticket for the #DeFi journey now! The more you trade, the better your chances of claiming your share of the $1,000 giveaway!
【Details】https://twitter.com/TokenPocket_TP/status/1727673296546938943
【Powered By】Crypto Box
🎄#GAG#Christmas Event Part 3 👀#Leaks
🚀🍽️Cooking?!
✨Start Time:✅Dec 21, 2:00 AM
🧉#gag🍕#growagarden#leaks🦌#garden#thanksgiving
👨🍳#Christmas-themed FoodCONFIRMED!!!
🍪GingerbreadCookie
🌟Candycane
❄️Wreath
🍖HolidayRoast
♨️HolidayStuffing
🍰Fruitcake
🍳Eggnog
Get ready~~~🚀🚀🚀
Add @APKFreeDownloader_Bot to get any apk you want.
🦃
Every year, Thanksgiving is celebrated on the fourth Thursday of November.
This year that is 27 November.
The tradition dates back to 1621, when Pilgrims and Wampanoag people shared a harvest feast to give thanks for survival and a successful harvest.
[Read more]
@googlefactss#Thanksgiving#History#Gratitude#November27#HarvestFeast
The Essence of Gratitude
Baga Ayyaana Irreechaa Bara 2025 Nagaan Geessan! 🙏💚
Today, our hearts are full. We gather at the hora (living water), holding the green coomii and the yellow daisy flowers of Birraa, to say one thing:
Galanni Waaqaaf haa ta'u.
Look at the beauty of our people! A sea of white, a vibrant display of our culture, all moving as one. This is Irreechaa. 🤍✨
From the wisdom in the blessings of our elders, the Abbaa Gadaas and Haadha Siinqees, to the joyful songs of our youth, Irreechaa is the ultimate symbol of our tokkummaa (unity).
It's a day we forget our differences and remember our shared heritage, our shared prayers, and our shared hope for a brighter future. We are one people, with one heart. 🙌
May this Irreechaa bring peace, unity, and prosperity to all Oromo people and to our beloved Oromia.
Ayyaana Gaarii! ✨
#Irreechaa#Oromo#Thanksgiving#Galata#Birraa#Peace#Oromia
@etbisahusen
Ирреча — ежегодный праздник в Эфиопии 🇪🇹
Фестиваль Ирреча у народа оромо — это главный праздник благодарения в Эфиопии. Он символизирует переход от тёмного сезона дождей к светлому и плодородному сезону Бирраа (весна). На духовном уровне это выражение благодарности Вааке (Творцу) за дарованные благословения и мир.
Сегодня основные торжества проходят у озера Хора-Финфинне в Аддис-Абебе: многотысячные толпы под руководством традиционных старейшин Аббаа Гадаа выполняют главный ритуал — окунают зелёную траву (ирресса) и цветы в воду. Это подношение благодарности и молитва о будущем.
Ирреча — это грандиозное культурное событие, мощное проявление единства и самоидентификации народа оромо. Праздник ярко отражается в традиционной одежде, песнях и танцах, подтверждая глубокую связь с природой и наследием.
Кульминация праздника ожидается завтра, в воскресенье, на его самом священном месте — у озера Хора-Харсаади в Бишофту. Именно там Ирреча становится настоящим днём воссоединения, примирения и надежды.
Irreecha – Annual Thanksgiving Celebration in Ethiopia 🇪🇹
The Oromo Irreecha festival is Ethiopia’s premier thanksgiving celebration, marking the transition from the dark, rainy season to the bright and fertile season of Birraa (spring). Spiritually, it is an expression of gratitude to Waaqa (the Creator) for blessings and peace.
Today, the main celebrations are taking place at Hora Finfinne in Addis Ababa. Vast crowds, led by traditional Abbaa Gadaas, are performing the central ritual: dipping green grass (Irreessa) and flowers into the water as an offering of thanks and a prayer for the future.
This massive cultural event is a powerful manifestation of Oromo unity and identity. The festivities are vividly reflected in traditional attire, songs, and dances, affirming a deep connection with nature and heritage.
The climax is expected tomorrow, Sunday, at its traditional and most sacred site—Hora Harsadi (Lake Harsadi) in Bishoftu. It is there that Irreecha truly becomes a day of reunion, reconciliation, and hope.
https://t.me/Afro_Russians
#Эфиопия#Ирреча#Оромо#Африка#Культура#Традиции#АддисАбеба#Бишофту
#Ethiopia#Irreecha#Oromo#Africa#Culture#Traditions#Thanksgiving#AddisAbaba#Bishoftu