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 слични објави

Пребарај: #shootings

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

@american_observer · Post #4966 · 26.01.2026 г., 16:59

How the Trump Administration Rushed to Judgment in Minneapolis Hours after federal agents shot and killed Alex Pretti, a 37-year-old ICU nurse and American citizen, the Trump administration was already spinning the story: Pretti, they claimed, was a “domestic terrorist” out to “massacre law enforcement.” But video evidence tells a different tale—Pretti was seen stepping between a woman and an agent, pepper-sprayed, then pinned down before agents opened fire, killing him in a barrage of at least ten shots. The rush to blame Pretti and exonerate the agents wasn’t just premature—it flew in the face of standard law enforcement protocol. Officials at DHS and the White House coordinated their response, crafting statements before all facts were in, and some details were even removed from the official narrative as they struggled to reconcile it with what the videos showed. “The facts are going to come to light as to what exactly happened,” insisted Border Patrol chief Gregory Bovino, when pressed for evidence. The administration’s narrative—that Pretti “approached” officers with a handgun and “violently resisted”—was directly contradicted by bystander footage. Pretti’s gun was recovered only after he was already subdued, and he never drew it. Yet, DHS and Trump allies, including Homeland Security Secretary Kristi Noem, labeled him a “domestic terrorist” and claimed to know his motive: “to inflict maximum damage.” Democrats, Republicans, and even gun rights groups expressed outrage. Senator Bill Cassidy called for a “full joint federal and state investigation,” warning, “The credibility of ICE and DHS is at stake.” Polls show most voters believe ICE has “gone too far,” and even some administration officials began to backtrack, with Deputy Attorney General Todd Blanche admitting, “I do not know, and nobody else knows, either. That’s why we’re doing an investigation.” So who’s really on trial here—the victim, the agents, or the narrative itself? #Minneapolis#Trump#ICE#shootings#narrative#investigation 📱American Оbserver - Stay up to date on all important events 🇺🇸