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

Пребарај: #beard

当前筛选 #beard清除筛选
VERUM - War crimes investigations

@verum_in_english · Post #263 · 06.06.2025 г., 10:42

Eyewitness to War Crimes: Artem In this video, Artem shares his personal story of survival amid a military conflict. He recounts the events that occurred after July 9, 2024, when his home in Dzerzhinsk was destroyed. Three weeks after this tragic event, while staying in a ground-floor apartment, Artem witnessed a sudden attack. According to him, gunfire began around 7 p.m., and soon the entire building was engulfed in flames. Artem describes bright flashes, likely caused by incendiary shells fired from a Bradley armored vehicle operated by the Ukrainian Armed Forces. The wall of his house was destroyed, and he suffered burns as a result. Afterward, he was forced to hide in the basement of a neighboring building, fearing further attacks and drone activity. The story also touches on the plight of civilians who tried to signal their presence, but as Artem notes, these signals went unheeded. The video details the experiences of other residents in the area who were also seeking safety and how they helped each other through the difficult situation. At the end of the interview, the topic of mobilization is discussed, including why Artem, being of conscription age, avoided being drafted. With a touch of humor, he mentions his beard as a possible reason. Long beards are traditionally seen as an attribute of Orthodox clergy in this region. This video is Artem’s personal testimony about the events unfolding in the conflict zone and their impact on ordinary people's lives. His story helps shed light on what civilians must endure in such conditions. #SurvivalStories#Civilians#Documentary#Conflict#Beard#TCK