TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #45 · 2 мар.

В фреймворке PyQt (и PySide тоже) часто встречается настройка чего-либо с помощью так называемых флагов. widget.setWindowFlags(Qt.Window) Взаимодействие нескольких флагов делается с помощью бинарных (или побитовых) операторов. Несколько флагов можно указать с помощью оператора "|" list_item.setFlags(Qt.ItemIsSelectable | Qt.ItemIsEnabled) исключить флаг из уже имеющегося набора можно так list_item.setFlags(list_item.flags() ^ Qt.ItemIsEnabled) Добавить новый флаг к имеющимся можно так list_item.setFlags(list_item.flags() | Qt.ItemIsEnabled) А проверка наличия делается так is_enabled = item.flags() & Qt.ItemIsEnabled > 0 Почему именно так? Всё дело в том как именно работают побитовые операторы. Но об этом в следующем посте. #qt

Hashtags

Резултати

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

Пребарај: #jonglei

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

@addisstandardeng · Post #21625 · 06.03.2026 г., 05:28

#South_Sudan: “People keep asking me, is help coming?” Last month, a grandmother, walked for seven days, carrying her month-and-a-few-days-old granddaughter, Nyabhan. Nyaphan Nyang, the grandmother, walked with a sense of urgency, surviving on leaves. She was fleeing from the conflict that had consumed #Walgak#Payam in #Akobo West, #Jonglei State. Besides, the baby was critically ill because of severe malnutrition. Hunger had become widespread as conflict resurged in Jonglei State in December 2025. Bhan’s father had been killed in the conflict, while her mother and siblings were kidnapped by armed youth. Nyaphan was the baby’s only hope. She did get her to safety and help. Unfortunately, it was too late. A few days later Nyabhan died. The baby and the grandmother were among the several displaced people who met with Under-Secretary-General for Humanitarian Affairs and Emergency Relief Coordinator (ERC), Tom Fletcher, about a ..... https://www.unocha.org/news/south-sudan-people-keep-asking-me-help-coming