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

Резултати

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

Пребарај: #prisons

当前筛选 #prisons清除筛选
Venezuelanalysis

@venanalysis · Post #2362 · 11.05.2026 г., 19:12

📰 NEWS | Venezuelan Attorney General to Investigate Unreported Death in State Custody Venezuelan Attorney General Larry Devoe has opened an investigation into the death of Victor Hugo Quero Navas, who died in custody in July 2025 at Rodeo I prison near Caracas. Authorities said he died from acute respiratory failure after being hospitalized with gastrointestinal bleeding. The case drew attention after a Caracas court reportedly denied Quero amnesty under Venezuela’s February Amnesty Law, despite authorities later confirming he had died months earlier. Quero’s mother says she repeatedly sought information from prison and judicial authorities without being informed of his death. NGOs have called for an independent investigation into possible due process and human rights violations. Read the full report here 👉https://shorturl.at/fpZKY #JusticeSystem#Prisons

Venezuelanalysis

@venanalysis · Post #1808 · 15.11.2024 г., 22:57

Venezuelan Attorney General Tarek William Saab met with the families of detainees and pledged to review 225 cases based on new evidence. This follows violent protests after the July 28 elections, where authorities arrested over 2,000 people. The review aims to fast-track the release of those deemed innocent. Read the full report here 👉🏼https://shorturl.at/pOfAS #justicesystem#opposition#prisons

Venezuelanalysis

@venanalysis · Post #1603 · 15.06.2024 г., 19:23

Venezuelan President Nicolás Maduro tasked his new minister for penitentiary affairs with taking measures against corrupt practices in the legal system. Inmates in dozens of prisons suspended a hunger strike against judicial delays and poor incarceration conditions following the government's response. Read the full report here: https://shorturl.at/t1g2l #Venezuela#Justice#Prisons#legalsystem