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 слични објави

Пребарај: #darfur

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

@addisstandardeng · Post #21257 · 31.01.2026 г., 05:34

A #Sudanese doctor recounts his harrowing escape from a #Darfur city under rebel bombardment Dr. Mohamed Ibrahim dashed from building to building, desperate for places to hide. He ran through streets littered with bodies. Around him, the capital of Sudan’s North Darfur province lay enveloped in smoke and fire. Explosions, shelling and gunfire thundered from every direction. After 18 months of battling, paramilitary fighters had overrun el-Fasher, the Sudanese army’s only remaining stronghold in the Darfur region. Ibrahim, who fled the city’s last functioning hospital with a colleague, said he feared he would not live to see the sun go down. “All around we saw people running and falling to the ground in front of us,” the 28-year-old physician told The Associated Press, recounting the assault that began Oct. 26 and lasted three days. “We moved from house to house, from wall to wall under non-stop bombardment..... https://apnews.com/article/sudan-elfasher-rsf-war-darfur-f91bfe006211fbf3af21b12271710eed

Addis Standard

@addisstandardeng · Post #21529 · 26.02.2026 г., 06:43

#UN sanctions 4 commanders in #Sudan’s paramilitary force accused of atrocities in #Darfur The U.N. Security Council imposed sanctions on four commanders of Sudan’s warring paramilitary force suspected of atrocities against civilians that U.N. experts said showed “hallmarks of genocide.” The four commanders in the Rapid Support Forces, which have been at war with the Sudanese military since 2023, were added to the blacklist for their activities in el-Fasher, especially on Oct. 26, the day the paramilitary force took over the North Darfur capital. The United Kingdom imposed sanctions on the four commanders in December, and Tuesday’s designations follow a report last week by U.N.-backed human rights experts. They reported that the RSF carried out mass killings and other atrocities in el-Fasher after an 18-month siege, during which they imposed conditions “calculated to bring about the..... https://apnews.com/article/un-sudan-rsf-darfur-atrocities-sanctions-paramilitary-93fa977773e81f5c34543edad833ce49

Addis Standard

@addisstandardeng · Post #22001 · 11.04.2026 г., 05:38

Wedding celebration turns tragic in #Sudan’s Darfur drone strike, at least 30 killed A drone strike on a town in Sudan’s #Darfur region hit a wedding party, killing at least 30 civilians, including women and children, the #United_Nations said Thursday. Stéphane Dujarric, spokesperson for the U.N.'s secretary-general, said during a briefing that the wedding ceremony was in the town of Kutum in North Darfur. The strike is the latest in an intensifying dronefare between the army and the paramilitary Rapid Support Forces (#RSF), who have been at war since April 2023. The nearly three-year conflict in Sudan killed more than 40,000 people, according to U.N. figures, but aid groups say the true number could be much higher. The Emergency Lawyers, a local rights group, and Resistance Committees in el-Fasher, a grassroots group tracking the war, blamed the Wednesday attack on the Sudanese Armed Forces in statements released on Thursday on social media.... https://x.com/addisstandard/status/2042839988333637933?s=20

Addis Standard

@addisstandardeng · Post #21751 · 17.03.2026 г., 16:09

News: CPJ urges immediate release of three female journalists detained by #Sudan’s RSF in #Darfur The Committee to Protect Journalists (#CPJ) has called on Sudan’s Rapid Support Forces (#RSF) to immediately release three female journalists from Nyala State Radio who have been held in South Darfur since February 28. Mawaheb Ibrahim, Zahraa Muhammad Al-Hassan, and Ishraqah Abdulrahman, a presenter and host at the station, were arrested while attending a workshop for female journalists in Nyala and transferred to Korea prison. As of mid-March, they remain detained without formal charges or access to a court hearing, according to a local journalist who spoke to CPJ on condition of anonymity. “The Rapid Support Forces must immediately release Nyala Radio journalists… and stop arbitrarily detaining members of the press,” said CPJ Regional Director Sara Qudah......... https://www.facebook.com/AddisstandardEng/posts/pfbid02t2LyU7er97SdsVTLQtsetnF7pkiLq4V4Kqk2ULVgHsqgma7N1pi6rfYJ2ceCzRNVl

Addis Standard

@addisstandardeng · Post #21324 · 06.02.2026 г., 05:28

Famine threat spreads in #Sudan’s Darfur as hospital attack kills 22 amid ongoing war Famine is threatening additional areas in war-ravaged Sudan’s western #Darfur region, a global hunger monitoring body warned on Thursday, even as an attack by paramilitary forces on a military hospital in the country’s south killed at least 22 people, including the hospital’s director and three medical staff. Sudan has been engulfed in conflict since April 2023, following a power struggle between the Sudanese military and the paramilitary Rapid Support Forces (#RSF). The war has triggered what the United Nations has described as the world’s worst humanitarian crisis The Integrated Food Security Phase Classification (#IPC) said acute malnutrition has reached famine-level thresholds in two more towns in Darfur — Umm Baru and Kernoi in North Darfur province — though it stopped short of formally declaring famine due to lack of sufficient data on mortality and..... https://www.daijiworld.com/news/newsDisplay?newsID=1305714

Addis Standard

@addisstandardeng · Post #21899 · 01.04.2026 г., 05:28

Sexual violence is being used as a weapon in #Sudan’s war, doctors group says #Sexual_violence against women and girls is being used as a weapon of war in Sudan ‘s fierce conflict between the military and paramilitary Rapid Support Forces (#RSF), international aid group Doctors Without Borders said in a report Tuesday. Sudan slid into chaos in April 2023 when a power struggle between the two forces exploded into open fighting in Khartoum and elsewhere. The International Criminal Court is investigating mass killings, gang rapes and other crimes during the conflict as potential war crimes and crimes against humanity. Doctors Without Borders, known by its French acronym #MSF, detailed in its report the accounts of women who were gang raped in the South #Darfur and North Darfur regions. MSF said that at least 3,396 survivors of sexual violence sought treatment at their facilities between January 2024...... https://apnews.com/article/sudan-war-darfur-sexual-violence-rape-rsf-bead0dded97628032066141e063e41e5

Addis Standard

@addisstandardeng · Post #21452 · 19.02.2026 г., 10:58

#Opinion: #AU Summit: Annual ritual without tangible progress Every February, African leaders gather in #Addis_Abeba for the African Union (AU) summit, issuing ambitious communiqués and pledges of unity. Yet, Gebremichael Negash argues that “for millions of ordinary Africans, little changes.” Since the AU replaced the Organization of African Unity in 2002, its commitment to “non-indifference” has often clashed with political hesitation. Peacekeeping missions in #Darfur and #Somalia, along with interventions in #Ethiopia, #Sudan, and #South_Sudan, reveal a recurring pattern: “acknowledgment without enforcement.” Gebremichael emphasizes that “Africa does not suffer from a shortage of declarations. It suffers from a shortage of consequences,” warning that summits “risk being rituals” unless enforcement and accountability are prioritized. https://addisstandard.com/?p=55235

Addis Standard

@addisstandardeng · Post #21417 · 16.02.2026 г., 13:51

News: #UN reports Over 6,000 killed in #Sudan’s El Fasher in three days as RSF took control At least 6,000 civilians were killed in just three days during an assault on the #Darfur city of #El_Fasher, according to a new report by the United Nations Office of the High Commissioner for Human Rights (#OHCHR). The report describes a wave of violence that has shocked human rights monitors, highlighting the scale of atrocities committed by Sudan’s Rapid Support Forces (#RSF) and allied militias. According to the report, the killings occurred between October 25 and 27, 2025, as RSF fighters and allied paramilitaries overran El Fasher. On October 26, the RSF, along with their allied Arab militias known as Janjaweed, seized control of el-Fasher, the Sudanese army’s last remaining stronghold in Darfur, and launched a violent campaign across the city and its surrounding areas after enduring... https://web.facebook.com/AddisstandardEng/posts/pfbid02rce3AMAVyevwjuMvSNrMmeUvRvqwS2SpH8NNMxkUz1sAonPfXdtmqpjpUvJpVtRhl

Addis Standard

@addisstandardeng · Post #21493 · 23.02.2026 г., 05:22

#Sudan slams #Uganda for hosting paramilitary chief Sudan's army-aligned government on Sunday criticised #Kampala for hosting rival paramilitary chief Mohamed Hamdan Daglo, slamming his reception by Uganda's president as an "affront to humanity". #Hemeti on Friday met with Ugandan President Yoweri #Museveni at #Entebbe's State House, a day after a United Nations probe found his forces had committed acts of genocide in #Darfur. Sudan's foreign ministry on Sunday criticised the meeting, saying the #RSF's atrocities had been "documented by the international community and condemned by regional organisations of which Uganda is a member", including the African Union & the Intergovernmental Authority on Development (#IGAD). Daglo, speaking during his visit, said he travelled to Uganda after President Museveni was approached by the Sudanese army seeking his mediation. His visit came a week ... https://web.facebook.com/AddisstandardEng/posts/pfbid0RVfv7fGAkLcW1TgpDMTNhYyCwS2wG1KVnGgVMpCy7DS1XtYtuU8nnEyrcYCRtLaal