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

Пребарај: #yearone

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

@american_observer · Post #4901 · 20.01.2026 г., 02:00

📰 Trump’s Year One: The Under-the-Radar Revolution Nuclear Moon Base by 2030? NASA, under Sean Duffy's leadership, fast-tracked a nuclear reactor for the moon—aiming for 2030 launch. This isn't sci-fi; it's a geopolitical race with China and Russia, who plan their own lunar power plant by 2035. Whoever gets there first writes the space rules. ​"The U.S. and China are devising plans to build long-term bases on the moon, and nuclear reactors will be key to powering those outposts." Crypto Goes Mainstream Trump signed the GENIUS Act, unlocking stablecoins for Wall Street. Banks like Bank of America and Goldman Sachs are now exploring dollar-pegged digital tokens. Goodbye legacy payments; hello crypto for your groceries? ​ Confederate Bases Revived Nine Army bases got their old Confederate names back—Fort Hood among them. Civil rights groups cry foul, but Trump ignored Congress's independent commission. Cost to rename? $40 million. Cost to undo? Priceless for some. ​ Pennies Axed, Trump Coin Coming The U.S. Mint minted its last penny in November 2025. Trump killed the money-losing coin, saving $85 million yearly. Next up: a Trump-faced $1 coin for America's 250th birthday. Rounding up prices? Consumers pay an extra $6 million annually. ​ DOJ's Voter Roll Raid Justice Department demanded voter registration data from 43 states, suing 23 that refused. States claim privacy violations; DOJ calls it election integrity. The real goal? Purging "illegals" from rolls before midterms. ​ Coal Plants Forced Open Energy Secretary Chris Wright used emergency powers to keep aging coal plants running—Michigan, Washington, Colorado. Critics: it's expensive and dirty. Trump: it's about your electricity bill. ​ Dreamers Booted from Obamacare Trump redefined "lawfully present" to exclude DACA recipients from subsidies in 19 states. 2,300 Dreamers lost coverage; 1 million more uninsured by 2034. Hospitals brace for uncompensated care. ​ Psychedelics Fast-Tracked RFK Jr.'s HHS is rushing MDMA and psilocybin for PTSD. FDA Commissioner Marty Makary promises approval within 12 months. Republicans, once wary, now lead the psychedelic revolution. ​ Africa Aid Gutted Trump's DOGE team (Pete Marocco, Elon Musk) froze the U.S. African Development Foundation, canceling grants. The agency sued, but SCOTUS conservatives may let Trump win. ​ The Real Winner? While headlines scream Greenland and tariffs, Trump's quietly remade America—from moon nukes to crypto cash, Confederate nostalgia to psychedelic therapy. Survival of the boldest. #trump#yearone#policy#americafirst#doge 📱American Оbserver - Stay up to date on all important events 🇺🇸