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

Резултати

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

Пребарај: #lisk

当前筛选 #lisk清除筛选
Nomis | Onchain Reputation Protocol

@nomis_protocol · Post #625 · 26.02.2025 г., 11:52

🚨 Lisk Airdrop Season 1: PoH Stage Powered by Nomis is LIVE The campaign includes 3 Seasons, the 1st one ends 28th Feb! How to increase your #Lisk Score? It's simple: be more active on chain. The more you perform, the higher your Score 🤠 Wait, extra $LSK allocation for all #Lisk Score holders? YEP! All 10+ Lisk Score holders get: - 5,000 welcome points - 15% boost to holders' allocated non-referral airdrop points 👉 How to Get Involved: 1. Head over to 🔗Nomis 2. Mint Your Lisk Score (It should be 10+) 3. Go to Lisk Portal and 🔗Claim Rewards (Make it happen until the 1st Season ends!) Read The Extended Guide 🔗Here 💠Nomis tApp | X | Discord | YouTube | Check Scores⚖️

Hashtags

Nomis | Onchain Reputation Protocol

@nomis_protocol · Post #624 · 21.02.2025 г., 20:03

We safeguard airdrops. We prove you're human. We build reputation. We reward YOU for building yours 🪂 Nomis has become the official anti-Sybil tool for the Lisk ecosystem with our #Lisk Rep Score -> 🔗Mint Lisk Score What does this mean for you? So-o-o, with your Lisk Score, you can increase up to 15% of your non-referral airdrop points You contribute—you deserve to be rewarded, remember? Always keep our promises 💜 Stay tuned for more; we've got something else to share 🧘‍♀️ 💠Nomis tApp | X | Discord | YouTube | Check Scores⚖️

Hashtags

Pro Analysis

@proanalysistrader · Post #27794 · 04.08.2024 г., 12:59

#LSK/USDT analysis - #Lisk is experiencing a corrective pullback, creating a quick scalp opportunity on the buy side. Price is following a trendline. It is expected to bounce off from there and test the 200 EMA resistance level. TF : 15min Entry : $0.832 Target : $0.856 SL : $0.817

Hashtags

🗺 Travel the World | Private Expeditions

@expeditionsworldwide · Post #55 · 13.08.2020 г., 04:18

Today. I added to my experimental portfolio a coin - Lisk#LSK paired with #USDT on the Binance cryptocurrency exchange. For me, this coin looks attractive for a long-term investment. 🛒Motives for buying#LSK #Lisk ranks 63rd in the CoinMarketCap rating. Good fundamental analysis is expected by the end of the year, including the halving on September 28. The coin was not pumped! The price is close to the resistance zone $1.6555-1.8727, Support level is the $1.2840-1.0440. The price projector points to a rise of $3.30. I expect to grow from 130% to 180%. 🎯 Fibonacci 10$ experiment.