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

Резултати

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

Пребарај: #beam

当前筛选 #beam清除筛选
Crypto Profit Coach™

@cryptoprofitcoach · Post #8096 · 15.08.2022 г., 18:04

#BEAM👈 Call given here hit 946 First Selling Range+ Target 1 done ✅ Always buy in parts and successive dips for Max profit If you invested 1 btc its now 1.15 btc 🤑🤑🤑👍 Signal before pump @ low level Always trade with us for max profit 😊🤑💃

Hashtags

Binance crypto champions

@binancecryptochampions · Post #2880 · 16.11.2025 г., 08:03

✴️Free signal-Futures ✴️ ⚡️⚡️#BEAM/USDT⚡️⚡️ Signal Type: Regular (Long) Leverage: Cross (10.0x) Entry Targets: 1) 0.003899 2) 0.003812 Take Profit Targets: 1) 0.003946 2) 0.004008 3) 0.004111 Stop Targets: 1) 0.003767 🌱 Published By: @Trading_exp🌱

Hashtags

🗺 Travel the World | Private Expeditions

@expeditionsworldwide · Post #41 · 10.08.2020 г., 01:49

And one more coin was bought by me for $ 10 and sent to my experimental portfolio - #BEAM paired with #USDT on the #Binance exchange looks attractive for a long-term investment. The coin is ranked 165 in the CoinMarketCap rating. We have been moving in a small upward trend since March. 1W Chart closed above the downtrend line and the price projector indicated a rise of 50% to 100%. The price stopped in the resistance zone, support level is the $0.30-0.40 zone. ⚠️ Support retest and drawdown up to 50% is possible.

🗺 Travel the World | Private Expeditions

@expeditionsworldwide · Post #39 · 10.08.2020 г., 00:27

🛒 Over the past few days I have added to my experimental portfolio such coins as:#QTUM, #DASH, #BEAM The QTUM coin#QTUM looks interesting for a long-term investment, and therefore today I buy it in my portfolio 10$ Fibonacci. It ranks 47th in the CoinMarketCap rating. Motive for buying this coin: 📉 We have been moving within the descending channel for 2 years. The coin has not been pumped and has been accumulating for a long time. We stand under the resistance zone of $3.075-3.442, then in the area of the upper border of the channel. A good Fundamental Analysis is expected by the end of 2020. In the long term, I expect 100% to 580%, up to $18 per coin. ©️FIBONACCI SYNDICATE

Crypto Headlines

@market_headlines · Post #27749 · 16.03.2026 г., 22:40

#рейтинг 📊Santiment: ТОП-10 криптопроектов, ориентированных на конфиденциальность (Privacy), по активности разработчиков за последние 30 дней. 1. ChainLink #LINK 2. Aztec #AZTEC 3. Dash #DASH 4. Zama #ZAMA 5. HOPR #HOPR 6. NYM #NYM 7. Zcash #ZEC 8. Verge #XVG 9. Beam #BEAM 10. Decred #DCR Ранее: прошлый топ Crypto Headlines

SLEX NEWS

@slex_io · Post #146 · 10.01.2024 г., 13:40

🌐Exciting New Crypto Listings on SLEX Exchange! 🚀 🎉Big news for traders! SLEX Exchange has broadened our horizons by including a diverse range of new cryptocurrencies in our trading portfolio. 🔹 Newly Listed Cryptos: - BEAM (Beam) - FIL (Filecoin) - SNX (Synthetix) - DYDX (dYdX) - FET (Fetch) - IMX (Immutable X) - PEPE (PepeCoin) - AMP (Amp) - BLUR (Blur) - SAND (The Sandbox) 💰Dive into trading new promising assets to amplify your earnings and broaden your investment portfolio on the SLEX Centralized Exchange! #SLEXUpdate#PEPE#BLUR#AMP#SAND#IMX#FET#DYDX#SNX#FIL#BEAM#DiverseTrading#SLEXTrading Website| Telegram | Reddit | Facebook | Instagram | Medium | Linkedin | Twitter

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