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

Резултати

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

Пребарај: #snx

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

@CoinSonar · Post #243517 · 17.04.2026 г., 07:49

#SNX | Volume spike (USDT PAIR) 67 times the average volume 107.06K USDT traded in 5 min └Selling vol: 69.96K USDT 🔴 Boost score: 1/10 24h Vol: 457.26K USDT (Binance) Price: 0.307 (-2.0% in 24h)

Hashtags

Pro Analysis

@proanalysistrader · Post #28350 · 20.12.2024 г., 08:39

#SNX/USDT analysis : #SNX is currently retracing towards the support zone following a recent impulsive move. It is anticipated that after a breakout from this zone, the price will retest and subsequently bounce back, resuming its bullish momentum. TF : 1D Entry : $2.0 Target : $3.4 SL : $1.5

Hashtags

Pro Analysis

@proanalysistrader · Post #27938 · 16.09.2024 г., 14:02

#SNX/USDT analysis : #SNX has broken and retested the support zone, and it is currently facing resistance from the 200 EMA. The price is likely to continue its bearish momentum from its current level and retest previous lows. TF : 4H Entry : $1.353 Target : $1.229 SL : $1.430

Hashtags

American Crypto©

@americancryptotrading · Post #27461 · 06.12.2025 г., 10:17

🇺🇸#SNX/USDT is consolidating near the lowerborder of the descendingchannel on the weekly chart👀 Time to go long🐃 American Crypto©

Hashtags

American Crypto©

@americancryptotrading · Post #27429 · 05.11.2025 г., 09:26

🇺🇸#SNX/USDT is currently shaping the descendingchannel on the weekly timeframe💁‍♂️ Recovery is on the way✈️ American Crypto©

Hashtags

American Crypto©

@americancryptotrading · Post #27251 · 16.05.2025 г., 10:54

🇺🇸#SNX/USDT is about to break through the descendingchannel pattern on the daily timeframe🧐 Breakout is on the way🐃 American Crypto©

Hashtags

American Crypto©

@americancryptotrading · Post #27152 · 12.02.2025 г., 16:43

🇺🇸#SNX/USDT is facing the lowerborder of the falling wedge pattern on the weekly chart💁‍♂️ Looking for a rise📈 American Crypto©

Hashtags

Coinlegs Cryptocurrency Signals

@coinlegs · Post #9430 · 27.11.2023 г., 08:43

#SNX🐻👀 A little bit risky but will worth to try. Use SL. Want to see more strategies for any coin? Check out CoinLegs in order to have an overview before your trades 📊

Hashtags

Alphavave Traders ️️️

@alphavave · Post #2992 · 09.11.2025 г., 07:01

UNBELIEVABLE PROFIT OF 23,600% HAS BEEN REALIZED IN #SNX 🔀 We're made a massive 2️⃣3️⃣6️⃣🔤 profit this Trade 🤑🔥 If you had only $50 inthis single position you would've made $11,800⭐ Went from 7,910% to 23,615%—That’s an extra 15,705% profit just by holding for maximum gains🥂🔥 If you're someone who's been following our progress, but haven't yet joined the PREMIUM group, what's holding you back? You can see the consistent profits we're making on a regular basis. The only difference between you and the members who send us the positive feedback you see, is that they took action and joined the PREMIUM group. It's business as usual - every day, like clockwork, we are in the fast lane, leaving the competition eating our dust 😮‍💨🪙 If you are ready to step up, send me a message and let's get started 👇 @Kevindexter✅

Hashtags

Alphavave Traders ️️️

@alphavave · Post #2776 · 02.09.2025 г., 12:21

🔀#SNX/USDT 2,170% profit, insane move! 🤯 That’s 2️⃣1️⃣🔤 gain on your money 💰🔥 💰$50 would return $3600💸 💰$50 would return $1,085💎 💰$50 would return $1,085💎 Fast & solid results—that’s what we love the most. Any guesses on who’s missing out again? 🤔 Enjoy 2,170% profit🆙. 🤝Congratulations all Premium Members. Now imagine if you followed the rest of the signals.. 🤑💯 chat to join ➡️@Kevindexter✅️

Hashtags

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