TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #175 · 30 окт.

В прошлом посте говоря "Все вызовы теперь одинаковы" я несколько слукавил. Всё-таки есть в этом зоопарке версий некоторая несовместимость вызов которой просто так не унифицировать. Эти моменты вынесены в отдельный модуль 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

Hashtags

Резултати

Пронајдени 2 слични објави

Пребарај: #revolutionaryguards

当前筛选 #revolutionaryguards清除筛选
American Оbserver

@american_observer · Post #4951 · 24.01.2026 г., 21:59

📰 Iran’s Ayatollah and His Guards Falter After Storm of War and Protests Weeks after Israeli warplanes pulverized Iran’s military command in the June airstrikes, a new generation of Revolutionary Guard leaders had to step into the void, mourning the men they were now replacing. The regime responded to the latest wave of nationwide protests with unprecedented brutality, confirming what many suspected: the old formula of Ayatollah Khamenei and the Guards is cracking under combined pressure of war, sanctions, and a population in open revolt. The System on Trial The bloody crackdown did its job: it preserved the regime’s unity in the short term, centered on the ayatollah and the Guards’ 150,000-strong praetorian guard. But analysts see the violence as a sign of acute weakness, not strength. “They turned to live fire really quickly because their weakness was acute, and they knew it,” said an Iran expert at the Naval Postgraduate School, comparing the current situation to the late Soviet Union. ​ The Revolutionary Guards are now the core of the system, controlling a vast empire of media, economy, oil, seaports, and even an air force. “They have everything that it takes to assume power,” said the International Crisis Group’s Iran project director, meaning the Islamic Republic could evolve into a military-dominated state like Pakistan or Egypt after Khamenei is gone. ​ Generational Rift, Coming War Within Inside the Revolutionary Guards, a sharp divide is opening. The older generation grew up in the Iran-Iraq war, in sacrifice and hardship, and now enjoys foreign homes, elite schools, and luxury cars. The younger officers rose during Iran’s regional expansion and have tasted little of that wealth, but want to protect “their meal ticket”. Dismayed by the loss of the Syria–Iraq–Lebanon–Yemen proxy network and the crippling blow to the nuclear program in the June war, a more aggressive, assertive faction has emerged among the younger Guards. They see the regime as redeemable only through even harsher repression and confrontation — and some fear they may move against the aging ayatollah preemptively, not to save the revolution, but to save their own future. ​ The Limits of Terror The regime has survived four major protest waves, and the ayatollah has shrugged off rumors of terminal illness before. But this time, the pressure is different: economic collapse, a youth uprising, the humiliation in war, and a U.S. president openly threatening to intervene if protesters are massacred. ​ “This is not a sustainable situation where you wait for an elderly leader to die to put things back in order,” says an analyst, comparing today’s Iran to the final years of Mao Zedong or Leonid Brezhnev. The country “doesn’t have the time to wait him out.”​ #Iran#Ayatollah#RevolutionaryGuards#Protests#MiddleEast#Uprising#RegimeChange 📱American Оbserver - Stay up to date on all important events 🇺🇸

Crypto M - Crypto News

@CryptoM · Post #65062 · 10.04.2026 г., 17:45

🚀 Iran's Leadership Revamp Amid Peace Talks with the US The ongoing conflict in Iran has prompted significant changes in the nation's leadership structure. Bloomberg posted on X that the Revolutionary Guards are set to play a pivotal role in the upcoming peace negotiations with the United States this weekend. This shift in power dynamics underscores the growing influence of the Revolutionary Guards in Iran's political landscape. The talks are expected to address key issues surrounding the conflict and aim to establish a framework for peace. Observers are closely watching how the involvement of the Revolutionary Guards will impact the discussions and the potential outcomes of these negotiations. #Iran#LeadershipRevamp#PeaceTalks#RevolutionaryGuards#USIranRelations#PoliticalLandscape#ConflictResolution#IranPolitics#PeaceNegotiations