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

Резултати

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

Пребарај: #qalqilya

当前筛选 #qalqilya清除筛选
RNN Archive

@rnn_archive · Post #591 · 16.09.2023 г., 21:03

The Azzun Phenomenon: Our attentive readers may have noticed updates every now and then about settlers being injured by stones or Molotovs in the modest town of Azzun, #Qalqilya: a simple search yields about 60 such reported operations in the last year. These operations, while simple, turn out to be very effective at shattering settler security. Azzun's stone-throwing prowess is not a coincidence, and in fact, the choice to carry out these operations here is a strategic one. The town of just 8,000 residents and 9 kilometers squared—which has offered 80 prisoners and five martyrs in recent years—is located at a historically important crossroads. Yet, this small town has become a nightmare for settlers. In August, at least 25 settlers were wounded by such operations in Azzun alone, rivaling injuries of resistance strongholds such as Jenin and Nablus. Last week there, four settlers were wounded and nearly a dozen of their cars were destroyed in one day. Settlers here are specifically targeted on a major vein of zionist infrastructure: settler bypass road Route 55, passing through Azzun. This road has actually been around since 300 BC. It was established formally in 1935, and this racist road was blocked often by Palestinians during the first intifada. As a result, the occupation built a number of alternative bypass roads. In 2002 amidst the second intifada, it became a settler bypass road, with its purpose being to give settlers a Jewish-only detour such that they can avoid the apparent danger of Palestinian areas. This stone-throwing has become a major problem for the occupation, who increased its security on Qalqilya for almost two months now, arresting a number of alleged stone-throwers. Today, the steadfast resistance of Azzun continue to create nightmares for settlers despite the siege, shattering their glass, destroying their cars, and targeting them with rudimentary explosive devices made at home. In all forms, resistance increases, and Azzun marches on the path of Jenin, Nablus, Tulkarem, and Gaza.

Hashtags

Resistance News Network Mirror

@PalestineResist_Mirror · Post #4566 · 01.05.2026 г., 00:04

🚨 IOF units are conducting a widespread campaign of raids and incursions across occupied Palestine, with operations concentrated in #Nablus, #Qalqilya, and #AlKhalil. Concurrently, armed settlers are launching violent assaults with live fire against residential areas in the vicinity of Al-Arroub camp. Settler provocations are also reported across the Nablus district.

RNN Mirror

@Palresistmirror · Post #94010 · 01.05.2026 г., 00:04

🚨 IOF units are conducting a widespread campaign of raids and incursions across occupied Palestine, with operations concentrated in #Nablus, #Qalqilya, and #AlKhalil. Concurrently, armed settlers are launching violent assaults with live fire against residential areas in the vicinity of Al-Arroub camp. Settler provocations are also reported across the Nablus district.