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

Резултати

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

Пребарај: #egld

当前筛选 #egld清除筛选
Pro Analysis

@proanalysistrader · Post #28200 · 15.11.2024 г., 10:10

#EGLD/USDT analysis : #EGLD is currently in an uptrend, trading above the 200 EMA. The price has successfully broken out and retested the previous swing high resistance levels. It is anticipated that the price will bounce back from this point and continue its bullish momentum, aiming to test the recent swing high. TF : 4h Entry : $28.44 Target : $33.75 SL : $26.00

Hashtags

Pro Analysis

@proanalysistrader · Post #28040 · 19.10.2024 г., 17:47

#EGLD/USDT analysis : #EGLD has broken out and retested the support zone. It is now expected to bounce from this support zone and test the previous swing high level. TF : 1D Entry : $26.26 Target : $28.14 SL : $25.12

Hashtags

American Crypto©

@americancryptotrading · Post #27602 · 27.04.2026 г., 08:54

🇺🇸#EGLD/USDT is holding above the lowerboundary of the descendingchannel formation on the weekly chart💁‍♂️ Rebound incoming🐃 American Crypto©

Hashtags

American Crypto©

@americancryptotrading · Post #27551 · 03.03.2026 г., 10:13

🇺🇸#EGLD/USDT has found support at the lowerboundary of the descendingchannel formation on the weekly timeframe👨‍💻 A leg up is forming✈️ American Crypto©

Hashtags

Elf Crypto VIP

@elfcryptovip · Post #12553 · 09.04.2026 г., 11:50

#EGLD Weekly Support Zone Retest🧐 MultiversX is testing the lowerboundary of the descendingchannel formation on the weekly timeframe👨‍💻 This area serves as a launchpad for a potential bullish reversal🔍 A confirmed rebound could propel the price toward targets at $7, $12, $22, $38, $58, $77, $120, and $200🎯

Hashtags

Elf Crypto VIP

@elfcryptovip · Post #11740 · 19.07.2025 г., 11:37

#EGLD MultiversX has successfully broken out of the descendingchannel pattern on the daily timeframe Price action shows strong bullish momentum after breaching the descending resistance Expect a continuation toward targets at $20.50, $26.00, and $38.00🎯

Hashtags

Crypto Profit Coach™

@cryptoprofitcoach · Post #8905 · 04.11.2023 г., 17:16

#EGLD👈 https://www.binance.com/en/trade/egld_BTC Buying Zone 930- 985 👆 Buy in parts 👈Strictly follow as directed 👆 Showing bullish momentum Sell 🤑 1040-1100 🤑 1100 - 1200 🤑 1200-1300 🚀 1300 - 1400 & above Bullish Over 870

Hashtags

Maximus Trade 🌕

@maximustrade1 · Post #7648 · 20.10.2023 г., 11:46

#EGLD LONG ▪Вход: 25$ ▪Тейк: буду обновлять. ▪Стоп: 22$ пс: до хеллуина, можно подержать. LINK - Maximus Trade|TWITTER

Hashtags

Crypto

@signal_bitcoins · Post #2488 · 24.01.2024 г., 08:42

#EGLD bounced back from the Green zone on 12H Time frame,we expect more pumps after breakup from the Trendline,send it 💎 ❄️@signals_bitcoin_crypto❄️ ❄️@Shadow_support0o❄️

Hashtags

Crypto

@signal_bitcoins · Post #1785 · 10.12.2023 г., 16:32

#EGLD is trying to break up the Supply zone on Weekly time frame,in the case of breakout we may see another bullish leg🚀 ❄️@signals_bitcoin_crypto❄️ ❄️@Shadow_support0o❄️

Hashtags

Crypto

@signal_bitcoins · Post #1325 · 08.08.2023 г., 20:34

💰#EGLD price bounced from the support of $30.50-$31 area. The local resistance is $32.89-$33.50 area and the price is rejected from there. 👀 The major resistance is the $37.10-$38 area. You can open long positions near the support area with tight stop loss. 📈 ❄️@signals_bitcoin_crypto❄️ ❄️@Shadow_support0o❄️

Hashtags

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