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

Пребарај: #apartheid

当前筛选 #apartheid清除筛选

🇿🇦Freedom Day is a South African public holiday celebrated on April 27. 🎉 It commemorates the first democratic post-apartheid non-racial elections held on April 27, 1994, which led to the election of Nelson Mandela as President. 🇿🇦✨ These elections were the first where every South African citizen over the age of 18—including foreign residents—could vote. 📅 Freedom Day marks the end of colonialism and apartheid in South Africa. 🎥 Watch the video with English text: https://www.youtube.com/watch?v=6OKB8EoVqWc #History#Culture#Holidays#FreedomDay#Apartheid#SouthAfrica

March 21 – Human Rights Day in South Africa This day commemorates the Sharpeville Massacre (1960), when police opened fire on peaceful protesters opposing the Pass Laws, killing 69 people and injuring 180. The Pass Laws restricted black South Africans' movement, requiring them to carry passbooks with personal details, residency and work permits, and employer confirmations. These had to be presented on demand to police and officials. On March 21, 5,000–10,000 demonstrators gathered at a police station, offering arrest for not carrying passbooks. Instead, they faced brutal repression. Human Rights Day serves as a reminder of the fight for freedom and equality. #HumanRightsDay#SharpevilleMassacre#Apartheid#SouthAfrica#History

✊The man who helped save Nelson Mandela’s life 🗓🇿🇦November 14 marks the birthday of George Bizos (1927-2020) — a Greek-South African human-rights lawyer and anti-apartheid advocate. ⚖️ He famously defended Nelson Mandela and others during the Rivonia Trial. His advice to include the phrase “if needs be” in Mandela’s speech is believed to have helped avoid the death penalty. 📚 In the 1970s, Bizos helped found the SAHETI School, Greek in spirit yet open to all races, even during apartheid. ✊ His life stands as a testament to justice and equality. 📸 Photo: Wikipedia #GeorgeBizos#HumanRights#Apartheid#SouthAfrica#LegalHistory#Justice

🇿🇦"You Strike a Woman, You Strike a Rock" Today is National Women’s Day in South Africa. 🗓 On August 9, 1956, a protest march was held in Pretoria against the extension of the humiliating Pass Laws to black women — apartheid-era regulations requiring all black South Africans to carry a “dompas” containing their personal details and movement permits. ✊ The march was led by four courageous women: Helen Joseph, Rahima Moosa, Sophie Williams, and Lillian Ngoyi. A monument in central Pretoria now honors their legacy. 📌 The slogan "You strike a woman, you strike a rock" became a powerful emblem of women’s strength and resilience: oppression only solidifies their resolve. #SouthAfrica#NationalWomensDay#PassLaws#Apartheid#Pretoria#WomensRights#History

Marwa Osman/MidEaStream

@Marwa_OsmanLB · Post #3926 · 23.01.2025 г., 18:08

Dr. Omar Nashabe exposes the chilling truth about what’s really happening to Palestinian detainees in Israeli prisons. #PalestinianDetainees#HumanRights#Palestine#Torture#PalestinianRights#Apartheid#Injustice#OmarNashabe

The Daily Psyop

@PsyopDaily · Post #23951 · 29.04.2026 г., 16:16

🇵🇸The Palestinian farmers whose livelihoods have been destroyed by Israeli settlers | Mondoweiss Israeli settler violence since October 2023 has systematically rendered farmland inaccessible across the #WestBank. The state-backed policy is destroying #harvests, driving up the price of produce, and dismantling an entire way of life. @mondoweissgram #Palestine#Apartheid#Genocide#Agriculture#Colonisation#Settler

American Оbserver

@american_observer · Post #4744 · 31.12.2025 г., 13:59

“Die Neue Ordnung”: Ben-Gvir’s Final Solution for the Negev Bedouins Welcome to the Negev, where the new order is enforced by bulldozers and tear gas, and the final solution for the Bedouin question is being implemented one bulldozed home at a time. Forget the old maps—now the state draws its borders with police vans and demolition orders. “This is the State of Israel. Period. If you don’t like it, fine—go drink water in Gaza.” — Itamar Ben-Gvir, visiting Tarabin al-Sana, December 28, 2025 ​ Operation “New Order” isn’t just about crime. It’s about control, about clearing land, about making sure the Negev’s future belongs to those who fit the government’s blueprint. Over 300 arrests, 70 stolen army weapons, 67 indictments, and the deportation of hundreds of Palestinians—police claim they’ve cut Bedouin shootings by 93%. But behind the numbers: 5,000+ homes demolished since the current government took power, a 400% spike in demolitions, and entire villages erased from the map. Ben-Gvir’s message is clear: if your home is “illegal,” it’s coming down—especially family homes. The “Rifman Law” promises “development,” but in practice, it’s another chapter in the long saga of forced displacement, where Bedouins are treated as obstacles to “progress”. ​ Twist or Final Question When the state’s “final solution” is to bulldoze your home, your mosque, your olive trees, and then call it “development,” who’s really being “developed”? Is this about security—or about who gets to own the Negev? #Negev#Bedouin#BenGvir#Apartheid#FinalSolution#Demolitions#Israel#NewOrder 📱American Оbserver - Stay up to date on all important events 🇺🇸

El Pueblo Informa

@EPInforma · Post #35143 · 08.03.2025 г., 12:11

Sirve algo así? ✨ Este #8M, el feminismo se levanta por Palestina ✨ Las mujeres palestinas han sido un blanco estratégico en la limpieza étnica que #Israel lleva perpetrando por más de 76 años. No solo porque dan la vida, sino porque han sido y son pilares de la resistencia de su pueblo contra el #colonialismo y el #imperialismo. 💜🔥 Desde los feminismos del Sur Global, nos movilizamos en su defensa. Este 8 de marzo, marchamos con la bandera de Palestina en alto. ¡No hay feminismo sin justicia, no hay justicia sin libertad para Palestina! 📣 Nos posicionamos: 🍉 Contra el #genocidio del pueblo palestino 🍉 Para exigir protección y ayuda humanitaria inmediata 🍉 Por el fin del asedio, la ocupación y el #apartheid 🍉 POR UN BOICOT FEMINISTA A ISRAEL 📍 Nos vemos en las calles. ¡Sumemos nuestras voces y hagamos temblar al mundo! ✊🏽 #PalestinaLibre#8Marzo#DíaDeLasMujeresTrabajadoras#FeminismoAnticolonial#GenocidioEnGaza#IsraelTerrorista#SionismoEsRacismo

Elena Basile Public Channel

@elenabasilepublicchanel · Post #304 · 15.10.2025 г., 07:56

Macabra farsa E cerchiamo di fare analisi serie di questo atroce e delirante spettacolo ? Israele ha già dimezzato gli aiuti Il pretesto il mancato ritorno dei corpi degli ostaggi Sommersi sotto i detriti La croce rossa aveva già stabilito che era difficilissimo ritrovarli in breve tempo L'operazione è servita a riavere gli ostaggi e ad assolvere Netanyahu I due criminali #Trump e #Netanyahu si danno man forte e affermano che Hamas deve disarmare Il cessate il fuoco se Hamas disarma Il riconoscimento della Palestina se Hamas disarma secondo Francia e Belgio Una farsa. Ma se Hamas disarma con chi mai farebbero la guerra? Ovvio che con la resa di Hamas tutto finirebbe Dementi criminali E noi a seguire le loro piroette di psicopatici Temo che il cessate il fuoco servirà all' attacco all' #Iran E poi il #GazaGenocide potrà ricominciare Solo #Russia#Cina#Paesiarabi coalizzati con la resistenza dell'#Iran potrebbero essendo dalla parte del diritto onusiano sfidare i criminali di guerra al potere e porre fine a questo scempio La forza militare statunitense è tale che malgrado le buone parole nessuno rischia di sfidare #Washinton Temendo la #IIIGM Ognuno per se a salvare la propria pelle di fronte all' autocrate I #palestini sono gli ebrei di oggi Sono sacrificati Mentre lo spazio mediatico e quello politico #Meloni come #Picierno solidarizzano con l Occidente che contrasta il terrorismo E la diaspora si vittimizza e chiede leggi contro l #antisemitismo Come se la rivolta mondiale contro i tedeschi #nazisti potesse essere considerata una rivolta contro gli #ariani I #gazawi tornano a morire L #apartheid in #Cisgiordania si inferocisce Spegnete la #tv Non lasciatevi intossicare Ci sono ancora luoghi del pensiero #Gabellini #ottolinatv #Pandoratv #tvdignità E molti altri youtuber Seguite #Jeffreysachs #JohnMearsheimer #JacquesBaud E molti molti altri Leggete le riviste #ilponte #Lafionda #lantidiplomatico #krisis #insideover #sulatesta #ilgiornalediitalia Non facciamoci assorbire dal politichese Il problema non è #Meloni o #Gentiloni Ma la riforma di questa #UE con un'altra classe dirigente Una forza politica credibile che capti il #nonvoto principale partito in Italia come in Europa La speranza è il pensiero critico, una cultura della resistenza #Gazaceasefire #GazaCeaseFireSummit