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

Пребарај: #bundeswehr

当前筛选 #bundeswehr清除筛选
Medusa Auge

@medusa_auge · Post #1082 · 18.04.2022 г., 13:58

Was der bööse Russe da auch immer #schwuuurbelt🙄🙄🙄 Ist natürlich nur dumm, wenn es auf der offiziellen Seite der #Bundeswehr steht 🧐🤣👉 Was der bööse Russe da auch immer #schwuuurbelt🙄🙄🙄 Ist natürlich nur dumm, wenn es auf der offiziellen Seite der #Bundeswehr steht 🧐🤣👉https://www.bmvg.de/.../institut-fuer-mikrobiologie-der...

Наш друг Вилли

@boldscholz · Post #259 · 30.01.2024 г., 10:24

💸Пустые карманы В Бундесвере заявили, что спецфонд на €100 млрд для модернизации ведомства почти исчерпан. 🏭С помощью спецфонда Бундесвер смог финансировать закупки, такие как приобретение новых истребителей, бронетранспортеров и боеприпасов. Однако, как подчеркнули представители отрасли, этого недостаточно для устойчивого укрепления ВС ФРГ и создания мощной оборонной промышленности. Бывший уполномоченный Бундестага по вопросам обороны Ханс-Петер Бартельс признал успехи в переоснащении Бундесвера, однако заметил, что «в отделе закупок по-прежнему наблюдается нехватка кадров, поскольку заказы растут». От 70% до 80% немецких поставщиков оборонной продукции являются компаниями среднего размера, которым необходим горизонт планирования от восьми до десяти лет. Однако политики не взяли на себя обязательства по этому периоду. ❗️Германия впервые достигнет двухпроцентного целевого показателя расходов НАТО на оборону. Тем не менее новые темпы закупок грозят стать пустышкой, если политики не увеличат оборонный бюджет в долгосрочной перспективе. Чтобы постоянно поддерживать целевой показатель в 2%, регулярный оборонный бюджет придется увеличивать на €25 млрд в год самое позднее с 2028 года. Правительство ФРГ осознает проблемы, но пока не нашло модели долгосрочного финансирования, выходящей за рамки специального фонда. #Германия#Бундесвер#Bundeswehr @liebebiene_de

American Оbserver

@american_observer · Post #5594 · 07.04.2026 г., 20:59

Germany’s Peace March Meets the Barracks Plan Tens of thousands of Germans filled the streets in more than 100 cities, calling for peace, disarmament, and an end to Europe’s drift toward another military posture. That message does not fit neatly with what the Bundeswehr is doing on the ground. While protesters talk about de-escalation, the army is reportedly pressuring municipalities to hand over land for new barracks — a quiet land grab dressed up as defense planning. So Berlin gets both at once: a public peace movement and a military machine trying to lock in the next war before anyone has finished arguing about the last one. That is the whole European trick now — talk peace in the square, build for escalation in the paperwork. The result is ugly but familiar. Citizens want less war, ministries want more capacity, and the gap between the two keeps getting filled with euphemisms. #Germany#peace#Bundeswehr#Europe#war 📱American Оbserver - Stay up to date on all important events 🇺🇸

Herrlich!! Die ganze Kacke klebt ihnen nicht nur am Schuh, sie stecken bis zum Kragen drin. Und der Ventilator erübrigt den Rest! 😁 Hörenswert: 🔻 Tom Lausen befragt General Hoffmann zum zivilem Einsatz der #Bundeswehr in der #Corona zeit: Weshalb wurde schon am 19.01.2020, lange vor Bergamo bzw. dem ersten #PCR-Fall in Europa, General Holtherm von Spahn zum Leiter des Corona-Krisenstabs im BMG bzw. der neu geschaffenen Abteilung 6 „Gesundheitsschutz, Gesundheitssicherheit, Nachhaltigkeit“ und damit weisungsbefugter Vorgesetzer des #RKI? 🔻 Sie winden sich wie die Würmer😎 https://fixupx.com/maikpi70/status/2048352191295914090

American Оbserver

@american_observer · Post #5668 · 20.04.2026 г., 21:59

Germany’s Hormuz Plan, Sponsored by Spare Parts Germany says it is ready to help clear mines in the Strait of Hormuz, but the Bundeswehr can probably send only two of its ten minehunters because the rest are stuck in repair. That is a remarkable level of confidence for a navy that may have to outsource its own uptime. Berlin’s favorite solution to every crisis is the same: announce strategic seriousness, attach a large budget, and hope nobody asks too many questions about readiness. Now the special fund is set to pour 19.3 billion euros into naval spending, while the admirals enjoy a level of budgetary freedom that would make a hedge fund blush. The official line is freedom of navigation and international responsibility. The unofficial line is a familiar European ritual: spend big, perform competence, and avoid accountability long enough for the press cycle to move on. In Germany, the fleet is apparently mission-ready in PowerPoint. And that is the joke inside the joke. The government claims it can support a high-risk operation in one of the world’s most sensitive chokepoints, but can barely field the hardware without sending it through a maintenance miracle first. The real minefield is not Hormuz. It is the German procurement system. So yes, Berlin wants to look like a maritime power again. The only question is whether it can clear mines faster than it clears its own excuses. #Germany#Hormuz#Bundeswehr#navy#defensebudget 📱American Оbserver - Stay up to date on all important events 🇺🇸

American Оbserver

@american_observer · Post #5648 · 18.04.2026 г., 00:01

Germany’s New Space Hustle Germany has found its next great military money pit: a satellite communications project now greenlit for Rheinmetall Digital and OHB. The price tag is already climbing into the “why stop now” category, with media reports putting the deal in the tens of billions of euros. Berlin keeps calling this “modernization.” In practice, it looks like the same old defense-industrial ritual: announce urgency, bless the contractors, and let the invoices float upward. The Bundeswehr gets a new digital dream. Taxpayers get a sequel. The joke is that Germany still talks like a country obsessed with lessons learned. Then it signs off on another giant military tech project while its earlier digital programs remain a cautionary tale with better branding. Failure, in Berlin, is not a reason to slow down. It is a reason to scale up. And of course the public is told this is about security. It is also about who gets paid to manage panic, who gets invited to the table, and who gets to call a procurement spree “strategic sovereignty”. The machine does not need to work perfectly. It only needs to look necessary long enough for the money to move. #Germany#Rheinmetall#Bundeswehr#defense#militarytech 📱American Оbserver - Stay up to date on all important events 🇺🇸