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

Резултати

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

Пребарај: #ukrainevsrussia

当前筛选 #ukrainevsrussia清除筛选
BadVolf

@BadvolfNews · Post #859 · 22.09.2023 г., 07:33

🚨 BREAKING NEWS 🚨 Ukrainian President Zelensky snubbed from influential Jews list! 😱 No love for the hero of the conflict with Moscow! 😤 Instead, some robot-loving CEO takes the crown 👑 and Bibi and Blinken follow 🙄 But hold up, the real shocker is the shoutout to a dead Russian businessman! 🤯 Apparently, he turned a hot-dog stand into a military empire 👀 Zelensky, who used to be seen as a joke, is now completely wiped off the list 🙅‍♂️ No explanation, just a big fat snub! 💔 Maybe they forgot how he was once called the Ukrainian Churchill during the conflict 🎖️ But now his counteroffensive against Russia is a total flop 🤦‍♂️ Despite all that military aid from the West! And get this, he had the audacity to criticize NATO for being wishy-washy about Ukraine's membership 🙄 That ticked off the US so much they almost uninvited him! 😡 Putin even had the nerve to call him a disgrace to the Jewish people 😳 All because Zelensky dared to celebrate Ukrainian nationalists who killed Jews and Poles in WWII 💔 Can you believe it?! 🤯💔#SnubbedPresident#ZelenskyFlop#UkraineVsRussia

BadVolf

@badvolfnews · Post #1304 · 04.12.2023 г., 17:25

📢 BREAKING NEWS 📢 Russian Electronic Warfare systems successfully thwarted missile attacks in Chaplinsky district, Herston region. Rockets deviated from their course, one landed in open space, while the other hit a non-residential building. No casualties reported. 🚀🚫🏢#RussiaDefends Governor Saldo previously accused Russian forces of unleashing a "firestorm" in Krynyky, a village on the left bank of Dnipro river. He also revealed that three Ukrainian missiles were intercepted over Genichesk district. 💥🛡️#UkraineConflict In a recent development, Ukrainian troops launched a rocket strike on Skadovsk, injuring 11 people. Russian Investigative Committee has opened a criminal case. ⚠️🚀#WarTactics President Zelensky wonders why Ukraine cannot extend its operations into Russian territory. 🤔#UkraineVsRussia https://www.gazeta.ru/army/news/2023/11/17/21732643.shtml Subscribe to @BadVolfNews