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

Резултати

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

Пребарај: #ezema

当前筛选 #ezema清除筛选
Addis Standard

@addisstandardeng · Post #21543 · 27.02.2026 г., 08:03

#Ethiopia: “We have heard nothing about her; we have been weeping for an entire year” – Family of Genet Arage “We have received no information regarding the matter; we will investigate and provide updates” – #EHRC The family of Genet Arage, former National Women’s Affairs representative for #EZEMA, say her whereabouts remain unknown a year after she was allegedly taken by individuals described as wearing “red Red bonnet” on 13 February 2025 A close relative told Addis Standard that Genet was at a friend’s residence in the Sidist Kilo area when the incident occurred. The family said they first learned of her disappearance through a phone call from youths in the neighbourhood who witnessed the incident. According to the relative, those who took her briefly returned her to the house to collect bedding before leaving again. The family said they have no information about Genet’s current location. They reported the case to the Ethiopian Human Rights Commission... Read more: https://addisstandard.com/?p=55436

Addis Standard

@addisstandardeng · Post #21376 · 12.02.2026 г., 06:36

#Ethiopia: Politician #Yeshiwas Assefa released hours after arrest Politician Yeshiwas Assefa has been released from custody hours after his arrest was confirmed by his party, the Ethiopian People’s Revolutionary Party (#EPRP). Mistresellassie Tamrat, General Secretary of EPRP, confirmed to Addis Standard that Yeshiwas was released yesterday at approximately 5:00 PM. She said the politician, who is also an EPRP election candidate, was freed after being detained yesterday. Earlier in the day, EPRP said it had verified through family members that Yeshiwas had been arrested. In a statement, the party described the arrest as “one of the countless acts demonstrating the government's ongoing suppression of citizens engaged in peaceful political activities.” Yeshiwas, who previously served as chairman of the Ethiopian Citizens for Social Justice (#EZEMA), has faced prior.... https://web.facebook.com/AddisstandardEng/posts/pfbid0joxCZicZF8EgEDFQmHdS2DJTZw56NdhZHg3pkF7p2bwbMKPTLtWMyroD9duASBtvl

Addis Standard

@addisstandardeng · Post #21050 · 12.01.2026 г., 16:11

#EZEMA at a Glance Full name: #Ethiopian Citizens for Social Justice (EZEMA) Founded: May 2019 Formed through: Merger of seven opposition parties, including Patriotic Ginbot 7 and Semayawi Party Headquarters: Addis Abeba Ideology: Liberal-centrist – advocates democracy, social justice, and rule of law Current leader: Prof. Berhanu Nega (also Minister of Education) Deputy Leader: Yohannes Mekonnen Secretary-General: Wassihun Tesfaye Recent Chairperson: Dr. Mulualem Tegegnework 2021 Election: Fielded candidates in 406 constituencies; won 4 parliamentary and 3 regional seats Key presence: #Addis_Abeba and #Southern_regions Notable challenges: Internal resignations, declining visibility, and arrest of founding member Chane Kebede Status: Registered with NEBE; remains one of Ethiopia’s most active opposition parties https://addisstandard.com/eth-election2026/?p=17538

Addis Standard

@addisstandardeng · Post #21647 · 09.03.2026 г., 07:50

News: Iyob Mesafint elected leader of #Ezema as Prof. Berhanu Nega steps down #Ethiopian Citizens for Social Justice (Ezema) has elected #Iyob_Mesafint as its new leader after #Berhanu_Nega stepped down from the party’s top leadership role. The party announced that an emergency general assembly held yesterday elected leaders who will guide the party for the next five years and coordinate preparations for the 2026 national election. Accordingly, after competing among candidates nominated for the party leadership, Iyob Mesafint assumed the role after being elected by a majority vote of the assembly. According to the party’s bylaws, the newly elected leaders will serve for one government term, which is five years. Alongside the leadership election, information cited by local media indicated that the assembly unanimously approved revised and newly introduced policy documents, including Ezema’s “White Covenant Document” prepared for the 2026 election......... Read more: https://addisstandard.com/?p=55676

Borkena

@borkena · Post #5958 · 08.03.2026 г., 17:16

አቶ ኢዮብ መሳፍንት የኢዜማ መሪ ሆነው ተመረጡ አቶ ኢዮብ መሳፍንት የኢትዮጵያ ዜጎች ለማህበራዊ ፍትህ ፓርቲ (ኢዜማ) መሪ የነበሩትን ብርሃኑ ነጋ (ፕ/ር) በመተካት የፓርቲው መሪ ሆነው ተመረጡ፡፡ ፓርቲው በዛሬው ዕለት ባካሄደው አስቸኳይ ስብሰባ የ7ኛው ጠቅላላ ምርጫ ማኒፌስቶውን ያስተዋወቀ ሲሆን፥ በቀጣይ የሚመራበትን 50 ፖሊሲዎችንም ለአባላቱ ይፋ አድርጓል፡፡ ፖሊሲዎቹ በተለይም በሀገር መንግስት ግንባታ፣ በብሔራዊ ጥቅም፣ ልማትና ኢኮኖሚ እንዲሁም በአካታችነትና ሌሎች ጉዳዮች ላይ የሚያተኩሩ መሆናቸው ተገልጿል፡፡ ኢዜማ በአስቸኳይ ስብሰባው እዮብ መሳፍንትን የፓርቲው መሪ እንዲሁም ንጋቱ ወልዴን ምክትል መሪ በማድረግ የመረጠ ሲሆን፥ የቀድሞውን የፓርቲው መሪ ብርሃኑ ነጋ (ፕ/ር) እና ምክትላቸውን በክብር ሸኝቷል። #Ethiopia#EZEMA#BirhanuNega#Ethiopiannews#news#ኢትዮጵያ#ዜና#borkena