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

Пребарај: #pappe

当前筛选 #pappe清除筛选
MessageInABottle

@mib_messageinabottle · Post #6804 · 17.05.2024 г., 10:24

🇺🇸#USA 🇮🇱#Israel #ISRAELI ANTI-#ZIONIST HISTORIAN ILAN #PAPPE INTERROGATED BY #FBI AT DETROIT #AIRPORT The professor said that he was interrogated about his personal connections, with the agents inquiring about his #Arab and #Muslim friends in the USA, the length of their relationships, and the nature of their interactions. Pappe responded by directing the agents to his published works in some instances, while providing brief “yes” or “no” answers in others, citing exhaustion after an eight-hour flight. He also mentioned that the #FBI agents engaged in a lengthy phone conversation with an unidentified party, which he speculated could have been an Israeli official. Following the conversation, the agents copied the contents of his phone before allowing him to enter the country. https://x.com/Resist_05/status/1791001769591627894 https://www.middleeastmonitor.com/20240516-us-ilan-pappe-interrogated-by-fbi-at-detroit-airport/