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

Резултати

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

Пребарај: #alquds

当前筛选 #alquds清除筛选
Resistance News Network

@palestineresist · Post #93240 · 05.04.2026 г., 19:09

IOF soldiers were documented brutally assaulting a young man near Qalandia camp, north of #AlQuds. Zionist soldiers took turns severely beating the individual during the attack.

Hashtags

RNN Archive

@rnn_archive · Post #446 · 02.07.2023 г., 17:30

Today marks the somber ninth anniversary of the martyrdom of Mohammed Abu Khdeir at the hands of zionist settlers. 16-year-old Mohammed was kidnapped by a horde of settlers in #AlQuds on July 2nd, 2014, one of the early days of Ramadan. As he was preparing his pre-fast meal before the break of dawn, a group of settlers grabbed him and drove away. Mohammed was subsequently tortured, beaten with tools and forced to drink gasoline. The final act of violence perpetrated against him is as sickening as it is infuriating: doused with gasoline, Mohammed was set on fire. The depravity of zionism knows no bounds. Mohammed's case is one of countless crimes perpetrated against our people from the moment that the first settler stepped onto our land. It is a crime emblematic of the essence of zionism itself, in its racism, sadism, and hatred. Glory to our martyrs, and may they all be avenged.

Hashtags

Resistance News Network Backup

@RNN_Backup · Post #64431 · 25.10.2024 г., 09:44

🚨 Footage documents zionist soldiers targeting and shooting children yesterday in the town of Biddu, northwest of #AlQuds. Following the wounding of the child, the IOF abducted him. The barbaric crimes of the occupation carried out against children, women, men, and the elderly are escalating in the occupied West Bank and the #Gaza Strip, accompanied by a deafening silence from the international community and their refusal to hold the occupation accountable for their ongoing crimes.

Hashtags

Resistance News Network Backup

@RNN_Backup · Post #64453 · 25.10.2024 г., 10:01

🚨 13-year-old Iyad Ashraf Da'is from #AlQuds was released today from occupation prisons after 7 month of detention with the marks of zionist torture and medical negligence against the prisoners clear on his body. Iyad suffers from severe scabies due to the deliberate inhumane measures taken by the occupation administration against the prisoners as part of collective revenge against them. He was also sentenced to house arrest and his ankle was fitted with an electronic bracelet and was banned from Al-Quds to Taybeh. Iyad was arrested on March 27 from his home in Shu'fat, occupied #AlQuds. #FreeThemAll

Resistance News Network Backup

@RNN_Backup · Post #62684 · 12.10.2024 г., 21:24

🚨 The IOF and armed settlers conducted a series of aggressions across the West Bank today: Armed settlers attacked farmers in the village of Al-Mughayyir in #Ramallah and prevented them from harvesting olives. (media 1,2) Settlers also cut down olive trees in the village of Yasuf, east of #Salfit (media 3,4). The IOF invaded the town of Beita, south of #Nablus, where confrontations erupted between resistance youth and the zionist forces. (media 5,6,7). The IOF fired live bullets heavily at Palestinian homes at the entrance of Al-Arroub refugee camp, north of #AlKhalil. (media 8,9) The IOF invaded Shufat refugee camp in #AlQuds. (media 10)