В фреймворке 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
#REN/USDT analysis :
#REN is currently consolidating within support and resistance zones. The price has rejected from the 200 EMA and is now expected to test the previous swing low support levels. For a short entry, it is advisable to wait for a pullback to the 200 EMA.
TF : 4H
Entry : $0.03791
Target : $0.03328
SL : $0.04056
#REN/USDT analysis :
#REN is currently consolidating near a resistance zone. The price is facing difficulty in breaking the resistance zone upside. Wait for the price to break the $0.0360 level for a confirmed entry. Previous lows will be the target level.
TF : 4H
Entry : $0.0360
Target : $0.0294
SL : $0.0401
#REN/USDT analysis -
#REN is consolidating sideways in a correction phase within a downtrend. The price is currently facing rejection in the resistance zone. There is a high probability that the price will continue its bearish momentum and decline from there to test the support zone.
TF : 2h
Entry : $0.0486
Target : $0.0446
SL : $0.0506
Amazon планирует использовать ИИ для ускорения процессов производства фильмов и сериалов. Проект студии с искусственным интеллектом направлен на сокращение расходов и упрощение творческого процесса.
Знаю один российский федеральный телеканал, который ещё 2 года назад запустил такую студию.
#REN
#REN is retesting the broken falling wedge pattern on Weekly Time frame,we need bullish momentum to decide to buy💎
❄️@signals_bitcoin_crypto❄️
❄️@Shadow_support0o❄️