@Dogdata · Post #2235 · 20.07.2020 г., 21:05
#Bone live on Coingecko🚀🧨 👉https://www.coingecko.com/en/coins/bone #DogData🐾
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
Пребарај: #dogdata
@Dogdata · Post #2235 · 20.07.2020 г., 21:05
#Bone live on Coingecko🚀🧨 👉https://www.coingecko.com/en/coins/bone #DogData🐾
@Dogdata · Post #2316 · 31.07.2020 г., 17:09
Happy #EidMubarak Best wishes for all DogData Muslim Community Thank you for your kind support 🙏 #DogData#Dogs#EidMubarak 🤩🚀📈😍🤩🚀📈😍🤩🚀📈
Hashtags
@Dogdata · Post #2394 · 14.08.2020 г., 11:08
DogData community🐾 Support us and vote for DogData🙏🐾 Please tag 👇 @FaceBook4Dog#ethbn#bone#dogdata https://twitter.com/gate_io/status/1293863802019119105?s=09 👆👆👆
@Dogdata · Post #2392 · 13.08.2020 г., 19:17
DogData community🐾 Everyone should be interested in getting this. Let's show that we are big, let's show that our community is huge ❗️❗️ Support us and vote for DogData🙏🐾 Please tag 👇 @FaceBook4Dog#ethbn#bone#dogdata https://twitter.com/gate_io/status/1293863802019119105?s=09 👆👆👆
@dogdata · Post #4351 · 08.11.2023 г., 07:01
Let’s bring the Dogs Data to TikTok Join the 🐾 TikTok community Like and share our videos their whenever you can https://www.tiktok.com/@kennel.ai?_t=8h0SUOsjUHI #DogData #$DOGS #Web3#DogBreeder#DogNFT
Hashtags
@dogdata · Post #4338 · 02.11.2023 г., 07:01
Let’s bring the Dogs Data to TikTok Join the 🐾 TikTok community Like and share our videos their whenever you can https://www.tiktok.com/@kennel.ai?_t=8h0SUOsjUHI #DogData #$DOGS #Web3#DogBreeder#DogNFT
Hashtags
@Dogdata · Post #2434 · 19.08.2020 г., 05:32
This is the first of the articles on DogData👏👏 #ETHBN#dogdata#publish0x 👉https://www.publish0x.com/dogdata/mydogdata-xnlwvqz Please rate this article👍🐾
Hashtags
@Dogdata · Post #2497 · 09.09.2020 г., 13:47
💸DogData Wallet 💸 🗓Launched This Week All who registered on the DogData web page should feel free to check up their DogData wallet 🚀 👉https://t.co/JNmxHEyQWw #DogData#Dogs#wallet#cryptocurrencyhttps://t.co/In7tQYMYio
@Dogdata · Post #2453 · 25.08.2020 г., 08:50
🚨Amazing news!📢 We were chosen to be listed on Bitforex CApp!😱🚀 #DogData#Bitforex#Capp
@Dogdata · Post #2271 · 26.07.2020 г., 09:28
🚨🚨TODAY 🚨🚨 #26 July 2020 LIVE AMA🤩📣 #DogData CFO Thomas Melchior With the support #EXCOINCIAL Team 🔴Get your questions prepared. 🔴 Maximum 2 questions per person. THE EVENT HOSTED ON #AFRICUNIA TV Facebook: https://www.facebook.com/africuniatv Instagram: https://www.instagram.com/africuniatv Zoom: https://zoom.us/j/6331039454
Hashtags
@dogdata · Post #4371 · 12.12.2023 г., 07:31
$Dogs token is the governance token for Kennel.Ai platform Web3 on chain platform Where pet dog breeders can tokenise pet dogs using NFT Blockchain is the best way to decentralise dog data Blockchain has created for pet dog breeders the opportunity to manage the industry themselves instead of having to pay and being governed by a centralised organisation #DogData#FCI#DogBreeder#blockchain#Decentralised
@dogdata · Post #4360 · 23.11.2023 г., 07:01
$Dogs token is the governance token for Kennel.Ai platform Web3 on chain platform Where pet dog breeders can tokenise pet dogs using NFT Blockchain is the best way to decentralise dog data Blockchain has created for pet dog breeders the opportunity to manage the industry themselves instead of having to pay and being governed by a centralised organisation #DogData#FCI#DogBreeder#blockchain#Decentralised