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

Резултати

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

Пребарај: #hbar

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

@CoinSonar · Post #244212 · 18.04.2026 г., 13:53

#HBAR | Volume spike (USDT PAIR) 59 times the average volume 273.80K USDT traded in 1 min └Buying vol: 198.29K USDT 🟢 Boost score: 6/10 24h Vol: 6.67M USDT (Binance) Price: 0.08940 (-3.5% in 24h)

Hashtags

Coin Sonar

@CoinSonar · Post #244156 · 18.04.2026 г., 11:52

#HBAR | Volume spike (USDT PAIR) 59 times the average volume 277.29K USDT traded in 1 min └Buying vol: 241.67K USDT 🟢 Boost score: 6/10 24h Vol: 6.67M USDT (Binance) Price: 0.08858 (-3.5% in 24h)

Hashtags

Coin Sonar

@CoinSonar · Post #243962 · 18.04.2026 г., 04:21

#HBAR | Volume spike (USDT PAIR) 58 times the average volume 270.88K USDT traded in 1 min └Selling vol: 242.48K USDT 🔴 Boost score: 1/10 24h Vol: 6.67M USDT (Binance) Price: 0.08964 (-3.5% in 24h)

Hashtags

Coin Sonar

@CoinSonar · Post #243650 · 17.04.2026 г., 13:01

#HBAR | Volume spike (USDT PAIR) 60 times the average volume 281.84K USDT traded in 1 min └Buying vol: 170.58K USDT 🟢 Boost score: 4/10 24h Vol: 6.67M USDT (Binance) Price: 0.09230 (-3.5% in 24h)

Hashtags

Coin Sonar

@CoinSonar · Post #243321 · 16.04.2026 г., 21:01

#HBAR | Volume spike (USDT PAIR) 58 times the average volume 269.03K USDT traded in 1 min └Buying vol: 229.92K USDT 🟢 Boost score: 6/10 24h Vol: 6.67M USDT (Binance) Price: 0.09127 (-3.5% in 24h)

Hashtags

Crypto Headlines

@market_headlines · Post #27978 · 26.03.2026 г., 07:47

#hbar 🏎Компания McLaren Racing вошла в совет блокчейна Hedera!- релиз Это значит, что команда McLaren будет участвовать в развитии и управлении сетью наравне с другими членами совета. Для Hedera это заметное усиление consumer-направления: в экосистему приходит один из самых узнаваемых брендов мирового автоспорта с огромной глобальной аудиторией. Параллельно McLaren уже запускает первые Web3-активации на Hedera: речь идёт о бесплатных цифровых коллекционных дропах для фанатов по ходу сезона Formula 1 и IndyCar. Первый релиз уже прошёл на уикенде Гран-при Австралии, второй — на Гран-при Китая, третий намечен на Гран-при Японии. По сути, McLaren получает инфраструктуру для новых фанатских механик и цифровых активов, а Hedera — сильный спортивный бренд внутри своей экосистемы. Ранее: партнерство Crypto Headlines

Hashtags

Pro Analysis

@proanalysistrader · Post #27792 · 03.08.2024 г., 18:50

#HBAR/USDT analysis - #HBAR is moving downward towards its weekly timeframe support zone. It is expected to test the zone and bounce off from there to test previous highs. Wait for the price to test and bounce from the support zone for a long entry. TF : 1W Entry : $0.0519 Target : $0.0996 SL : $0.0442

Hashtags

Pro Analysis

@proanalysistrader · Post #27698 · 23.06.2024 г., 16:17

#HBAR/USDT analysis - #HBAR is in a downtrend on the lower time frame, trading below the 200 EMA. After a corrective pullback, the price retraced to the 200 EMA and found support above the $0.0800 level. Following the breakout of the support, the price retested the zone and was rejected from there. The price is now expected to decline from this point and will test its previous swing low. TF : 1h Entry : $0.0776 Target : $0.0725 SL : $0.0809

Hashtags

American Crypto©

@americancryptotrading · Post #27491 · 04.01.2026 г., 10:39

🇺🇸#HBAR/USDT is testing the lowerboundary of the descending channel on the 3D timeframe💁‍♂️ Bullish if we bounce off the one📈 American Crypto©

Hashtags

American Crypto©

@americancryptotrading · Post #27406 · 14.10.2025 г., 09:20

🇺🇸#HBAR/USDT is shaping descendingchannel pattern on the 2D timeframe👀 A breakout is coming✈️ American Crypto©

Hashtags

123•••56
ПретходнаСтраница 1 од 6Следна