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

Резултати

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

Пребарај: #amharic

当前筛选 #amharic清除筛选
Borkena

@borkena · Post #5268 · 16.11.2025 г., 18:47

Media, Translation, and Historical Accountability: The Case of the “Wax-and-Cloth Burning” Narrative in Key Anbessa (2025). Read more. https://borkena.com/2025/11/14/ethiopia-media-translation-and-historical-accountability-the-case-of-the-wax-and-cloth-burning-narrative-in-key-anbessa-2025/#Ethiopia#News#Amharic

Borkena

@borkena · Post #6044 · 18.03.2026 г., 15:20

25 የኢትዮጵያ ባንኮች የመፍረስ አደጋ ተጋርጦባቸዋል ፤ በደሴ ከተማ ለተሽከርካሪዎች የተላለው የሰዐት እላፊ እና ሌሎች ዜናዎች፡፡ ሙሉውን ከቻናላችን ያድምጡ፡፡ https://youtu.be/7C295S7INDs#Ethiopia#News#Amharic#Banks#NationalBank#EthiopianNews#ዜና

Borkena

@borkena · Post #6191 · 21.04.2026 г., 13:07

በሲቪል ሰርቪስ ከ150 በላይ የሀሰተኛ የትምርህርት ማስረጃ ተገኘ መባሉ ፤ በመንግስት ደጋፊነት የሚተቸው አብን መዋቅራዊ በደል ድርሷል ማለቱ እና ሌሎች ዜናዎች ፡፡ https://youtu.be/y4-9eSmywW8#Ethiopia#News#Amharic#EthiopianNews#fakecredential#education#NAMA

Addis Standard

@addisstandardeng · Post #21665 · 10.03.2026 г., 10:03

News: #Google Expands AI Search to 13 #African Languages, Including #Ethiopia’s Afaan Oromoo, Amharic, and Somali Google has expanded its artificial intelligence–powered search tools to support 13 African languages, including Ethiopian languages #Afaan_Oromoo, #Amharic, and #Somali, in a move aimed at widening access to digital services across the continent. The update introduces local language support for Google’s #AI search features, enabling users to interact with the platform using text, voice, or images in their preferred languages. The company said the expansion is intended to make AI tools more accessible to millions of African users who rely on local languages for everyday communication. In addition to Afaan Oromoo, Amharic, and Somali, the newly supported languages include Afrikaans, Akan, Hausa, Kinyarwanda, Kiswahili, Sesotho, Setswana, Wolof, Yorùbá, and isiZulu. Google...... https://web.facebook.com/AddisstandardEng/posts/pfbid0ZJge8GLSFrAuxUkYUJm28Q53sUEEFUKEM9bXhKBFhuZPueaGkzDN6p2vv5Bv1J2Bl