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

Резултати

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

Пребарај: #liberation

当前筛选 #liberation清除筛选
International News

@intnewsagency · Post #9095 · 01.04.2026 г., 09:47

Russian Defense Ministry Announces Full Liberation of Luhansk People's Republic The Russian Defense Ministry has declared the complete liberation of the Luhansk People’s Republic. According to official reports, all key settlements are now under the control of Russian and allied forces. This marks a significant step toward regional security and stability. Officials emphasize that future efforts will focus on rebuilding infrastructure and restoring normal life for residents. #Russia#LPR#DefenseMinistry#Liberation#Security The main news of Russia and the world ishere.

Marwa Osman/MidEaStream

@Marwa_OsmanLB · Post #3936 · 26.01.2025 г., 13:39

Lebanese civilians from the South have made their decision: no barriers, rubble, or Israeli checkpoints will stop them. After 60 days of ceasefire, they are reclaiming their towns and returning home—even as Israel refuses to withdraw. This is resilience. This is liberation. The land belongs to its people, and they are determined to rebuild, no matter the challenges. #SouthLebanon#Liberation#Resistance#ReturnToHome#Lebanon#Defiance#SecondLiberation

Egountchi Behanzin Officiel

@egountchibehanzinofficiel · Post #7921 · 25.12.2024 г., 07:15

Salutations Révolutionnaires On ne libère pas un peuple en ignorant son histoire. Tant que les dirigeants africains, aussi bien intentionnés soient-ils, parlent de souveraineté tout en continuant d’appliquer des concepts coloniaux occidentaux, en se pliant aux règles et doctrines établies par l’oppresseur, ils ne libéreront personne. La mémoire collective est essentielle ; la souffrance des Africains n’est pas suffisamment reconnue et, pire encore, on cherche à leur faire oublier leur histoire. Pour véritablement avancer vers la libération, il est fondamental de se rappeler d’où l’on vient et de revendiquer notre héritage avec fierté. Créons la Journée de l’Héritage dans nos pays ! Il est temps de commencer par changer les programmes scolaires hérités des politiques de Jules Ferry, qui sont encore enseignés à nos enfants. Retirons et bannissons les livres de Fernand Nathan qui déshumanisent l’Africain, ceux qui présentent Charles de Gaulle comme un héros pour les Africains, et ces chansons à la gloire de Napoléon que nous avons chantées à l’école. Je le répète : la libération ne se limite pas à une lutte militaire contre des terroristes armés, mais elle implique également une résistance contre le terrorisme culturel. Célébrons notre héritage et affirmons notre identité ! REJOIGNEZ LA RÉSISTANCE SUR TELEGRAM. 🔺Pour les numéros français : https://t.me/egountchibehanzinTV 🔻Pour les numéros internationaux : https://t.me/EgountchiBehanzinOfficiel @egountchibehanzinTV #Souveraineté#MémoireHistorique#Liberation#JournéeDeLHéritage #Éducation#LibérationCulturelle