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

Резултати

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

Пребарај: #tlm

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

@CoinSonar · Post #244126 · 18.04.2026 г., 10:35

#TLM | Volume spike (USDT PAIR) 44 times the average volume 130.09K USDT traded in 15 min └Selling vol: 65.80K USDT 🔴 Boost score: 1/10 24h Vol: 279.95K USDT (Binance) Price: 0.002078 (-1.6% in 24h)

Hashtags

Coin Sonar

@CoinSonar · Post #244074 · 18.04.2026 г., 08:34

#TLM | Volume spike (USDT PAIR) 65 times the average volume 190.14K USDT traded in 15 min └Selling vol: 105.47K USDT 🔴 Boost score: 1/10 24h Vol: 279.95K USDT (Binance) Price: 0.001973 (-1.6% in 24h)

Hashtags

Coin Sonar

@CoinSonar · Post #244013 · 18.04.2026 г., 06:34

#TLM | Volume spike (USDT PAIR) 135 times the average volume 131.73K USDT traded in 5 min └Buying vol: 109.04K USDT 🟢 Boost score: 7/10 24h Vol: 279.95K USDT (Binance) Price: 0.002000 (-1.6% in 24h)

Hashtags

Coin Sonar

@CoinSonar · Post #243821 · 17.04.2026 г., 19:24

#TLM | Volume spike (USDT PAIR) 111 times the average volume 108.05K USDT traded in 5 min └Buying vol: 84.99K USDT 🟢 Boost score: 7/10 24h Vol: 279.95K USDT (Binance) Price: 0.001890 (-1.6% in 24h)

Hashtags

Pro Analysis

@proanalysistrader · Post #28362 · 04.01.2025 г., 05:53

#TLM/USDT analysis : #TLM has successfully broken out and retested the previous swing high level. The price is expected to rebound from this point and test the previous highs again. TF : 1W Entry : $0.01480 Target : $0.02400/$0.03260 SL : $0.01067

Hashtags

Pro Analysis

@proanalysistrader · Post #27968 · 28.09.2024 г., 08:02

#TLM/USDT analysis : #TLM is on the upswing, creating higher highs (HHs) and higher lows (HLs) above the 200-period exponential moving average (200 EMA). Currently, the price is undergoing a corrective pullback. It's probable that it will test the support zone and then rebound from there to sustain its bullish momentum and aim to revisit previous highs. TF : 1h Entry : $0.01160 Target : $0.01209 SL : $0.01128

Hashtags

Pro Analysis

@proanalysistrader · Post #27957 · 23.09.2024 г., 14:09

#TLM/USDT analysis : #TLM is presently in an uptrend, forming higher highs (HHs) and higher lows (HLs). The price is currently trading above the support zone and is projected to rebound from there to sustain its bullish momentum and retest previous highs. TF : 1h Entry : $0.01093 Target : $0.01144 SL : $0.01056

Hashtags

American Crypto©

@americancryptotrading · Post #27467 · 12.12.2025 г., 09:54

🇺🇸#TLM/USDT is testing the lowerborder of the descendingchannel formation on the weekly timeframe👨‍💻 Bounce will bring a huge rally🚀 American Crypto©

Hashtags

American Crypto©

@americancryptotrading · Post #27115 · 09.01.2025 г., 18:30

🇺🇸#TLM/USDT is attempting to bounce from the supportzone on the weekly timeframe💁‍♂️ Looking for a move up on a bounce🚀 American Crypto©

Hashtags

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