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

Пребарај: #perfidy

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

@american_observer · Post #4851 · 13.01.2026 г., 23:05

📰 U.S. War Crime? Military Used Fake Civilian Plane to Kill Drug Smugglers The Pentagon used a secret aircraft painted to look civilian—no military markings, munitions hidden inside—to strike a boat in September, killing 11. Survivors waved at the plane before a follow-up strike killed them. Legal experts say it's "perfidy," a war crime banned under laws of armed conflict. ​ What's Perfidy? Perfidy = fooling enemies by feigning civilian status, then attacking. U.S. military manuals forbid it. Former Air Force deputy JAG Steven Lepper: "If the aircraft isn't identifiable as a combatant, it shouldn't engage in combat." The boat turned back toward Venezuela after seeing the plane—then got hit. ​ Trump's "War" on Cartels Trump declared a secret armed conflict with 24 gangs/cartels, claiming boat attacks are lawful combat—not murder. But even in war, perfidy is illegal. The military has killed 123 people in 35 boat strikes. Critics say it's all illegal: you can't target civilians without imminent threat, war or not. ​ The Plane: Civilian Look, Military Mission Officials confirmed the aircraft wasn't standard military gray—no visible markings. Plane-spotters saw a white 737 with blue stripe at St. Croix in September. Military claims its transponder broadcast a military tail number—but legal experts say that doesn't count if the boat crew couldn't pick up the signal. ​ Pentagon's Defense Falls Flat Pentagon: "All aircraft undergo legal review." But Trump's team excluded JAGs and ops experts from planning. Defense Secretary Hegseth fired top military lawyers in February. Retired Navy JAG Todd Huntley: legitimate uses exist for such planes (hostage rescue), but not for offensive strikes masquerading as civilian. ​ Survivors Waved, Then Died Video shows two survivors clinging to wreckage, waving at the plane—before a second strike killed them. Targeting shipwrecked survivors is also a war crime. The military has since switched to visible MQ-9 Reapers, though it's unclear if victims could see them. ​ Bottom Line: Trump's cartel "war" just crossed into war crime territory—using fake civilian planes to trick targets, then killing survivors. When the rulebook says "don't," and you do it anyway, whose law applies?. ​ #trump#perfidy#warcrimes#pentagon#cartels 📱American Оbserver - Stay up to date on all important events 🇺🇸