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

Резултати

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

Пребарај: #kfarkila

当前筛选 #kfarkila清除筛选
Marwa Osman/MidEaStream

@Marwa_OsmanLB · Post #4022 · 18.02.2025 г., 12:19

After fighting for more than two months in the war and enduring another two and a half months of ceasefire, Hezbollah fighter Mohamad, who had been pronounced dead, has been found alive under the rubble in the occupied southern Lebanese village of Kfarkila along with another fighter eho was also found alive. #Lebanon#Hezbollah#Kfarkila

Marwa Osman/MidEaStream

@Marwa_OsmanLB · Post #4028 · 19.02.2025 г., 12:07

Israel has begun constructing a concrete wall along the Blue Line, which separates Israel from Lebanon, encroaching on Lebanese territory. The wall is being built inside the town of Kfar Kila, with a significant portion of the village’s land now falling within the occupied territories. As part of the construction, the old wall was demolished, bringing the new structure even closer to the village. This development has resulted in buildings and shops within Kfar Kila now being trapped on the wrong side of the Blue Line. #IsraelWall#Lebanon#KfarKila#LandGrab#LebanonVsIsrael#LebaneseBorder#IsraeliAggression#BlueLine#Occupation#Israel