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

Резултати

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

Пребарај: #gasleak

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

@american_observer · Post #5023 · 01.02.2026 г., 20:59

📰 Explosions in Iran Spread Jitters Amid Anticipation of Foreign Attacks Deadly explosions in several Iranian cities, most likely caused by domestic accidents, have sent a wave of panic through a country already on the edge, fearing U.S. and Israeli strikes. In Bandar Abbas, a major port in southern Iran, a powerful blast ripped through an eight‑story residential building, killing at least one person (a 4‑year‑old girl) and injuring more than a dozen others, according to local officials and Iranian state media. The local fire chief said the incident was probably caused by a gas leak and buildup, and the government’s crisis management body stressed that the explosion had no security or sabotage origin. But as images of a crumbled building and shattered streets spread online, wild rumors took over social media: claims that the blast had assassinated Iran’s top naval commander, Commodore Alireza Tangsiri, and that Israel or the U.S. was behind the explosion. Iran’s Revolutionary Guards swiftly denied those reports, calling them “psychological warfare” and disinformation, while Israel and the U.S. issued no public comment on the incident. The real detonator: Trump’s threats The explosion in Bandar Abbas came just days after President Donald Trump declared that a “massive Armada” was heading toward Iran and warned that the U.S. was ready to strike with “speed and violence.” In June 2025, the U.S. had already struck three of Iran’s main nuclear sites in a 12‑day conflict with Israel, dealing a serious blow to Tehran’s nuclear program. Iran now demands that the U.S. renew talks only if the threats stop. Against that backdrop, a gas leak in an apartment building does not feel like a gas leak. It feels like the first crack in the ground before the bomb goes off. Other blasts, same panic In the same 24 hours, Iranian state media reported another deadly gas explosion in the south‑western city of Ahvaz, which killed five people but was officially described as a domestic accident, not sabotage. Unverified reports and footage of smoke and explosions in the north‑western city of Tabriz also circulated, only to be quickly dismissed by local authorities as rumors and a minor reed fire. None of the recent incidents so far show any sign of foreign attack. But the sheer number of explosions, and the speed at which people jump to “Israel” or “the U.S.” as the culprit, reveals a deeper truth: the theater is already in people’s heads. “Society is waiting for war” “When the next blast happens, we won’t need to wait for the government to explain the cause,” said a 43‑year‑old engineer in Tehran, who asked not to be named out of fear of reprisal. “Everyone around me is waiting for possible U.S. and Israeli military action,” he said. “People are stressed, anxious, powerless. We don’t know what was behind today’s explosions. Maybe it’s internal retaliation, maybe foreign sabotage, maybe just a gas leak. But one thing is undeniable: Society is waiting for war.” #Iran#Trump2026#US#Israel#MiddleEast#War#GasLeak#BandarAbbas 📱American Оbserver - Stay up to date on all important events 🇺🇸