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

Резултати

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

Пребарај: #ada

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

@CoinSonar · Post #243664 · 17.04.2026 г., 13:17

#ADA | Volume spike (USDT PAIR) 9 times the average volume 3.17M USDT traded in 15 min └Buying vol: 1.73M USDT 🟢 Boost score: 3/10 24h Vol: 31.42M USDT (Binance) Price: 0.2631 (-3.5% in 24h)

Hashtags

Coin Sonar

@CoinSonar · Post #243533 · 17.04.2026 г., 08:19

#ADA | Volume spike (USDT PAIR) 59 times the average volume 1.29M USDT traded in 1 min └Buying vol: 667.54K USDT 🟢 Boost score: 4/10 24h Vol: 31.42M USDT (Binance) Price: 0.2565 (-3.5% in 24h)

Hashtags

Coin Sonar

@CoinSonar · Post #243270 · 16.04.2026 г., 18:53

#ADA | Volume spike (USDT PAIR) 9 times the average volume 3.18M USDT traded in 15 min └Buying vol: 1.99M USDT 🟢 Boost score: 4/10 24h Vol: 31.42M USDT (Binance) Price: 0.2596 (-3.5% in 24h)

Hashtags

CryptoBull_360™

@cryptobull_360 · Post #48396 · 16.02.2026 г., 11:56

#ADA is consolidating within a descending broadening wedge pattern and is currently trading below both the resistance trendline and the Ichimoku Cloud. A decisive breakout of the wedge would signal a bullish trend, while continued weakness below the cloud could lead to further downside.

Hashtags

Crypto Headlines

@market_headlines · Post #28663 · 24.04.2026 г., 08:28

#ada ❌ JPG Store и Comet закроются 23 мая –анонс JPG Store – NFT-маркетплейс в экосистеме Cardano. Comet – мобильное приложение для торговли Cardano-токенами, что-то ближе к swap/DEX-агрегатору. Crypto Headlines

Hashtags

Pro Analysis

@proanalysistrader · Post #27859 · 20.08.2024 г., 13:38

#ADA/USDT analysis : #ADA is currently experiencing a rejection from the resistance zone after being rejected in that area near the 200 EMA. The current trend indicates a continuation of the downward momentum, with a potential retest of previous lows anticipated. TF : 4H Entry : $0.3467 Target : $0.2863 SL : $0.3626

Hashtags

American Crypto©

@americancryptotrading · Post #27463 · 08.12.2025 г., 10:15

🇺🇸#ADA/USDT is ready to rebound from the lowerborder of the descendingchannel formation on the 2D chart🧐 Bounce pressure is building📈 American Crypto©

Hashtags

American Crypto©

@americancryptotrading · Post #27347 · 18.08.2025 г., 10:12

🇺🇸#ADA/USDT is currently trading above the neckline of the cup & handle formation on the weekly chart🔍 Up we go📈 American Crypto©

Hashtags

American Crypto©

@americancryptotrading · Post #27327 · 30.07.2025 г., 08:37

🇺🇸#ADA/USDT is bouncing from the broken s/rzone on the weekly chart👀 Expecting further upside📈 American Crypto©

Hashtags

American Crypto©

@americancryptotrading · Post #27301 · 04.07.2025 г., 08:55

🇺🇸#ADA/USDT is currently retesting the s/rzone on the weekly timeframe🔥 Climbing higher from here✈️ American Crypto©

Hashtags

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