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

TGINSIGHT SIMILAR POSTS

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

Изворен канал @pythonotes · Post #380 · 21 окт.

Регулярно приходится писать и ревьюить код, где используется PySide2-6. Заметил, что в подавляющем большинстве случаев настройка создаваемых базовых виджетов происходит через методы. Думаю, всем знаком такой способ. Простой пример с кнопкой: button = QPushButton("Click Me") button.setMinimumWidth(300) button.setFlat(True) button.setStyleSheet("font-size: 20pt") button.setToolTip("Super Button") button.clicked.connect(lambda: print("Button clicked")) Но есть и альтернативный способ - настройка через свойства. Это просто ключевые аргументы конструктора класса. Хоть они и не указаны в документации как аргументы, но они есть) Этот код делает тоже самое но с помощью Property button = QPushButton( "Click Me", minimumWidth=300, flat=True, styleSheet="font-size: 20pt", toolTip="Super Button", clicked=lambda: print("Button clicked"), ) Где это может быть полезно ▫️ Это выглядит более аккуратно и коротко, уже повод использовать ▫️ Может использоваться в заполнении лейаута, когда нам не нужно никакое другое взаимодействие с виджетом и поэтому сохранять его в переменную не требуется. Например, лейбл или кнопка. widget = QWidget(minimumWidth=400) layout = QHBoxLayout(widget) layout.addWidget(QLabel("Button >", alignment=Qt.AlignRight)) layout.addWidget(QPushButton("Click Me", clicked=lambda: print("Button clicked"))) widget.show() Либо так widget = QWidget(minimumWidth=400) layout = QHBoxLayout(widget) for wd in ( QLabel("Button >", alignment=Qt.AlignRight), QPushButton("Click Me", clicked=lambda: ...) ): layout.addWidget(wd) widget.show() ▫️ Можно хранить настройки в каком-то конфиге или генерировать на лету, после чего передавать как kwargs. kwargs = {"text": "Hello " * 30, "wordWrap": True} my_label = QLabel(**kwargs) Как получить полный список доступных свойств? Эта функция распечатает в терминал все свойства виджета и их текущие значения def print_widget_properties(widget): meta_object = widget.metaObject() for i in range(meta_object.propertyCount()): property_ = meta_object.property(i) property_name = property_.name() property_value = property_.read(widget) print(f"{property_name}: {property_value}") #tricks#qt

Hashtags

Резултати

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

Пребарај: #ong

当前筛选 #ong清除筛选
Coin Sonar

@CoinSonar · Post #243938 · 18.04.2026 г., 03:01

#ONG | Volume spike (USDT PAIR) 16 times the average volume 130.84K USDT traded in 15 min └Buying vol: 89.48K USDT 🟢 Boost score: 6/10 24h Vol: 768.94K USDT (Binance) Price: 0.0893 (-5.0% in 24h)

Hashtags

Coin Sonar

@CoinSonar · Post #243905 · 18.04.2026 г., 00:59

#ONG | Volume spike (USDT PAIR) 40 times the average volume 109.28K USDT traded in 5 min └Buying vol: 60.13K USDT 🟢 Boost score: 6/10 24h Vol: 768.94K USDT (Binance) Price: 0.0842 (-5.0% in 24h)

Hashtags

Pro Analysis

@proanalysistrader · Post #28368 · 05.01.2025 г., 15:33

#ONG/USDT analysis : #ONG is currently moving sideways within a support and resistance zone on the weekly timeframe. The price is bouncing back from the support level and is anticipated to continue rising, aiming to test the resistance zone. A potential gain of +100% is expected from the current level. TF : 1D Entry : $0.3400 Target : $0.7280 SL : $0.2390

Hashtags

Pro Analysis

@proanalysistrader · Post #28129 · 06.11.2024 г., 15:42

#ONG/USDT analysis : #ONG is in a downtrend, making new lows while trading below the 200 EMA. The price is currently showing a retracement towards the 200 EMA and the resistance zone, and it is expected to reverse and continue its bearish momentum. It is advisable to wait for the price to retest the zone and show rejection for a short entry. TF : 4h Entry : $0.2869 Target : $0.2631 SL : $0.3005

Hashtags

Pro Analysis

@proanalysistrader · Post #27832 · 12.08.2024 г., 13:42

#ONG/USDT analysis : #ONG is presently trading within the resistance zone below the 200 EMA. The current price action indicates rejection at this resistance level. There is a strong expectation that the price will persist in its downward momentum and revisit previous lows. It is recommended to await a break below the $0.2811 level for confirmation before considering an entry. TF : 4H Entry : $0.2811 Target : $0.2322 SL : $0.3118

Hashtags

American Crypto©

@americancryptotrading · Post #27144 · 04.02.2025 г., 19:27

🇺🇸#ONG/USDT is bouncing from the s/rzone on the weekly timeframe💁‍♂️ Looking for a rise🚀 American Crypto©

Hashtags

Coinlegs Cryptocurrency Signals

@coinlegs · Post #10207 · 17.04.2024 г., 08:04

#ONG | Trendline Breakout Detected by CoinLegs Algo 😎 Long position can be opened when the price returns to the trend line and approaches the yellow zone. The yellow zone is both a strong demand, EMA 50 and the Ichimoku zone.

Hashtags

Crypto Profit Coach™

@cryptoprofitcoach · Post #9180 · 30.01.2026 г., 12:40

#ONG👈 https://www.binance.com/en/trade/ONG_BTC Buyzone 91-93 ✔️ Sell 🤑 100-105 🤑 105-115 🤑 115-125 🚀 125-135 & above Bullish above 86-88 Range For above Projections value must remains above 88 else coin will be in dead zone

Hashtags

ПретходнаСтраница 1 од 3Следна