@thekingfisher_btc · Post #4409 · 21.04.2026 г., 16:32
#GEX🐟 From: @thekingfisher_liqmap_bot $BTC GEX+ is currently slightly positive but watch out for any downside, it could get slippery and dip pretty deep if a down move getsnstarted...
Hashtags
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
Пребарај: #gex
@thekingfisher_btc · Post #4409 · 21.04.2026 г., 16:32
#GEX🐟 From: @thekingfisher_liqmap_bot $BTC GEX+ is currently slightly positive but watch out for any downside, it could get slippery and dip pretty deep if a down move getsnstarted...
Hashtags
@thekingfisher_btc · Post #4408 · 18.04.2026 г., 17:44
#GEX🐟 From: @thekingfisher_liqmap_bot $BTC options dealers are looking fairly well hedged eight now, but expect slippery upside/downside 🔥 Watch the GEX+ On thekingfisher only 🎣
Hashtags
@thekingfisher_btc · Post #4405 · 14.04.2026 г., 10:15
#GEX🐟 From: @thekingfisher_liqmap_bot Be ready for any downside on $BTC Not saying it WILL happen, but too likely to happen to have a 20x long liquidation price on the table 👀 If you want to long, there's better risk-reward in waiting for local pullbacks
Hashtags
@thekingfisher_btc · Post #4388 · 07.04.2026 г., 11:30
#GEX🐟 From: @thekingfisher_liqmap_bot $ETH options dealers are currently fairly hedged with a neutral market impact, for now Waiting for the gex+ to flip for further positioning 🎣
Hashtags
@thekingfisher_btc · Post #4387 · 05.04.2026 г., 08:47
#GEX🐟 From: @thekingfisher_liqmap_bot $ETH GEX shows negative gamma around 2227. Dealers short convexity here. Fuel for volatility if we push. Monitoring the situation… Explosive upside if we reach it 🔥️️️️️️
Hashtags
@thekingfisher_btc · Post #4371 · 25.03.2026 г., 18:38
#GEX🐟 From: @thekingfisher_liqmap_bot $BTC GEX neutral at 70.9k. Dealers not heavily skewed. Means less hedging pressure if we chop around here. Fuel for volatility if we break.
Hashtags
@thekingfisher_btc · Post #4368 · 20.03.2026 г., 15:17
#GEX🐟 From: @thekingfisher_liqmap_bot Options dealers are saying, we buy $BTC for every $ down We sell for every $ up Conclusion, they'll be a price stabilizing force that's fading liqs territory 🎣
Hashtags
@thekingfisher_btc · Post #4363 · 14.03.2026 г., 01:56
#GEX🐟 From: @thekingfisher_liqmap_bot $ETH dealer delta negative around 2091. Suggests dealers are short gamma there. Fuel for volatility if that level triggers. Could see a snap.
Hashtags
@thekingfisher_btc · Post #4352 · 08.03.2026 г., 13:10
#GEX🐟 From: @thekingfisher_liqmap_bot Be careful of potentially slippery downside on $BTC
Hashtags
@thekingfisher_btc · Post #4346 · 04.03.2026 г., 09:32
#GEX🐟 From: @thekingfisher_liqmap_bot $BTC Dealer short gamma exposure is notable. Any sustained move could get amplified quickly. Fuel for volatility.
Hashtags
@thekingfisher_btc · Post #4344 · 03.03.2026 г., 10:27
#GEX🐟 From: @thekingfisher_liqmap_bot $ETH GEX+ showing positive numbers right now Increased volatility would certainly lead to more negative numbers, leading to further volatility Hawkes process when you got us… For now, tempered volaility, keep an eye on the gex+ 🔥️️️️
Hashtags
@thekingfisher_btc · Post #4335 · 20.02.2026 г., 10:08
#GEX🐟 From: @thekingfisher_liqmap_bot $ETH option dealers fairly hedged and neutral right now, a first in a while We’re watching carefuly for their next move 👀️️️️️️
Hashtags