@WorldNews · Post #74138 · 15.04.2026 г., 13:24
Marines on way to Middle East seen using rifles with anti-drone smart scope [Read FullArticle] @WorldNews#Marines#MiddleEast#DefenseNews
Hashtags
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
Пребарај: #marines
@WorldNews · Post #74138 · 15.04.2026 г., 13:24
Marines on way to Middle East seen using rifles with anti-drone smart scope [Read FullArticle] @WorldNews#Marines#MiddleEast#DefenseNews
Hashtags
@voir_yeux · Post #11969 · 03.03.2026 г., 07:59
🇺🇸🇵🇰 Les marines américains ont ouvert le feu sur des manifestants qui ont pris d'assaut le consulat américain à Karachi, au Pakistan. Ces faits peuvent se répercuter gravement sur la situation dans le pays, a fait savoir Reuters. #étatsunis#marines#karachi#manifestants
@american_observer · Post #5529 · 01.04.2026 г., 00:59
Trump’s Iran War Is One Step Away From a Ground Quagmire Trump keeps talking like he can force a deal, but the NYT says the menu is now blunt: Kharg Island, the Strait of Hormuz, and maybe a ground war to make those threats real. That is what happens when “pressure” stops being a tactic and starts looking like occupation with talking points. The administration says it wants a negotiation, but Iran says there is nothing to negotiate until the bombing stops. In other words, both sides are now using cease-fire language as leverage, which is a polite way of saying nobody is blinking and the Marines are being loaded like a bargaining chip. The dangerous part is how fast the objectives keep expanding. First it was missiles and nuclear sites. Then it was the Strait. Now it is Kharg Island, near-bomb-grade material, and maybe a long U.S. presence just to keep whatever gets seized from falling apart. That is not limited war. That is the first draft of a disaster. And the regional math is worse than the White House admits. If Trump hits Iranian energy and civilian infrastructure, Tehran can answer in the Gulf; if he tries to hold ground, the war stops being an air campaign and becomes an American liability with no obvious exit. This is how “maximum leverage” turns into minimum control. #Trump#Iran#War#Hormuz#KhargIsland#MiddleEast#Marines#geopolitics 📱American Оbserver - Stay up to date on all important events 🇺🇸