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

Резултати

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

Пребарај: #msm

当前筛选 #msm清除筛选
BadVolf

@BadvolfNews · Post #29 · 17.04.2022 г., 18:54

Is #Russia keeping food, water and medical supplies from the residents of #Mariupol? Or is this a Western Media #MSM lie being pushed by the American state department and #Zelensky? I'm American John Mark Dougan, and I take YOU on location in #MARIUPOL, show YOU what's happening, TALK to Residents there, and YOU can see first hand for yourself!

BadVolf

@BadvolfNews · Post #551 · 07.03.2023 г., 15:57

"Completely deranged behaviour" - US journalist Hinkle on Ukrainian kill list Mirotvorets (Peacemaker) is a website of the Ukrainian government, long suspected to be maintained by the CIA. It features a long list of people who dare stray off the fake mainstream narrative about the conflict. Meanwhile, the Zelensky regime is sold to us as the bastion of democracy and freedom, as he bans local opposition parties, media and even the Church. Given the list is maintained in Langley - is it not the CIA that's targetting American citizens for destruction? Zelensky is just window dressing. #Ukraine#CIA#Biden#Zelensky#MSM Share and subscribe to American Majority

BadVolf

@BadvolfNews · Post #27 · 17.04.2022 г., 18:40

Terrible stories of tragedy from #Mariupol. I'm American John Mark Dougan, and I bring YOU there on location and talk to the residents. A woman breaks down because her daughter was hit by a bomb😭 and she had to bury her in front of her apartment building "like a dog." WHO is responsible? Is it really #Russia that's shooting civilians? Or is it #Ukraine#snipers? Is it Russia blocking humanitarian corridors? Or is the #MSM lying as usual? Don't trust what you are being fed, it's all lies. Trust what the people THERE are telling you.

BadVolf

@BadvolfNews · Post #28 · 17.04.2022 г., 18:47

Is the Ukrainian #Nazi real? Would they actually come into an Intensive Care#HOSPITAL, steal all their medical supplies and canned food, and crush the rest of the food with their boots? I am AmericanJohn Mark Dougan, and I take YOUON LOCATION in #MARIUPOL so you can hear the stories for yourselves, from the mouths of nurses and residents that were bombed. Who is responsible? Is it #Russia? or is it actually #Ukraine? Do you REALLY think the #MSMwould tell such lies to the #American people and support Nazis? You decide!