TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #62 · 4 апр.

Когда разрабатываете свой GUI с помощью PyQt для какого-либо софта бывает необходимо позаимствовать цвета из текущего стиля интерфейса. Например, чтобы правильно раскрасить свои виджеты, подогнав их по цвету. Ведь бывает, что ваш GUI используется в разных софтах. Причём некоторые со светлой темой а другие с тёмной. По умолчанию стили наследуются, но если вы задаёте какую-либо раскраску для части виджета через свой styleSheet, то требуется ссылаться на цвета текущего стиля. Как это сделать? Как получить нужный цвет из палитры имеющегося стиля? Это достаточно просто, нужно использовать класс QPalette и его роли. Например, мне нужно достать цвет текста из одного виджета и применить его в другом как цвет фона (не важно зачем именно так, просто захотелось😊). Получаем палитру виджета и сразу достаём нужный цвет, указав его роль. from PySide2.QtGui import QPalette color = main_window.palette().color(QPalette.Text) теперь можем использовать этот цвет в стилях my_widget.setStyleSheet(f'background-color: {color.name()};') Готово, мы динамически переопределили дефолтный стиль используя текущий стиль окна! На самом деле есть запись покороче, в одну строку и без лишних переменных. Не очень-то по правилам CSS, но Qt это понимает. my_widget.setStyleSheet('background-color: palette(Text);') Этот способ не подходит если вам нужно как-то модифицировать цвет перед применением в своих стилях. В этом случае потребуется первый способ. Зато он прекрасно сработает в файле .qss, то есть не придётся в коде прописывать раскраску отдельных элементов через ссылки на палитру, всё красиво сохранится в отдельном файле .qss! QListView#my_widget::item:selected { background: palette(Midlight); } Про имеющиеся роли можно почитать здесь🌍 #qt#tricks

Hashtags

Резултати

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

Пребарај: #pyr

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

@CoinSonar · Post #244030 · 18.04.2026 г., 07:18

#PYR | Volume spike (USDT PAIR) 19 times the average volume 128.31K USDT traded in 15 min └Buying vol: 80.26K USDT 🟢 Boost score: 4/10 24h Vol: 627.61K USDT (Binance) Price: 0.313 (-2.1% in 24h)

Hashtags

Coin Sonar

@CoinSonar · Post #243888 · 18.04.2026 г., 00:11

#PYR | Volume spike (USDT PAIR) 52 times the average volume 114.16K USDT traded in 5 min └Buying vol: 85.44K USDT 🟢 Boost score: 7/10 24h Vol: 627.61K USDT (Binance) Price: 0.316 (-2.1% in 24h)

Hashtags

Coin Sonar

@CoinSonar · Post #243853 · 17.04.2026 г., 22:10

#PYR | Volume spike (USDT PAIR) 50 times the average volume 110.23K USDT traded in 5 min └Buying vol: 61.91K USDT 🟢 Boost score: 4/10 24h Vol: 627.61K USDT (Binance) Price: 0.303 (-2.1% in 24h)

Hashtags

Coin Sonar

@CoinSonar · Post #243814 · 17.04.2026 г., 18:56

#PYR | Volume spike (USDT PAIR) 49 times the average volume 107.53K USDT traded in 5 min └Buying vol: 88.98K USDT 🟢 Boost score: 7/10 24h Vol: 627.61K USDT (Binance) Price: 0.291 (-2.1% in 24h)

Hashtags

Pro Analysis

@proanalysistrader · Post #28318 · 06.12.2024 г., 08:09

#PYR/USDT analysis : #PYR is currently in an uptrend, forming a higher highs (HHs) and higher lows (HLs) structure. At present, the price is undergoing a correction phase, with expectations of a breakout from the trendline soon, which will allow it to resume its bullish momentum. Wait for a break above the $4.320 level as a signal to enter long positions. TF : 1h Entry : $4.320 Target : $4.845 SL : $3.969

Hashtags

Pro Analysis

@proanalysistrader · Post #27909 · 07.09.2024 г., 06:09

#PYR/USDT analysis : #PYR is in a downtrend, forming lower lows (LLs) and lower highs (LHs) structure. The price is currently trading below the 200 Exponential Moving Average (EMA). It is anticipated that the price will retrace back to the resistance zone and then reverse from there to continue its bearish momentum and test the previous swing low. TF : 30min Entry : $2.438 Target : $2.299 SL : $2.495

Hashtags

American Crypto©

@americancryptotrading · Post #27224 · 20.04.2025 г., 14:23

🇺🇸#PYR/USDT is poised to breakout from the descendingresistance line on the daily chart💁‍♂️ Pump is expected🚀 American Crypto©

Hashtags

Crypto Profit Coach™

@cryptoprofitcoach · Post #8307 · 03.10.2022 г., 14:46

#PYR https://www.binance.com/en/trade/PYR_BTC Buying Zone 1850-1868 We are expecting ride in this Coin 🚀🚀🚀🚀 Buy in parts and Strictly follow as directed 👆 Sell 🤑 2000-2050 🤑 2050- 2250 🤑 2250- 2400 🚀 2400- 2600 & above Exit/Re-Entry point- 1800

Hashtags

Binance Big Pump Signals Future trade

@binancebigpumpsignalsfuture · Post #1972 · 13.01.2022 г., 13:26

#PYR result 2 nd target achieved in just 5 days ✅✅ One more huge quick profit 22.4%🤑💰🤑 👉 Still thinking? The more you wait more you lose profit ☎️ Contact @MichaelStrategiesVip for membership and grab next breakout signal

Hashtags

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