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

Резултати

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

Пребарај: #glmr

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

@CoinSonar · Post #243980 · 18.04.2026 г., 05:29

#GLMR | Volume spike (USDT PAIR) 1111 times the average volume 110.59K USDT traded in 1 min └Selling vol: 76.35K USDT 🔴 Boost score: 1/10 24h Vol: 143.27K USDT (Binance) Price: 0.0152 (-0.9% in 24h)

Hashtags

Coin Sonar

@CoinSonar · Post #243931 · 18.04.2026 г., 02:39

#GLMR | Volume spike (USDT PAIR) 90 times the average volume 134.84K USDT traded in 15 min └Buying vol: 71.39K USDT 🟢 Boost score: 4/10 24h Vol: 143.27K USDT (Binance) Price: 0.0168 (-0.9% in 24h)

Hashtags

Coin Sonar

@CoinSonar · Post #243800 · 17.04.2026 г., 18:00

#GLMR | Volume spike (USDT PAIR) 86 times the average volume 128.45K USDT traded in 15 min └Buying vol: 84.37K USDT 🟢 Boost score: 4/10 24h Vol: 143.27K USDT (Binance) Price: 0.0188 (-0.9% in 24h)

Hashtags

Coin Sonar

@CoinSonar · Post #243697 · 17.04.2026 г., 13:45

#GLMR | Volume spike (USDT PAIR) 86 times the average volume 128.61K USDT traded in 15 min └Buying vol: 66.91K USDT 🟢 Boost score: 5/10 24h Vol: 143.27K USDT (Binance) Price: 0.0193 (-0.9% in 24h)

Hashtags

Coin Sonar

@CoinSonar · Post #243618 · 17.04.2026 г., 11:34

#GLMR | Volume spike (USDT PAIR) 88 times the average volume 132.56K USDT traded in 15 min └Buying vol: 66.84K USDT 🟢 Boost score: 3/10 24h Vol: 143.27K USDT (Binance) Price: 0.0186 (-0.9% in 24h)

Hashtags

Coin Sonar

@CoinSonar · Post #243574 · 17.04.2026 г., 09:34

#GLMR | Volume spike (USDT PAIR) 343 times the average volume 171.02K USDT traded in 5 min └Selling vol: 86.60K USDT 🔴 Boost score: 1/10 24h Vol: 143.27K USDT (Binance) Price: 0.0216 (-0.9% in 24h)

Hashtags

Coin Sonar

@CoinSonar · Post #243505 · 17.04.2026 г., 07:34

#GLMR | Volume spike (USDT PAIR) 504 times the average volume 251.15K USDT traded in 5 min └Selling vol: 143.39K USDT 🔴 Boost score: 1/10 24h Vol: 143.27K USDT (Binance) Price: 0.0181 (-0.9% in 24h)

Hashtags

Coin Sonar

@CoinSonar · Post #243459 · 17.04.2026 г., 05:34

#GLMR | Volume spike (USDT PAIR) 220 times the average volume 109.66K USDT traded in 5 min └Buying vol: 82.90K USDT 🟢 Boost score: 6/10 24h Vol: 143.27K USDT (Binance) Price: 0.0127 (-0.9% in 24h)

Hashtags

Pro Analysis

@proanalysistrader · Post #28498 · 25.02.2025 г., 15:02

#GLMR/USDT analysis : #GLMR is in downtrend trading below 200ema. Price has broken down below support zone it is expected to continue declining. For short entry wait for the price to test the resistance zone. TF : 2h Entry : $0.1186 Target : $0.0940 SL : $0.1332

Hashtags

Pro Analysis

@proanalysistrader · Post #27905 · 05.09.2024 г., 12:58

#GLMR/USDT analysis : #GLMR has broken below the 200 EMA and is currently consolidating sideways near the 200 EMA. The price is expected to reverse from there and continue its bearish momentum to test the previous swing low. TF : 1h Entry : $0.1547 Target : $0.1415 SL : $0.1635

Hashtags

Crypto Profit Coach™

@cryptoprofitcoach · Post #8947 · 26.12.2023 г., 00:31

#GLMR👈 Call given here Hit 1474 All Target done ✅ 142% safe profit in spot If you invested 1 btc it's now 2.42 btc now 🤑🤑 Signal before pump @ low level Always trade with us for max profit 😊🤑💃Chk pinned to join👀 We are best pump tracker 🤑

Hashtags

Crypto Profit Coach™

@cryptoprofitcoach · Post #8909 · 05.11.2023 г., 01:16

#GLMR👈 https://www.binance.com/en/trade/GLMR_BTC Buying Zone 610-630 Coin on the brink of 🚀 Buy in parts 👈strictly follow for max profits as its 🚀 Sell 🤑 660-700 🤑 700-750 🤑 750-800 🚀 800- 750 & above Bullish above -600

Hashtags

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