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

Резултати

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

Пребарај: #houses

当前筛选 #houses清除筛选

Rambla Climate-House. "The Rambla Climate-House works as a climatic and ecological device. It is part of a series of associative initiatives, developed at the scale of independent citizens, to contribute to reparations for the environmental and climate damage caused by over urbanization in Molina de Segura. The Rambla Climate-House collects pooled rainfall from its roofs and greywater from its showers and sinks to spray onto the Rambla's remains and regenerate their former ecologic and climatic constitution. The house is organized around this elliptical section of rambla, as an observatory in alliance to this reconstructed landscape and as a sequence of interconnected spaces of different widths." (c) Architecture: Andrés Jaque / Office for Political Innovation, Miguel Mesa del Castillo Photography: José Hevia 2021 #ArchDaily#house#houses#landscaping#landscapeandarchitecture#arch_shovel