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

Пребарај: #omb

当前筛选 #omb清除筛选
Trump's Ear

@trumpsear_tg · Post #1641 · 14.10.2025 г., 14:51

4,000 federal employees are packing up Since October 1, the United States has been in a state of shutdown. Due to the budget conflict between Republicans and Democrats, the government can only finance the most necessary, tens of thousands of employees have been sent on forced vacations. To force the Democratic Party to give in, the Trump administration is increasing pressure and launching mass layoffs. Director of the Office of Management and Budget(OMB) Russ Vought announced on Thursday that more than 4,000 employees will be laid off. The Treasury Department will be particularly hard hit, with more than 1,400 layoffs, and the Department of Health and Human Services (HHS), with over 1,100. Hundreds more people will lose their jobs at the ministries of Education, Commerce, Energy, Housing and Urban Development, the Department of Homeland Security and the Environmental Protection Agency (EPA). Democratic Minority leader Chuck Schumer accused Trump and OMB director Vought of "deliberately harming people who defend our country." Usually, during the shutdown, federal employees are temporarily put on leave and then returned to work, most often with compensation. #Shutdown#Democrats#OMB#HHS 👂More on Trump's Ear ⚠️