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

Резултати

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

Пребарај: #flux

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

@CoinSonar · Post #244230 · 18.04.2026 г., 15:00

#FLUX | Volume spike (USDT PAIR) 510 times the average volume 98.12K USDT traded in 1 min └Buying vol: 83.86K USDT 🟢 Boost score: 8/10 24h Vol: 276.54K USDT (Binance) Price: 0.0686 (-5.2% in 24h)

Hashtags

Coin Sonar

@CoinSonar · Post #243608 · 17.04.2026 г., 11:15

#FLUX | Volume spike (USDT PAIR) 111 times the average volume 107.46K USDT traded in 5 min └Buying vol: 63.63K USDT 🟢 Boost score: 6/10 24h Vol: 276.54K USDT (Binance) Price: 0.0721 (-5.2% in 24h)

Hashtags

Coin Sonar

@CoinSonar · Post #243510 · 17.04.2026 г., 07:43

#FLUX | Volume spike (USDT PAIR) 45 times the average volume 131.75K USDT traded in 15 min └Buying vol: 75.84K USDT 🟢 Boost score: 5/10 24h Vol: 276.54K USDT (Binance) Price: 0.0667 (-5.2% in 24h)

Hashtags

Coin Sonar

@CoinSonar · Post #243415 · 17.04.2026 г., 02:04

#FLUX | Volume spike (USDT PAIR) 44 times the average volume 129.11K USDT traded in 15 min └Buying vol: 105.98K USDT 🟢 Boost score: 6/10 24h Vol: 276.54K USDT (Binance) Price: 0.0666 (-5.2% in 24h)

Hashtags

Pro Analysis

@proanalysistrader · Post #28106 · 02.11.2024 г., 04:52

#FLUX/USDT analysis : #FLUX is currently in a downtrend, forming lower lows (LLs) and lower highs (LHs) below the 200 EMA. The price is rejecting from the resistance zone and is expected to decline further, maintaining its bearish momentum and potentially testing lower levels. Wait for pullback for short entry. TF : 4h Entry : $0.5124 Target : $0.4521 SL : $0.5531

Hashtags

Pro Analysis

@proanalysistrader · Post #27910 · 07.09.2024 г., 15:44

#FLUX/USDT analysis : #FLUX has recently rebounded from the support zone. It is anticipated to keep rising and test the resistance zone on the lower time frame (LTF). TF : 1h Entry : $0.5469 Target : $0.5847 SL : $0.5207

Hashtags

American Crypto©

@americancryptotrading · Post #27569 · 26.03.2026 г., 10:06

🇺🇸#FLUX/USDT is trading near the lowerborder of the descendingchannel on the 3D chart💁‍♂️ Time to load a bag📈 American Crypto©

Hashtags

American Crypto©

@americancryptotrading · Post #27202 · 31.03.2025 г., 18:42

🇺🇸#FLUX/USDT is attempting to bounce off the lower border of the descending channel on the weekly timeframe🔍 Looking for a recovery🚀 American Crypto©

Hashtags

American Crypto©

@americancryptotrading · Post #27171 · 01.03.2025 г., 13:21

🇺🇸#FLUX/USDT is attempting to bounce from the supportzone on the weekly timeframe👀 Recovery is on the way🚀 American Crypto©

Hashtags

Crypto Angels

@cryptoangelsusa · Post #21955 · 08.11.2025 г., 06:12

Binance Futures, Bitget Futures, ByBit USDT, KuCoin Futures, OKX Futures #FLUX/USDT All take-profit targets achieved 😎 Profit: 79.8279% 📈 Period: 1 Hours 19 Minutes ⏰

Hashtags

123•••10•••1314
ПретходнаСтраница 1 од 14Следна