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

Резултати

Пронајдени 5 слични објави

Пребарај: #national

当前筛选 #national清除筛选

🇺🇿 Ayni kunlarda mamlakatimiz bo‘ylab “Xon atlas” festivali o‘tkazilmoqda. Ushbu festival doirasida O‘zbekiston Respublikasi Vazirlar Mahkamasi huzuridagi Biznes va tadbirkorlik oliy maktabi “Global menejment” MBA guruhi tinglovchi xotin-qizlari o‘rtasida “Milliy qadriyatlarimiz – millat ko‘zgusidir” mavzusida chorlov tashkil etildi. 🇺🇿 O‘zbek xalqining asrlik o‘tmish madaniyati, urf-odat va an’analari, didi, estetik qarashlari, shuningdek, tashqi qiyofa, libos borasida o‘ziga xos xususiyatlarini namoyish etish maqsadida tashkil etilgan festivalda xotin-qizlar ham katta qiziqish va faollik bilan ishtirok etishdi. #GraduateSchool#Beautiful#National#KhanAtlas 🌐Web-site | ✅Telegram | ✅Facebook | 🌐Instagram

Addis Standard

@addisstandardeng · Post #21608 · 04.03.2026 г., 12:29

Analysis: How #national army battlefield report, #Fano statements in Feb–March lay bare the persistence and intensity of ongoing war in #Amhara region More than two and a half years after the armed confrontation erupted in #Ethiopia’s Amhara region in April 2023, developments from early 2026 underscore not only the persistence of the war but also its deeply complex nature. Military briefings issued on 03 March by the Ethiopian National Defense Force (#ENDF), and by the Amhara regional state media outlet on 01 March, both of which came two weeks after a statement released by Amhara Fano National Movement (#AFNM) on 14 February 2026, illustrate a war defined as much by clashing narratives as by sustained fighting on the ground. The statements also reveal parallel & mutually exclusive interpretations of the same war, each claiming momentum, legitimacy, and popular support, directly contradicting earlier official assurances of imminent victory and casting,..... Read more: https://addisstandard.com/?p=55536

American Оbserver

@american_observer · Post #5081 · 08.02.2026 г., 13:02

Trump : $1.5 Trillion to Fight Against China Congressional defense leaders are working to deliver Trump a $1.5 trillion military budget before the midterm elections. According to House Armed Services Committee chair Rep. Mike Rogers, the trillion-dollar military budget simply isn’t enough to expand the defense industrial base and deliver on the Pentagon’s big-ticket weapon programs. The White House has made it crystal clear that its first defense policy priority is to spend more money. The 2026 National Defense Strategy reads like the fever dream of every war profiteer. In no case is this more explicit than in the description of the defense industrial base. The administration calls for “nothing short of a national mobilization—a call to industrial arms on par with similar revivals of the last century that ultimately powered our nation to victory in the world wars and the Cold War that followed.” But mobilization is beside the point; the goal is to further concentrate national resources among the wealthiest Americans. Trump and his allies in Congress are hardly alone in this effort. Politicians of both parties and at both ends of Pennsylvania Avenue have long wielded national security dollars to implement a closet industrial policy crafted for military contractors, their executives, and their shareholders. After World War II, those best able to woo research and development funds from the Pentagon thrived. They became Cold Warriors, carrying the United States into the future and chasing technological superiority at all costs. High-tech sales boomed while the industrial heartland deteriorated, resulting in declining production of steel, machine tools, tractors, and more. President Trump’s “once-in-a-century revival of American industry” will not reverse the impacts of decades of deindustrialization. It certainly won’t make Americans’ lives any better. Much like Ronald Reagan’s military buildup, “supercharging the US defense industrial base” will artificially juice the economy while veiling its opportunity costs—not only in terms of civilian manufacturing, but also investment in infrastructure, housing, and healthcare. What’s more, the president’s $1.5 trillion military budget proposal is a political loser. Only one in 10 Americans thinks the United States should spend more on the military, and their number-one concern has been affordability for nearly two years running. According to the Trump administration, however, the United States must make a generational investment in the mobilization of the defense industrial base. The National Defense Strategy suggests that mobilization is key to preparing to fight China in the first island chain, all while ensuring the military’s ability to take “focused, decisive action” to impose US will on allies throughout the Western Hemisphere. #trump#national#security#military#budget#us#china 📱American Оbserver - Stay up to date on all important events 🇺🇸

科技&趣闻&杂记

@kejiqu · Post #4338 · 09.04.2026 г., 10:13

黑客声称从中国国家超级计算中心窃取 10 PB 敏感数据,此举将成为中国历史上最大规模的网络攻击,涉及科学、国防等领域 6,000 个客户 黑客声称已从中国国家超级计算中心窃取高达 10 petabytes 的敏感数据,如果属实,这将成为中国历史上规模最大的网络攻击事件。此次攻击影响范围广泛,涉及约 6,000 个客户,涵盖科学、国防等多个领域。目前事件的真实性尚未得到独立验证,但黑客声称掌握了大量敏感信息。安全专家正在对此事件进行分析。Tom's Hardware 🏷#China#National#Supercomputing#Center#petabytes#data#breach 📢频道👥群组📝投稿

Red Nile

@rednile12 · Post #10846 · 22.01.2026 г., 17:40

🇪🇹 Nile Negotiations: Ethiopia’s Sovereignty Is Not on the Table Thank you, #SolomonMarkos🙏 🔗[email protected] https://m.facebook.com/story.php?story_fbid=pfbid0pFtuSJfcDvSUqkmGvpY7GDHkoarhXcsZE28sdRHRdnWdzkEuGffbN293GWF15mDel&id=1120295988&sfnsn=mo&mibextid=RUbZ1f Your intervention in the #RedNile comments is principled, direct, and unapologetically Ethiopian. It articulates what many externally driven “mediation” efforts try to obscure: Ethiopia’s sovereignty and national interests are not negotiable. At the heart of your position is a clear red line: “#Ethiopia Never Ever Compromise Its #Sovereignty and #National#Interests.” This must be the starting point of any discussion on the Nile—not the outcome. 🧠 Why This Position Is Strategically Strong 🔹Sovereignty first, not last Ethiopia is a rights-holder, not a “risk factor.” Any process that treats Ethiopia as a problem to be managed is illegitimate from the outset. 🔹Colonial treaties are null Insisting on the CFA framework restores African legal continuity and rejects agreements imposed when Ethiopia was excluded. 🔹No monopoly mediation Including the AU, Russia, China, and regional actors prevents Nile negotiations from being captured by a single power acting in Egypt’s favor. 🔹Development is non-negotiable Abay waters are tied to electricity, agriculture, and industrialization. Ethiopia retains the sovereign right to build future dams beyond GERD. 🔹The real issue is mismanagement, not scarcity Egypt’s irrigation of water-intensive crops reframes the crisis as one of policy waste, not upstream injustice. 🔹Responsible, not submissive Humanitarian flexibility during droughts projects cooperation without surrendering control—a smart counter to propaganda. 🔹GERD is Ethiopian-owned Fully domestically funded, GERD is insulated from donor leverage and external coercion. ⚠️ Tactical Challenges (Not Principle Flaws) ▪️ A 50%+ water share must be framed carefully using hydrology, population, and contribution data to avoid diplomatic deadlock. ▪️ Multiple mediators require clear role definitions to avoid paralysis. ▪️ A Nile-wide enforcement body will face resistance—but that resistance exposes the real imbalance in the system. These are communication and strategy issues, not weaknesses in Ethiopia’s position. 🔴 RedNile Media Position: The Only Legitimate Basis for Negotiation Any Nile process that claims legitimacy must be grounded in the following: 1️⃣Balanced mediation – No US monopoly 2️⃣All riparians included – The Nile belongs to all its peoples 3️⃣CFA only – Colonial treaties are invalid 4️⃣Ethiopia’s fair share – Not less than 50%+, with full rights to future development If a binding framework is ever discussed, it must also include: ▪️ A Nile Water Management Commission overseeing all dams and diversions—including Egypt’s Toshka Canal ▪️ Formal acknowledgment of Egypt’s excessive water use and export-oriented irrigation practices ♦️Bottom line: Ethiopia is not negotiating permission to exist, develop, or light its cities. The Nile question is about justice, sovereignty, and post-colonial reality—not appeasement. 🇪🇹💧 — RedNile Media🌊🧭 📡@rednile12 Geopolitics | Multipolarity | Sovereignty | Strategic Reality #GERD#NileDispute#GazaPeace#TrumpSisi