В прошлом посте говоря "Все вызовы теперь одинаковы" я несколько слукавил. Всё-таки есть в этом зоопарке версий некоторая несовместимость вызов которой просто так не унифицировать. Эти моменты вынесены в отдельный модуль 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
🗣Top Genres of Podcasts Among Avid Fans
More than 61% of American households have a fan of #podcasts in the music genre.
- 37 million of these households identify as avid fans;
- 24 million consider themselves casual fans.
🚀@PerspectiveIX
❓ Do you listen to podcasts?
#podcasts
Great, engaging and beneficial podcasts
Let's not forget, English podcasts are the kind of content that takes the least time for us to use.
You can make the most of your time by listening to English podcasts and revitalizing parts of the day that may be unused for whatever reason.
How to use podcasts⁉️
English podcast for fast language learning😍😍
🌟If you want to listen to the podcast as efficiently as possible, follow these steps:
🔰Listen to podcasts every day. Listen to podcasts daily and cultivate this habit easily.
Find podcasts that interest you. Ask yourself, "What podcasts should I listen to," and try to choose one that suits your interests.
🔰Listen to podcasts that have transcripts or text. This helps you find new words and phrases quickly in the text and understand the structure of different sentence types.
🔰After listening to the podcast with the text, in the next step try to do it without the text. This will strengthen your listening skills and help you to understand native English speakers more easily, even if they speak very fast.
🔰Do not despair if you listened to an English podcast and could not fully understand it. There are countless ESL podcasts designed for different levels, from beginner to advanced. Surely you can find a podcast that fits your level every day
@TowardDiscoveringEnglish
@TowardDiscoveringEnglish
@TowardDiscoveringEnglish
@TowardDiscoveringEnglish
This is the best foster mom in the world!
🔻Lynx Alyona lives in the Irkutsk Zoo, and she has a very strong maternal instinct.
🔻Over several years, she has already raised orphaned kittens, bear cubs, five puppies, and two Amur tiger cubs.
🔻Alyona makes sure the babies are well-fed, clean, and well-behaved.
🔻As soon as she hears the pitiful meows of abandoned babies, she understands: "Oh, these are mine!"
⏺Here are the🇷🇺(word stress)+🇬🇧texts for you to practice! https://telegra.ph/Podcast-07-04-2
❗️You can also send me the recording of your reading of the Russian text to @RCR_feedback_bot and get feedback!
#podcasts
#brief_and_interesting
😎RCR | Support | Boost
¿Que puede hacer este bot?
@podcastly_bot
Encuentre nuevos podcasts por sistema de búsqueda o recomendación, envíe notificaciones sobre nuevos episodios.
Idiomas: varios incluido español
(Visto en @botsgram_cu)
#podcasts#búsqueda
🎧About 1 in 4 Consumers Say They’ve Made A Purchase After Hearing A Podcast Ad
The US population has embraced podcasts, with the majority of Americans over the age of 12 years listening to them on a weekly basis. And, per a survey by Adobe, more than half (52%) of these #podcast enthusiasts are listening to #podcasts while commuting to work or while they are working.
Among the nearly three-quarters (72%) of respondents who report having heard an ad while listening to a podcast, 1 in 3 say the ads are more engaging than on other formats and 2 in 5 say they are less intrusive. This could be due to the type of ads heard on podcasts, as the majority of ads are still host-read, which aids in maintaining continuity within the podcast.
🦅@PerspectiveIX via MarketingCharts.
🎧The Steady Rise of Podcasts
Over the past decade, #Podcasts have seen a steady rise in popularity. According to Edison Research, 64% of Americans are now familiar with the term “podcasting” and more than 4 in 10 have listened to a podcast themselves.
The format’s rise in popularity clearly coincides with a general increase in digital media consumption, specifically on mobile devices. Also, #Podcast is the only format users can consume passively.
❗️You can start listening to some fantastic podcasts on📻@iXRadio.
🚀@PerspectiveIX via Statista.
❓How familiar are you with podcasting? I...
AI Podcasting Startup Raises $1.3M
Retellio secures $1.30 million in funding to develop AI agents that convert thousands of hours of customer calls into 30-minute podcasts. More details at Retellio's website.
#AI#Funding#Podcasts#Startup#CustomerExperience#Tech
А для всех тех, кто любит неспешно заниматься своими делами в ночной тиши под приятные беседы умных людей, у нас сегодня новый подкаст с канала Pam Grossman — "#156 - Loretta Ledesma, The Death Witch" c ведьмой смерти Лореттой Ледесмой.
Впрочем, разумеется, днём его слушать тоже можно.
Слушать по ссылке.
#podcasts
#witchcraft
#western_esoterism