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

Резултати

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

Пребарај: #egld

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

@proanalysistrader · Post #28200 · 15.11.2024 г., 10:10

#EGLD/USDT analysis : #EGLD is currently in an uptrend, trading above the 200 EMA. The price has successfully broken out and retested the previous swing high resistance levels. It is anticipated that the price will bounce back from this point and continue its bullish momentum, aiming to test the recent swing high. TF : 4h Entry : $28.44 Target : $33.75 SL : $26.00

Hashtags

Pro Analysis

@proanalysistrader · Post #28040 · 19.10.2024 г., 17:47

#EGLD/USDT analysis : #EGLD has broken out and retested the support zone. It is now expected to bounce from this support zone and test the previous swing high level. TF : 1D Entry : $26.26 Target : $28.14 SL : $25.12

Hashtags

American Crypto©

@americancryptotrading · Post #27602 · 27.04.2026 г., 08:54

🇺🇸#EGLD/USDT is holding above the lowerboundary of the descendingchannel formation on the weekly chart💁‍♂️ Rebound incoming🐃 American Crypto©

Hashtags

American Crypto©

@americancryptotrading · Post #27551 · 03.03.2026 г., 10:13

🇺🇸#EGLD/USDT has found support at the lowerboundary of the descendingchannel formation on the weekly timeframe👨‍💻 A leg up is forming✈️ American Crypto©

Hashtags

Elf Crypto VIP

@elfcryptovip · Post #12553 · 09.04.2026 г., 11:50

#EGLD Weekly Support Zone Retest🧐 MultiversX is testing the lowerboundary of the descendingchannel formation on the weekly timeframe👨‍💻 This area serves as a launchpad for a potential bullish reversal🔍 A confirmed rebound could propel the price toward targets at $7, $12, $22, $38, $58, $77, $120, and $200🎯

Hashtags

Elf Crypto VIP

@elfcryptovip · Post #11740 · 19.07.2025 г., 11:37

#EGLD MultiversX has successfully broken out of the descendingchannel pattern on the daily timeframe Price action shows strong bullish momentum after breaching the descending resistance Expect a continuation toward targets at $20.50, $26.00, and $38.00🎯

Hashtags

Crypto Profit Coach™

@cryptoprofitcoach · Post #8905 · 04.11.2023 г., 17:16

#EGLD👈 https://www.binance.com/en/trade/egld_BTC Buying Zone 930- 985 👆 Buy in parts 👈Strictly follow as directed 👆 Showing bullish momentum Sell 🤑 1040-1100 🤑 1100 - 1200 🤑 1200-1300 🚀 1300 - 1400 & above Bullish Over 870

Hashtags

Maximus Trade 🌕

@maximustrade1 · Post #7648 · 20.10.2023 г., 11:46

#EGLD LONG ▪Вход: 25$ ▪Тейк: буду обновлять. ▪Стоп: 22$ пс: до хеллуина, можно подержать. LINK - Maximus Trade|TWITTER

Hashtags

Crypto

@signal_bitcoins · Post #2488 · 24.01.2024 г., 08:42

#EGLD bounced back from the Green zone on 12H Time frame,we expect more pumps after breakup from the Trendline,send it 💎 ❄️@signals_bitcoin_crypto❄️ ❄️@Shadow_support0o❄️

Hashtags

Crypto

@signal_bitcoins · Post #1785 · 10.12.2023 г., 16:32

#EGLD is trying to break up the Supply zone on Weekly time frame,in the case of breakout we may see another bullish leg🚀 ❄️@signals_bitcoin_crypto❄️ ❄️@Shadow_support0o❄️

Hashtags

Crypto

@signal_bitcoins · Post #1325 · 08.08.2023 г., 20:34

💰#EGLD price bounced from the support of $30.50-$31 area. The local resistance is $32.89-$33.50 area and the price is rejected from there. 👀 The major resistance is the $37.10-$38 area. You can open long positions near the support area with tight stop loss. 📈 ❄️@signals_bitcoin_crypto❄️ ❄️@Shadow_support0o❄️

Hashtags

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