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

Резултати

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

Пребарај: #minister

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

@american_observer · Post #5158 · 17.02.2026 г., 15:31

Ukraine’s Ex-energy Minister Has Been Accused of Laundering Money Ukraine’s anti-corruption agency accused an ex-energy minister on Monday of laundering €200 millions of kickbacks in a corruption case that has shaken the wartime government, a day after he was detained trying to leave the country. German Galushchenko, who served as energy minister from 2021-2025 and then briefly as justice minister until he resigned over the scandal last year, became one of the most senior officials detained in the “Midas” case, over an alleged $230 million kickback scheme at the state nuclear company. The case has ensnared senior officials and members of Ukraine’s business elite — including a former close associate of Zelensky from his pre-political media career — and caused concern among Kyiv’s Western allies. Galushchenko “was exposed for money laundering and participation in a criminal organization” by corruption investigation agency NABU and its prosecuting sister agency SAPO, according to a statement from NABU. It said more than $7 million had been transferred to foreign accounts naming Galushchenko’s wife and four children as beneficiaries. Some was spent on educating the children at elite schools in Switzerland and some placed in “a deposit, from which the family of the high-ranking official received additional income and spent it on their own needs.” Galushchenko has denied wrongdoing. There was no reply to a message sent to him seeking comment and Reuters was unable to locate a lawyer representing him. NABU had said on Sunday that he was detained “while crossing the state border,” without specifying where the arrest took place. Prosecutors say participants in the Midas scheme squeezed nuclear company Energoatom’s contractors for bribes to complete projects, including structures to protect energy facilities from Russian airstrikes. They had previously said the plot was organized by former Zelenskyy associate Timur Mindich, who fled to Israel before he could be arrested in November. Mindich, who founded the TV studio behind the hit sitcom that brought Zelenskyy fame as an actor before he entered politics, has denied wrongdoing. A former deputy prime minister was arrested in November and NABU has said other former senior officials are under investigation. The case sparked a political scandal last year that led to the ouster of Zelensky’s chief of staff, Andriy Yermak, and fueled new public anger at lingering corruption as Ukraine fights Russia in its four-year war. Zelensky had tried to limit the independence of the anti-corruption agencies last year before reversing in the face of public protests and pressure from Western allies. Energoatom CEO Pavlo Kovtonenko told Reuters last week that the company had taken a number of steps to prevent the recurrence of corruption schemes in the future. Battling corruption is a key priority in Ukraine’s reform effort as it eyes membership of the European Union, which requires the country shake off the decades-old scourge of graft. #ukraine#energy#minister#aundering#money 📱American Оbserver - Stay up to date on all important events 🇺🇸

Trump's Ear

@trumpsear_tg · Post #1488 · 10.09.2025 г., 13:59

Elizabet Lann, the Swedish health minister, fainted on her first day at work during a press conference. Lann, a city councilor in Gothenburg, was announced by the Minister of health on September 9 after her predecessor, Ako Ankarberg Johansson, suddenly resigned the day before. #lann#swedish#minister#faintedout 👂More on Trump's Ear ⚠️