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

Резултати

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

Пребарај: #ethiopians

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

@addisstandardeng · Post #21263 · 31.01.2026 г., 13:12

#US judge temporarily blocks end of #Ethiopians' deportation protections A federal judge on Friday temporarily blocked U.S. President Donald Trump's administration from ending protections from deportation that had been granted to thousands of Ethiopians living in the United States. U.S. District Judge Brian Murphy in Boston said he would issue an order delaying the February 13 effective date of the U.S. Department of Homeland Security's termination of the Temporary Protected Status granted to over 5,000 Ethiopians in order to provide more time for a legal challenge to be heard. Murphy, who was appointed by Democratic President Joe Biden, during a virtual hearing said an order administratively staying the effective date would allow DHS time to produce records detailing how it made its decision so he can then consider whether to block the agency's action for even longer. https://www.reuters.com/world/us-judge-temporarily-blocks-end-ethiopians-deportation-protections-2026-01-30/

Addis Standard

@addisstandardeng · Post #21210 · 27.01.2026 г., 14:02

News: Over 3,000 #Ethiopians return from Saudi Arabia in one week as government continues repatriation program A total of 3,422 Ethiopians returned to the country over the past week from #Saudi_Arabia, bringing the number of citizens repatriated since September 2025 to 45,093, the Ministry of Women and Social Affairs said. In a statement issued this week, the Ministry said the latest returnees arrived on #14 scheduled flights. The group comprised 3,337 men, 82 women, and three children. Authorities also identified 72 minors among the arrivals, underscoring the vulnerability of parts of the returning population. The Ministry said it is working in coordination with relevant government bodies and international partner organizations to ensure returnees receive immediate assistance upon arrival. Support begins at the airport and continues at transit centers, where a reintegration process aimed at family reunification is underway. The repatriation program was.... Read more: https://addisstandard.com/?p=54795

Addis Standard

@addisstandardeng · Post #21717 · 14.03.2026 г., 09:13

#Catholic bishops urge #Ethiopians to resist hatred, condemn violence against civilians Addis Abeba – Ethiopia’s Catholic bishops have condemned acts of violence against civilians in various parts of the country and called on Ethiopians to resist hatred and reject attempts to deepen social divisions. In a statement issued by the Catholic Bishops’ Conference of Ethiopia, the bishops deplored what they described as continued attacks and atrocities targeting innocent civilians, stressing that such violence cannot be justified by religious teachings, cultural traditions, or political reasons, Vatican News reported. The bishops highlighted recent attacks reported in the Arsi Zone of Oromia Regional State, expressing concern over what they described as recurring violence in the area. “We are deeply saddened by the heinous and inhumane killings and the destruction of property targeting innocent people… https://www.facebook.com/share/1AS4phfuJc/?mibextid=wwXIfr

Addis Standard

@addisstandardeng · Post #22136 · 28.04.2026 г., 15:03

News: Four #Ethiopians killed in #Johannesburg shooting, at least ten detained; Ethiopian officials await probe findings Dessie Alebachew, chargé d’affaires at Ethiopia’s embassy in Pretoria, South Africa, told #Addis_Standard that the killings are part of a broader pattern of violence affecting foreign nationals. “The killings didn’t just start now; they’ve been going on for a while. However, from time to time, the level and scale of the killings have been increasing,” she said. “The day before yesterday, one person was killed, making it a total of four people.” Ten others, aged between 19 and 35 were also detained by local police in an operation targeting “spaza” shops in Mokwakwaila, Ga-Mokgwathi, and Ga-Ramotshinyadi villages. https://addisstandard.com/?p=56661

Addis Standard

@addisstandardeng · Post #21174 · 24.01.2026 г., 08:04

News: #US faces lawsuit over ending #Ethiopians’ deportation protection, putting over 5,000 at risk Immigrant rights advocates have filed a federal lawsuit seeking to block the #Trump administration from ending Temporary Protected Status (#TPS) for thousands of Ethiopians living in the United States, a move they say would put more than 5,000 people at risk of deportation and loss of work authorization, according to Reuters. The lawsuit, filed Thursday in #Boston federal court by three Ethiopian nationals and the non-profit African Communities Together, challenges the U.S. Department of Homeland Security’s (DHS) decision to terminate Ethiopia’s TPS designation effective February 13, 2026. The plaintiffs argue that DHS Secretary Kristi Noem ended the protections with only 60 days’ notice despite ongoing humanitarian and security challenges in Ethiopia, including continued conflict in .... https://web.facebook.com/AddisstandardEng/posts/pfbid0dT92xRt89mT8VprD3T91j4v2kps3MSX9eC5wrunWEhmuN6HgiUff51DBFCR2CmGLl

Addis Standard

@addisstandardeng · Post #21992 · 09.04.2026 г., 09:05

News: #US judge blocks termination of legal protections for #Ethiopians under Temporary Protected Status A U.S. federal judge has halted an effort by the administration of Donald #Trump to end temporary legal protections for more than 5,000 Ethiopians living in the United States, according to a report by Reuters. In a ruling issued on April 8 in Boston, Brian Murphy blocked the Department of Homeland Security (#DHS) from terminating Temporary Protected Status (#TPS) for Ethiopians, marking a setback for the administration’s broader push to scale back such protections. TPS is granted under U.S. law to nationals of countries experiencing armed conflict, natural disasters, or other extraordinary conditions, allowing eligible individuals to live and work in the United States without fear of deportation. According to Reuters, Judge Murphy concluded that DHS had disregarded statutory procedures set by Congress and offered a “pretextual” justification for ending Read more: https://addisstandard.com/?p=56440

Addis Standard

@addisstandardeng · Post #21046 · 12.01.2026 г., 12:22

News: #Libya deports 39 migrants, including #Ethiopians, in ongoing effort to curb undocumented movement Libyan authorities have deported 39 irregular migrants of various nationalities, including Ethiopians, as part of continued efforts to combat illegal migration and strengthen security, according to reports citing Libyan officials. The operation, carried out by the Anti-Illegal Migration Agency, was implemented in two phases in line with legal and security procedures. The first group, consisting of #Egyptian migrants, was deported via the Emsaed land border crossing after completing all required administrative formalities. The second group, made up of #Eritrean, #Somali, and Ethiopian nationals, was transferred to the Qanfouda shelter and deportation center, where remaining procedures—including identity verification, administrative processing, and basic health checks—were completed... https://web.facebook.com/AddisstandardEng/posts/pfbid02CiYjSSBx4ifFwvMh4WqrnHLwuhLq3aZbLBu145e3cF9akf3yfvL73RaoYkLutPUSl

Addis Standard

@addisstandardeng · Post #21981 · 08.04.2026 г., 12:46

News: EPRP calls for nationwide protest on May 8 amid concerns over electoral conditions The Ethiopian People’s Revolutionary Party (#EPRP) has called for a nationwide peaceful protest to be held on May 8, 2026, citing what it described as the absence of “enabling conditions” for a credible election in #Ethiopia. In a statement sent to Addis Standard today, the party said the planned demonstrations will take place in several major cities, including #Addis_Abeba, #Mekelle, #Bahir_Dar, #Gondar, #Hawassa, #Adama, and #Ambo, urging #Ethiopians to join what it described as a peaceful effort to demand political reforms. The EPRP said it supports the transfer of power through elections but argued that current conditions do not allow for a “free, fair, and credible” vote. It accused the ruling Prosperity Party of attempting to conduct what it termed a “pseudo-election” aimed at extending its hold on power, describing the process as Read more: https://addisstandard.com/?p=56410

Addis Standard

@addisstandardeng · Post #21118 · 19.01.2026 г., 13:37

In Pictures 2 #Ethiopians across the country celebrate Timket (#Epiphany)—recognized by #UNESCO as an intangible cultural heritage of humanity—one of the Ethiopian Orthodox Church’s most sacred festivals, marked by vibrant processions, prayers, and communal gatherings. On the occasion of the festival, various embassies in Addis Abeba have extended congratulatory messages. The embassies of #Russia and the #United_States, along with those of #Germany, the #Netherlands, the #United_Kingdom, #Switzerland, #Sweden, #Finland, #Israel, #Armenia, #Canada, #Iran, #Pakistan, and #Australia, wished Ethiopians a peaceful and joyful celebration. (Source: FBC, TigTV)