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

Пребарај: #deirhafir

当前筛选 #deirhafir清除筛选
Eva Karene Bartlett

@EvaKarene_Bartlett · Post #29447 · 15.01.2026 г., 07:18

🚨🚨Al-Jolani is preparing for a new assault and an attack on #SDF–controlled areas in the E. #Aleppo countryside Syria’s state-run Syrian News Channel published a map announcing an “8-hour humanitarian corridor” for residents of the towns of #DeirHafir and #Maskanah (west of the #Euphrates, eastern Aleppo countryside), both of which are under the control of the Syrian Democratic Forces (SDF). The corridor would lead toward areas controlled by al-Jolani’s forces. Observers warn that civilians who refuse to leave their homes may be subjected to shelling inside their houses, allegedly with the backing of Hakan Fidan, and in the absence of a clear condemnation from U.S. envoy Thomas Barrack, who met last night with Turkish Foreign Minister Hakan Fidan. In recent days, the towns of Maskanah and Deir Hafir have been targeted by artillery shelling and heavy machine-gun fire by al-Jolani’s forces. In addition, at dawn today, January 14, the towns were attacked by Turkish drones. The SDF has released several statements, the latest issued about an hour ago, reporting a Turkish Bayraktar drone strike on the village of al-Bu‘asi in the countryside of Tabqa.