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

Резултати

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

Пребарај: #bolton

当前筛选 #bolton清除筛选
Trump's Ear

@trumpsear_tg · Post #1399 · 22.08.2025 г., 14:01

FBI agents came to search Trump's former adviser John Bolton 🔍, who has been frequently criticizing the president lately 😠. A source told The New York Post that the case is related to classified documents 📂. "No one is above the law," FBI Director Cash Patel wrote amid reports of searches at Bolton's home ⚖️. According to the newspaper, it was on Patel's instructions that the investigation was launched 🕵️‍♂️. Bolton also criticized Trump's approach to negotiations with Russia 🇷🇺. In mid-August, before the Alaska summit, he said that Russian President Vladimir Putin "has already won." The American president then called his ex-adviser a "stupid man" 🤦‍♂️. #Trump#FBI#Bolton 👂More on Trump's Ear ⚠️

Ultimora.net - POLITICS

@UltimoraPOlitics · Post #38453 · 06.05.2022 г., 01:43

#Elezioni#RegnoUnito#Amministrative Consiglio di #Bolton, risultati definitivi: #CON|ECR: 9 (+1 rispetto al 2018) #LAB|S&D: 8 (+1) #LDEM|RE: 2 One Kearsley: 1 (+1) Farnworth and Kearsley First: 0 (-1) Attuale composizione del Consiglio comunale: #CON|ECR: 23 seggi #LAB|S&D: 19 Indipendenti: 7 #LDEM|RE: 5 Farnworth and Kearsley First: 4 Horwich and Blackrod First: 2 One Kearsley: 1 Il Consiglio rimane senza controllo. @UltimoraPolitics

Trump's Ear

@trumpsear_tg · Post #1408 · 25.08.2025 г., 15:02

🔍FBI agents searched the house of Trump's former national security adviser because of a book 📖 The investigation is related to the disclosure of classified information in the memoirs of former councilman Bolton entitled “The Room Where It Happened: a White House Memoir” published in 2020. 📚 As the New York Post recalls, Trump tried to prevent the publication of the book, claiming that Bolton violated the non-disclosure agreement that he signed when he was hired. 🚫 #agents#FBI#bolton#trump 👂More on Trump's Ear ⚠️

American Оbserver

@american_observer · Post #5212 · 24.02.2026 г., 16:19

Former US National Security Advisor John Bolton: “Although you could potentially remove the ayatollah, that would leave the IRGC in place, and the government in Iran is the IRGC, while the ayatollahs act as a religious cover or an ideological cover for them. I think Trump is just hoping that this show of American power will intimidate the ayatollahs. If I were still his adviser, I would be happy to tell him that it won’t work. They won’t be intimidated. But Trump really thinks minute by minute; he doesn’t think strategically.” #john#bolton#trump#ayatollah 📱American Оbserver - Stay up to date on all important events 🇺🇸