@borkena · Post #5194 · 05.11.2025 г., 05:47
Ethiopian Defense Chief Of Staff Threatens Military Action Against TPLF. Read. https://borkena.com/2025/11/05/ethiopian-defense-chief-of-staff-threatens-military-action-against-tplf/#Ethiopia#TPLF#news
TGINSIGHT SIMILAR POSTS
Изворен канал @pythonotes · Post #381 · 23 окт.
Установить свойства виджета в PySide можно не только через соответствующие методы и конструктор класса. Можно их изменять с помощью метода setProperty по имени. btn = QPushButton("Click Me") btn.setProperty("flat", True) Это аналогично вызову btn.setFlat(True) Если указать несуществующее свойство, то оно просто создается btn.setProperty("btnType", "super") Получить его значение можно методом .property(name) btn_type = btn.property("btnType") Когда это может быть полезно? ▫️Можно просто хранить какие то данные в виджете и потом их доставать обратно widget = QWidget() widget.setProperty('my_data', 123) print(widget.property('my_data')) ▫️ Назначая эти свойства разным виджетам можно потом отличить виджеты во время итераци по ним. Например, найти все кнопки со свойством my_data="superbtn". Но ведь вместо кастомного свойства можно использовать objectName, будет тот же результат. Да, но y ObjectName есть ограничение - только строки. ▫️ Если нам потребуется не просто поиск а, например, сортировка по числу, то свойства позволяют нам это сделать. Поддерживается любой тип данных widget.setProperty('my_data', {'Key': 'value'}) widget.setProperty('order', 1) all_widgets.sort(key=w: w.property('order')) Но ведь Python позволяет всё вышеперечисленное сделать простым созданием атрибута у объекта widget.order = 1 widget.my_data = 123 Да, но я думаю что не надо объяснять почему не стоит так делать. К тому же, если у виджета нет свойства то метод .property(name) вернет None, а отсутствующий атрибут выбросит исключение. ▫️ Действительно полезное применение кастомным свойствам - контроль стилей. Здесь атрибутами не обойтись, нужны именно свойства. Дело в том, что в селекторах стилей можно указывать конкретные свойства виджетов на которые следует назначать стиль. Просто запустите этот код from PySide2.QtWidgets import * if __name__ == "__main__": app = QApplication([]) widget = QWidget(minimumWidth=300) layout = QVBoxLayout(widget) btn1 = QPushButton("Action 1") btn2 = QPushButton("Action 2") btn3 = QPushButton("Action 3", flat=True) layout.addWidget(btn1) layout.addWidget(btn2) layout.addWidget(btn3) # добавим кастомное свойство одной кнопке btn1.setProperty("btnType", "super") # добавляем стили widget.setStyleSheet( """ QPushButton[btnType="super"] { background-color: yellow; color: red; } QPushButton[flat="true"] { color: yellow; } """ ) widget.show() app.exec_() С помощью селектора мы избирательно назначили стили на конкретные кнопки. Как получить список всех кастомный свойств? Функция получения списка кастомных свойств отличается от получения дефолтных. def print_widget_dyn_properties(widget): for prop_name in widget.dynamicPropertyNames(): property_name = prop_name.data().decode() property_value = widget.property(property_name) print(f"{property_name}: {property_value}") #tricks#qt
Пребарај: #tplf
@borkena · Post #5194 · 05.11.2025 г., 05:47
Ethiopian Defense Chief Of Staff Threatens Military Action Against TPLF. Read. https://borkena.com/2025/11/05/ethiopian-defense-chief-of-staff-threatens-military-action-against-tplf/#Ethiopia#TPLF#news
@addisstandardeng · Post #21267 · 31.01.2026 г., 18:15
#TPLF welcomes #AU call for restraint, reaffirms commitment to dialogue The Tigray People’s Liberation Front (TPLF) has welcomed a call by the Chairperson of the African Union Commission, Mahmoud Ali Youssouf, urging restraint amid renewed tensions in Ethiopia’s Tigray region, reaffirming that dialogue remains the only viable path to resolving outstanding issues with the federal government. In a letter sent late on Saturday and addressed to the AU Commission Chairperson, the TPLF said it appreciates the African Union’s engagement in support of peace and stability in Ethiopia, noting that it takes “positive note” of the AU’s concern over recent developments in Tigray. The party further expressed its readiness to engage constructively in any dialogue initiative facilitated by the African Union, including through the AU High-Level Panel on Ethiopia, aimed at advancing “peace, confidence-building, and reconciliation.” https://addisstandard.com/tplf-welcomes-au-call-for-restraint-reaffirms-commitment-to-dialogue/
@borkena · Post #6200 · 22.04.2026 г., 05:10
Interim Administration Responds To TPLF Move To Take Power by Force. Read more. https://borkena.com/2026/04/21/tigray-interim-administration-responds-to-tplf-move-to-take-power-by-force/#Ethiopia#news#Tigray#TPLF
@borkena · Post #6176 · 17.04.2026 г., 23:04
ህወሓት ደብረጽዮን ገብረሚካኤል ክልሉን እንዲያስተዳድሩ ወሰነ https://shorturl.at/417qY#Ethiopia#News#TPLF#Tigray
@borkena · Post #5807 · 19.02.2026 г., 14:11
Three senior TPLF Military Commanders Reportedly arrive in Addis Ababa. Read more. https://borkena.com/2026/02/19/ethiopia-three-senior-tplf-military-commanders-reportedly-arrive-in-addis-ababa/#Ethiopia#news#TPLF#Tigray
@borkena · Post #5596 · 21.12.2025 г., 16:41
Tigray Interim Administration President To Meet Federal Authorities in Addis Ababa. Read. https://borkena.com/2025/12/21/tigray-interim-administration-president-to-meet-federal-authorities-in-addis-ababa/#Ethiopia#News#TPLF#Tigray
@borkena · Post #5822 · 21.02.2026 г., 13:24
To Prime Minister Abiy Ahmed: A Peaceful Path Forward in Tigray. Read more. ard in Tigray https://borkena.com/2026/02/21/ethiopia-to-prime-minister-abiy-ahmed-a-peaceful-path-forward-in-tigray/#Ethiopia#TPLF#AbiyAhmed
Hashtags
@addisstandardeng · Post #21623 · 05.03.2026 г., 15:34
News: #Tigray rebels say #Ethiopian troops preparing for war Ethiopian federal authorities are preparing "to wage a war against Tigray," a senior official from this northern regional state told AFP on Wednesday, raising fears of a new conflict. Tigray emerged in 2022 from a two-year war that saw federal forces, backed by militias and the Eritrean army, clash with rebels from the Tigray People's Liberation Front (#TPLF). The TPLF dominated Ethiopian politics for some 30 years before current Prime Minister Abiy Ahmed, a non-Tigrayan, took power in 2018. At least 600,000 people were killed in the conflict, according to estimates from the African Union. A ceasefire held for more than two years, but clashes between federal and Tigrayan forces broke out again in November 2025 and January 2026. Large numbers of federal troops have for several weeks been massed at the Tigray border, where.... https://web.facebook.com/AddisstandardEng/posts/pfbid023a9Gk4wS4Zc9q1exiF73ypsGSrQ1ubLT6Pg7Hv5gRNoJDmMEsv8KpNyvcM73Nq8il
Hashtags
@borkena · Post #6238 · 30.04.2026 г., 16:43
The rump TPLF’s Beating of War Drums. Read. https://borkena.com/2026/04/30/ethiopia-the-rump-tplfs-beating-of-war-drums/#Ethiopia#Politics#TPLF#Tigray@reda_getachew
@borkena · Post #5214 · 08.11.2025 г., 03:01
TPLF Alleges Federal Gov’t “Carried Out Drone Strike on Tigray Forces” Read more. https://borkena.com/2025/11/07/tplf-alleges-federal-govt-carried-out-drone-strike-on-tigray-forces/#Ethiopia#TPLF#Afar
@addisstandardeng · Post #21794 · 21.03.2026 г., 10:17
#Op_ed: Ghosts of Governance: Opposition paralysis, failure of political imagination in post-war #Tigray The most dangerous moment for a post-war society is when paralysis becomes normal, “a condition that has gripped Tigray for too long,” writes Getachew Gebrekiros Temare. He argues, “War destroyed infrastructure, displaced millions, and shattered institutions,” yet the deeper crisis remains political. Factionalism within the #TPLF and fragmentation among opposition parties have left society without coherent leadership. Opposition rhetoric often functions as controlled dissent rather than driving meaningful change. He notes, “The cumulative consequences of fragmentation, pseudo-analysis, and political hesitation are now impossible to ignore.” Getachew emphasizes that the solution requires “the emergence of a political movement grounded in public interest rather than personal ambition.” https://addisstandard.com/?p=55998
@borkena · Post #6230 · 29.04.2026 г., 12:20
TPLF Demands Tadesse Worede To Hand Over Power. Read more. https://borkena.com/2026/04/29/ethiopia-tplf-demands-tadesse-worede-to-hand-over-power/#Ethiopia#news#TPLF#EthiopianNews#Tigray
Hashtags