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

Резултати

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

Пребарај: #op

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

@CoinSonar · Post #244058 · 18.04.2026 г., 08:02

#OP | Volume spike (USDT PAIR) 64 times the average volume 126.26K USDT traded in 1 min └Selling vol: 113.20K USDT 🔴 Boost score: 1/10 24h Vol: 2.82M USDT (Binance) Price: 0.1336 (-2.5% in 24h)

Hashtags

Coin Sonar

@CoinSonar · Post #243884 · 18.04.2026 г., 00:02

#OP | Volume spike (USDT PAIR) 65 times the average volume 127.49K USDT traded in 1 min └Buying vol: 111.92K USDT 🟢 Boost score: 8/10 24h Vol: 2.82M USDT (Binance) Price: 0.1349 (-2.5% in 24h)

Hashtags

Coin Sonar

@CoinSonar · Post #243763 · 17.04.2026 г., 16:02

#OP | Volume spike (USDT PAIR) 71 times the average volume 139.46K USDT traded in 1 min └Selling vol: 115.82K USDT 🔴 Boost score: 1/10 24h Vol: 2.82M USDT (Binance) Price: 0.1333 (-2.5% in 24h)

Hashtags

Coin Sonar

@CoinSonar · Post #243690 · 17.04.2026 г., 13:37

#OP | Volume spike (USDT PAIR) 9 times the average volume 286.83K USDT traded in 15 min └Selling vol: 170.17K USDT 🔴 Boost score: 1/10 24h Vol: 2.82M USDT (Binance) Price: 0.1343 (-2.5% in 24h)

Hashtags

Coin Sonar

@CoinSonar · Post #243286 · 16.04.2026 г., 19:15

#OP | Volume spike (USDT PAIR) 59 times the average volume 117.20K USDT traded in 1 min └Buying vol: 100.25K USDT 🟢 Boost score: 7/10 24h Vol: 2.82M USDT (Binance) Price: 0.1318 (-2.5% in 24h)

Hashtags

Pro Analysis

@proanalysistrader · Post #28111 · 03.11.2024 г., 05:16

#OP/USDT analysis : #OP is currently forming a continuation pattern within a downtrend. The price has broken previous lows, and it is anticipated that it will continue its bearish momentum. It is advisable to wait for a pullback to the identified zone for a short entry, as the previous swing low is expected to be tested. TF : 1D Entry : $1.493 Target : $1.076 SL : $1.773

Hashtags

Pro Analysis

@proanalysistrader · Post #27879 · 27.08.2024 г., 09:31

#OP/USDT analysis : #OP has broken out above the 200 EMA and the previous resistance zone with strong bullish momentum. It is now retesting the breakout zone. The price is expected to continue its bullish bias and test previous highs. Wait for a break of the $1.517 level to go long. TF : 2H Entry : $1.517 Target : $1.643 SL : $1.444

Hashtags

American Crypto©

@americancryptotrading · Post #27519 · 30.01.2026 г., 10:33

🇺🇸#OP/USDT is consolidating near the lowerborder of the descendingchannel formation on the 3D chart🔍 Bullish if we bounce off the one🐃 American Crypto©

Hashtags

American Crypto©

@americancryptotrading · Post #27466 · 11.12.2025 г., 09:18

🇺🇸#OP/USDT has found support at the lowerborder of the descendingchannel on the 3D chart🔍 Expecting a bounce soon🚀 American Crypto©

Hashtags

American Crypto©

@americancryptotrading · Post #27336 · 08.08.2025 г., 09:02

🇺🇸#OP/USDT is ready to break out of the descendingresistance on the daily timeframe💁‍♂️ Looking for a leg upward✈️ American Crypto©

Hashtags

American Crypto©

@americancryptotrading · Post #27236 · 02.05.2025 г., 10:01

🇺🇸#OP/USDT is printing the descendingresistance line on the daily chart🧐 Breakout will bring a huge rally🐃 American Crypto©

Hashtags

123•••89
ПретходнаСтраница 1 од 9Следна