В прошлом посте говоря "Все вызовы теперь одинаковы" я несколько слукавил. Всё-таки есть в этом зоопарке версий некоторая несовместимость вызов которой просто так не унифицировать. Эти моменты вынесены в отдельный модуль 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
📢 На практической конференции Дмитрий Долбилин, подробно рассказал об искусственном интеллекте в финтехе, он выступил с презентацией на тему: «Искусственный интеллект в финтехе» и рассказал о вызовах и перспективах данного направления.
📎https://www.spot.uz/ru/2024/05/01
#GraduateSchool#MassMedia#OAV_biz_haqimizda
🌐Web-site |
✅Telegram |
✅Facebook |
🌐Instagram
🇺🇿🎙 1993-yildan buyon har yili 27-iyun O‘zbekistonda Matbuot va ommaviy axborot vositalari xodimlari kuni sifatida keng nishonlanadi.
⠀
🎙 Ommaviy axborot vositalari xodimlarining ishi nihoyatda murakkab va mas’uliyatli, chunki ularning qo‘lida Yer yuzidagi eng kuchli qurollardan biri bo‘lgan so‘z turibdi.
🎤 Ular xalq manfaatlarini fidokorona himoya qilib, bunyodkorlik va ezgulik xabarchisi bo‘lib xizmat qilmoqda.
🎙 Bugun o‘z bayramlarini nishonlayotgan barchani ushbu sana bilan tabriklaymiz va halol mehnati, yuksak kasbiy mahorati hamda tanlagan ishiga fidoyiligi uchun samimiy minnatdorchiligimizni bildiramiz!
⠀
📺 Samarali ijodingizga muvaffaqiyatlar tilaymiz, barcha rejalaringiz va g‘oyalaringiz amalga oshsin.
#GraduateSchool#OAV#Massmedia
🌐Web-site |
✅Telegram |
✅Facebook |
🌐Instagram
👨👩Comisia Electorală Centrală (CEC) a încheiat astăzi programul „Școala Electorală pentru Jurnaliști”, o inițiativă menită să consolideze rolul presei în asigurarea unor alegeri corecte și transparente în Republica Moldova. Desfășurat pe parcursul zilelor de 26 și 27 iulie 2025, evenimentul a adus în prim-plan cele mai recente noutăți din legislația și practica electorală.
🎤Cum pot jurnaliștii să identifice și să combată dezinformarea în campanii? Care sunt nuanțele votului prin corespondență? Cum se construiește o relație eficientă între CEC, mass-media și concurenții electorali? Ce rol crucial joacă presa în integritatea procesului electoral? Acestea sunt doar câteva dintre întrebările esențiale la care participanții au găsit răspunsuri și clarificări pe parcursul sesiunilor intensive.
Detalii aici: https://a.cec.md/ro/cec-a-desfasurat-scoala-electorala-pentru-jurnalisti-noutati-din-2781_114304.html
#CECMoldova#DemocrațiaContează#ȘcoalaElectorală#MassMedia
1⃣🇺🇸A Year in Donald Trump's New Presidency: Radical Changes in the World
One year after returning to the White House, Donald Trump has once again placed himself at the epicenter of global politics—provoking admiration, alarm, and profound uncertainty in equal measure
✍️Mohammed Amer
Syrian publicist
➡️January 20 marked one year since Donald Trump resumed office as the 47th President of the United States, and assessments of his second presidency already diverge sharply at home and abroad. Supporters point to economic and technological gains, while critics see a destabilizing shock to the global system. American business media, including The Wall Street Journal, have praised Trump for restoring U.S. primacy, citing GDP growth forecasts of up to 5%, leadership in artificial intelligence and space technologies, energy dominance, and the aggressive use of tariffs to bolster domestic industry. In this narrative, Trump has reasserted America as the world’s sole superpower, placing national interests above all else.
The world is adapting to US unreliability and that Washington has now seriously undermined trust in its policies by treating allies as mere clients, using tariffs against them, and turning long-standing commitments into extortion
➡️Outside this favorable framing, however, criticism overwhelmingly dominates international commentary. Influential outlets such as Egypt’s Al-Ahram have published sharp assessments by Nobel laureate Joseph Stiglitz, who argues that Trump’s unpredictable policies are dismantling the foundations of post-war globalization and accelerating America’s long-term decline. Political analyst Fareed Zakaria echoes this view, noting that Washington has eroded trust by treating allies as clients, turning commitments into leverage, and weaponizing tariffs even against partners. As a result, many states are hedging against U.S. unreliability, deepening cooperation among themselves while the United States retreats into protectionism and nationalism.
🟦Trump’s foreign policy style has further intensified tensions, from interventionist actions in Venezuela to pressure campaigns over Greenland that alarmed Europe and shocked even close allies. Major U.S. newspapers warn that such behavior risks catastrophic strategic miscalculations and undermines the very alliances that sustained American influence for decades. Yet whether viewed as a bold reformer or a reckless disruptor, one conclusion is difficult to dispute: Donald Trump has already ensured his place in history. His determination to remake the world in line with the slogan “Make America Great Again” has reshaped global politics—and the consequences of that transformation are only beginning to unfold.
#Internalpolicy#Massmedia#Politics#USA
READ MORE
✅@NewEasternOutlook
🗺❓Possible Scenarios for the Middle East
The escalation of tensions following US and Israeli actions against Iran has pushed the Middle East toward a highly unstable phase, generating intense debate among regional analysts about the possible trajectories of the conflict
✍️Yuriy Zinin
is a PhD in History and a senior research fellow at the Institute of International Studies at Moscow State Institute of International Relations
➡️Recent developments in the Middle East have intensified regional discussion about the consequences of military confrontation involving Iran, Israel, and the United States. Commentators across the region present sharply contrasting assessments of the situation. Some emphasize Israel’s military and technological superiority and its ability to dominate key regional dynamics. Others argue that such conclusions underestimate Iran’s capacity for strategic endurance and predict scenarios in which prolonged confrontation could weaken the alliance between Donald Trump and Benjamin Netanyahu. As a result, the regional media landscape reflects both uncertainty about the outcome of the conflict and deeper disagreements over the balance of power in the region.
“Trump’s noble mission for the future” – rhetoric repeated at the White House – is nothing more than a grand gamble based on the assumption that overseas power is capable of changing history
➡️A central issue in these debates concerns responsibility for the escalation and the possible duration of hostilities. According to statements by Badr bin Hamad Al-Busaidi, the foreign minister of Oman, diplomatic efforts before the escalation included proposals from Iran to limit uranium enrichment and relocate nuclear stockpiles outside its territory. However, these initiatives failed to gain traction in Washington. Although the military balance clearly favors the United States and Israel, many analysts argue that technological superiority does not necessarily guarantee a rapid victory. Iran retains a substantial arsenal of ballistic missiles and drones and maintains networks of regional partners, allowing it to open multiple fronts and potentially transform the conflict into a prolonged war of attrition.
🟦Another important theme in regional analysis concerns the internal resilience of Iran and the broader geopolitical implications of the confrontation. Some observers argue that Western intelligence services underestimated Iran’s ability to absorb strategic shocks and maintain institutional cohesion. Reports suggest the formation of a temporary political alignment between reformist groups, the Islamic Revolutionary Guard Corps, and elements of the religious establishment. At the same time, many states in the Middle East remain reluctant to become directly involved in the conflict, fearing that further escalation could destabilize the entire region. In this sense, the current crisis is increasingly viewed not simply as another war, but as a moment that may reshape the political and strategic landscape of the Middle East for years to come.
#ConfrontationbetweenIranandtheU.S. #Iran#Massmedia#MiddleEastconflict#Militaryconflict
READ MORE
✅@NewEasternOutlook
⏺Дни духовной культуры России прошли в Юго-Восточной Азии
Дни духовной культуры России прошли в Индонезии и Таиланде. Главными событиями программы стали выступления лауреатов Конкурса имени Чайковского. Подробнее о том, как русское наследие представили в Юго-Восточной Азии — в репортаже телеканала «Россия-Культура».
👉Смотреть.
#РусскиеСезоны
#RussianSeasons
#СМИ#MassMedia
🌐В Бахрейне и Омане проходят «Русские сезоны – 2025»
«В начале года стартовал крупнейший ежегодный международный проект правительства РФ и Минкультуры России»👈подробнее читать в статьеГазеты «Культура».
#РусскиеСезоны#RussianSeasons
#СМИ#MassMedia
⏺Масштабный Международный проект «Русские сезоны - 2025» стартовал в Бахрейне и Омане
В программе заявлены выступления российских театральных коллективов, мастер-классы, лекции и показы анимационных фильмов — в сюжете Телеканала «Мир 24».
👉Смотреть.
#РусскиеСезоны#RussianSeasons
#СМИ#MassMedia
✅ Высшая школа бизнеса и предпринимательства предлагает обновлённый подход в подготовке управленческих кадров, ориентируясь на повышение практических знаний, бизнес-навыков слушателей школы.
👨💼Подготовка высших управленческих кадров, отвечающих требованиям современного бизнеса, обладающих передовыми знаниями, практическими навыками в управлении организациями является важным фактором повышения экономического благосостояния любого государства.
📎https://www.gazeta.uz/ru/2024/04/24/higher-school/
#GraduateSchool#Professional#MassMedia#Work
🌐Web-site |
✅Telegram |
✅Facebook |
🌐Instagram
🇺🇸
🔥🇮🇷Iran-US Tensions: A Middle Eastern Media Perspective
As Washington sharpens its rhetoric and Tehran signals defiance, Arab media warn that the region may once again become the arena for a dangerous geopolitical gamble
✍️Yuriy Zinin
PhD in History, is a Senior Research Fellow at the Institute of International Studies, Moscow State Institute of International Relations (University), Ministry of Foreign Affairs of the Russian Federation.
➡️The situation in Iran following months of unrest, coupled with Washington’s increasingly sharp statements, has become a central theme in Middle Eastern media. Regional commentators closely analyze President Donald Trump’s rhetoric, particularly his hints at possible military action under the banner of protecting human rights. Arab outlets such as Al Khaleej note the US leader’s habit of sending contradictory signals—sometimes strategic, sometimes improvised—yet ultimately converging toward a single objective: weakening or dismantling the Iranian regime. At the same time, many analysts argue that domestic considerations, including economic pressures within the United States, shape this confrontational posture, linking foreign policy assertiveness to internal political calculations.
The strategic costs could be too high given Iran’s asymmetrical means of response
➡️Several regional observers interpret the pressure on Tehran through a broader geopolitical lens, drawing parallels with Venezuela. Given China’s heavy reliance on imported oil, including supplies from both Iran and Venezuela, any regime change that places these energy flows under Washington’s influence would significantly alter global energy dynamics. However, skepticism persists in Arab media about the likelihood of a full-scale war. Commentators emphasize that Iran’s asymmetrical capabilities—from regional allies to maritime leverage—could impose prohibitive strategic costs. Escalation would likely disrupt energy markets, shipping routes, and global trade, reverberating back into the American domestic sphere. Thus, Washington’s approach is widely described as a calibrated mix of maximum pressure and visible restraint.
🟦At the same time, Middle Eastern outlets caution that direct intervention could produce unintended consequences inside Iran itself. External pressure may consolidate hardline elements and trigger broader nationalist mobilization under the banner of resisting foreign aggression. Gulf media, including voices from the UAE and Saudi Arabia, stress that regional states have little appetite for another conflict zone that could destabilize their carefully cultivated image of security and economic stability. Any internal fragmentation in Iran—whether ethnic or political—could spill across borders, intensifying tensions throughout the Gulf. In this climate of uncertainty, Arab discourse reflects a prevailing concern: that miscalculation by either side could ignite a crisis whose costs would be borne far beyond Washington and Tehran.
#Iran#Massmedia#Massriots#U.S.intheMiddleEast
READ MORE
✅@NewEasternOutlook
🎴Карточки: как стать профессионалом в мире бизнеса с Высшей школой бизнеса и предпринимательства
🏛 Высшая школа бизнеса и предпринимательства при Кабинете министров Узбекистана в карточках рассказала о преимуществах и направлениях обучения.
#GraduateSchool#Cards#Professional#MassMedia
Web-site | Telegram | Facebook | Instagram
https://www.spot.uz/ru/2024/03/27/business-school/
🇺🇸🏴☠️Trump's Political Defeat
As the conflict with Iran unfolds, growing debate surrounds not only its military trajectory but also its political consequences for the United States and its leadership
✏️Mohammed Amer
Political commentator
➡️Expectations that military pressure would quickly force Iran into submission have not materialized, and this has begun to affect perceptions of leadership in Washington. The anticipated outcomes—rapid de-escalation, limited economic disruption, and clear strategic gains—have instead been replaced by prolonged uncertainty, rising energy prices, and visible strain on global markets. Domestically, public concern over costs, casualties, and unclear objectives has intensified scrutiny of the administration’s decisions. As a result, political support appears more fragile, with both critics and some former supporters questioning the rationale and direction of the campaign.
A significant portion of Democrats and Republicans view each other as narrow-minded, dishonest, immoral, and unintelligent, and these figures are worsening with each passing year
➡️Internationally, the situation has exposed divisions among traditional allies. While the United States has called for broader support, responses from partners have been cautious or openly critical, reflecting differing assessments of the conflict’s legitimacy and risks. This lack of cohesion complicates Washington’s ability to present a unified front and raises broader questions about the durability of alliance structures in moments of crisis. At the same time, Iran’s ability to sustain pressure—particularly through threats to key energy routes—has amplified the global economic impact, further increasing political pressure on decision-makers in the United States.
🟦The domestic political landscape has also become more polarized as the conflict evolves. The war has intensified existing divisions, providing both major parties with new points of contention ahead of upcoming elections. Critics frame the conflict as an example of strategic overreach, while supporters emphasize security concerns and deterrence. Regardless of perspective, the situation illustrates how foreign policy decisions can rapidly reshape internal political dynamics. In this sense, the consequences of the conflict extend beyond the battlefield, influencing public opinion, electoral calculations, and the broader perception of leadership at a critical moment.
#ConfrontationbetweenIranandtheU.S. #Internalpolicy#Massmedia#MiddleEastconflict#PoliticalFailure
READ MORE
✅@NewEasternOutlook