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

Резултати

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

Пребарај: #sfp

当前筛选 #sfp清除筛选
Pro Analysis

@proanalysistrader · Post #28218 · 17.11.2024 г., 11:45

#SFP/USDT analysis : #SFP has broken down and retested the previous support zone, which is now acting as resistance. The price is expected to retest this zone and continue to decline further, potentially testing lower levels. TF : 2H Entry : $0.6775 Target : $0.6232 SL : $0.7041

Hashtags

Pro Analysis

@proanalysistrader · Post #28063 · 25.10.2024 г., 06:39

#SFP/USDT analysis : #SFP is in a downtrend, consistently making lower lows (LLs) and lower highs (LHs) below the 200 EMA. The price is currently facing rejection at the 200 EMA and is expected to decline further, potentially testing lower levels. TF : 4H Entry : $0.7145 Target : $0.6718 SL : $0.7409

Hashtags

American Crypto©

@americancryptotrading · Post #27100 · 28.12.2024 г., 13:56

🇺🇸#SFP/USDT is trading above the symmetricaltriangle pattern on the weekly chart🧐 Send it📈 American Crypto©

Hashtags

Crypto Angels

@cryptoangelsusa · Post #21899 · 02.11.2025 г., 15:05

Binance Futures, Bitget Futures, ByBit USDT, KuCoin Futures, OKX Futures #SFP/USDT Take-Profit target 2 ✅ Profit: 29.9145% 📈 Period: 1 Days 3 Hours 44 Minutes ⏰

Hashtags

Alphavave Traders ️️️

@alphavave · Post #3181 · 28.02.2026 г., 03:56

🔒#SFPdelivered a mind-blowing 3,140% profit within 6 days! 🤯 That’s 3️⃣1️⃣🔤 return on your money 💰 💼 $50💰 would return $100💵 $50 💰 would return $585 💲 $50💰 would return $1,570💰 If you used 75x for this signal via Binance, that's a incredible1,175% profit at the 1️⃣ 🔠 🔠target point💰 That's about as good as it gets! With over 5 years of trading experience, we see these moves comingand there’s more on the way-don’t miss out on the next big wins! 🚀🚀 Want to stay ahead of the game? Take action now and change your life💯 ⚡️LAST SPOT AVAILABLE AT 60% OFF!⚡️ ✅Monthly access is now just $70 (originally $200) ✅6-Month access is now just $180 (originally $500) ✅Lifetime access is now just $500 💵 (originally $1250) t.me/Kevindexter

Hashtags

Crypto

@signal_bitcoins · Post #2478 · 23.01.2024 г., 10:31

🔐#SFP has a bullish channel on 12H Time frame, we expect a good pump until the ceiling of this pattern if price saved the bottom..👀 ❄️@signals_bitcoin_crypto❄️ ❄️@Shadow_support0o❄️

Hashtags

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