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

Резултати

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

Пребарај: #fuksas

当前筛选 #fuksas清除筛选

АРХОБОЗ. Геленджик https://vk.ru/clip-228763930_456239096?c=1 Здесь недавно открыт аэропорт по проекту бюро Studio Fuksas Максима Фуксаса и его жены Дорианы. Эти архитекторы нам в первую очередь известны свои прикольными огромными "грибами" на здании госуслуг в Тбилиси и печально знаменитыми "штанами" Саакашвили. Сам аэропорт благодаря ячеистым колонам смотрится хорошо. Штаны: https://www.archdaily.com/942607/not-ready-rhike-park-music-theatre-and-exhibition-hall-studio-fuksas?ad_medium=office_landing&ad_name=article Грибы: https://www.archdaily.com/792131/tbilisi-public-service-hall-studio-fuksas?ad_medium=office_landing&ad_name=article #fuksas#южность#аэропортгеленджик#архобоз

New National Archives of France, Pierrefitte Sur Seine. Architecture: Fuksas Credits © Philippe Ruault Location: Paris, France. #fuksas#fuksasarchitects#france#paris#architecturephotography # arch_shovel #architecture

The Milan Trade Fair Rho-Pero, Italy. Salone del Mobile 2022 is taking place in Milan until June 12th. The central element of the design of the Milan Trade Fair Rho-Pero, Italy, is a glass and steel structure that runs like a giant ribbon, caressing the large and small-scale building along its path and ending into a huge crater-like vortex. The structure covers a raised walkway, flanked either side by eight giant exhibition halls. Nestling between them are a variety of smaller structures containing bars, restaurants and shops. Architecture: Fucsas Photos: Ramon Prat #fuksas#fuksasarchitects#arch_shovel#architecture#milano#milan#italy#trade#fair#design#architecturephotography