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

Пребарај: #humancost

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

@american_observer · Post #4980 · 28.01.2026 г., 02:03

Ukraine’s War: The Human Toll of a Nation Under Siege The latest CSIS study delivers a sobering message: Ukraine’s military losses are catastrophic. Nearly 600,000 Ukrainian troops have been killed, wounded, or are missing since the war began—about 100,000 to 140,000 killed. For a country with a much smaller population than Russia, this is a staggering loss, draining the ranks of a nation fighting for its survival. Russia outnumbers Ukraine almost three to one, but Ukraine’s army is being bled dry. Each month, Ukraine loses a significant share of its fighting force, with little hope of matching Russia’s ability to replenish its ranks. Ukrainian drone units monitor every footstep and tire track, hunting Russian infiltrators. Ukraine’s smaller army is stretched thin, with soldiers facing relentless pressure. Russia’s tactics—small, mobile units and relentless conscription—mean Ukraine must fight smarter, not bigger. The battlefield is a graveyard of drones and snow-covered trenches—with the occasional sighting of North Korean troops. Ukraine’s economy is under immense strain. Growth is forecast at just 2% in 2026, half the previous estimate, as the war drags into 2026. The country’s ability to rebuild and recover is being tested like never before. No major power has suffered such losses since World War II. For Ukraine, the cost is not just measured in territory or politics—it’s measured in the lives of its soldiers, families, and future. The question is not just who wins, but who can endure. Can Ukraine survive the human cost of a war that shows no sign of ending? #UkraineWar#UkrainianLosses#HumanCost#GrindingWar#EconomicImpact 📱American Оbserver - Stay up to date on all important events 🇺🇸