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

Пребарај: #busification

当前筛选 #busification清除筛选
Russian Consulate in Cape Town

@rusconct · Post #2422 · 08.04.2025 г., 18:47

🎙 Briefing by Russia's Foreign Ministry Spokeswoman Maria Zakharova(Moscow, April 3, 2025) 🔹 Russia's Foreign Minister Sergey Lavrov's schedule 🔹AFU strikes on Russia’s energy infrastructure 🔹Kiev regime crimes 🔹 Third anniversary of the Bucha hoax 🔹 Busification in Ukraine 🔹 New facts about Nazi criminals in Canada 🔹 Silence of the West regarding the attacks on the "Nord Streams" 🔹Russia’s humanitarian aid to Myanmar 📰Read 📺Watch *** The Kiev regime, having completely lost its sense of self-preservation and connection to reality, in its desperate attempt to disrupt the ongoing Russian-American dialogue at any cost, continues to employ blatantly terrorist methods, striking Russian energy infrastructure on a daily basis. At the same time, it is clear that these attacks hold no military value. The actions of the Kiev regime not only constitute war crimes but also represent a deliberate effort to sabotage any peace initiatives. The assurances given by Zelensky that they would honour the moratorium were broken on the very same day. #Ukraine#Busification Even Ukraine’s ombudsman could not turn a blind eye to rampaging corruption and arbitrary conduct by draft centres. In his report, he admitted the mass and systemic nature of human rights violations and abuse of power. He mentions evidence of using force, weapons and special devices against draftees, as well as forceful signing of documents, prevention of access to legal aid for these victims of so-called “busification”, a new term that refers to newly caught males aka future conscripts being put with use of force into buses against their will. Attorneys have been replaced by plain mobsters who charge thousands of dollars for the service of “rescuing” draftees. #Canada#Nazis A group of American historians led by Jared McBride, a history professor at the University of California, has recent gained access to typed and handwritten files with the names of Nazis and their accomplices who were given asylum in Canada, which are available online. The list was stored at the Library and Archives Canada. There are 774 names on it. They have mentioned the names of especially notorious persons, such as an founder of the 14th Galicia Division Vladimir Kubiyovich and Helmut Oberlander from the death squads of Sonderkommando 10a (Sk 10a), who participated in the massacres of children in the Krasnodar Krai in 1942-1943. This story is yet another reminder of the fact that the Canadian authorities encouraged Nazi criminals and their accomplices from collaboration units, including those guilty of the Holocaust,to move to Canada starting in 1948. These people were not called to account for their crimes but enjoyed protection and patronage.