@emoji1 · Post #1915 · 19.04.2025 г., 11:51
🙏🎂🥚🧺🥚🥚🥚🥚🙏🥚🥚🥚🥚✝️👯🥚🙏🙏🙏🙏🥚🐣🕊️🙏🧁🛐🥚❤️🔥💒👧🥚🥚🥚✨✨✨🥚🧁🐇🩵❤️🩷🥚🌸🌸🌸🥚🆗🥚🤍🥚 пасха | add#easter please boost 👼
Hashtags
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
Пребарај: #easter
@emoji1 · Post #1915 · 19.04.2025 г., 11:51
🙏🎂🥚🧺🥚🥚🥚🥚🙏🥚🥚🥚🥚✝️👯🥚🙏🙏🙏🙏🥚🐣🕊️🙏🧁🛐🥚❤️🔥💒👧🥚🥚🥚✨✨✨🥚🧁🐇🩵❤️🩷🥚🌸🌸🌸🥚🆗🥚🤍🥚 пасха | add#easter please boost 👼
Hashtags
@aseanrussia · Post #1593 · 20.04.2025 г., 09:26
Happy #Easter to all who celebrate! May this Easter bring peace, love, and prosperity! 🙏
Hashtags
@emoji1 · Post #1560 · 05.05.2024 г., 06:58
🧺 🧁 🧁 🥚 🥚 🥚 🥚 🥚 🥚 🐰 🥕 🐇 🐰 🐇 🐰 🐰 🥚 🥚 🐥 🏵 💮 🪴 🌺 🪴 🥚 🥚 🥚 🚩 🚩 🚩 🚩🥮🙏 🤩🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏 🤩 🤩 🤩 🤩 🤩 🤩🥚 🤩 🤩🥚🥚🥚🥚 пасха | add#easter please boost 👼
Hashtags
@EuropeanTribalism · Post #406 · 11.04.2020 г., 15:55
Quick and easy way to color your eggs for #Easter: Wrap plant parts of your choice around an egg with a nylon sock very tightly, so that the plant is pressed against the shell. Place the eggs into warm water with loads of onion peels. Boil it for twelve minutes and let everything cool down. Remove the sock with the plant and rub speck all over the egg to make it look shiny. Happy Easter to all of you! @EuropeanTribalism
Hashtags
@CustomEmojiPacks · Post #531 · 29.03.2023 г., 18:32
🎁t.me/addemoji/F4nt1kR4bb1tMaydroid Tags: #animated#animals#easter
@learnrcrussian · Post #4534 · 17.04.2025 г., 16:00
An online video demonstrating how to dye Easter eggs with red wine has become viral. The only thing: keep the wine in the pot, not in yourself! 🔻Here's how: ⚡️Pour any red wine into a pot with red eggs. ⚡️Bring to a boil and simmer for 10 minutes. ⚡️Then cool and put the pot with the eggs and wine into the fridge (not freezer!) for the night. ⚡️In the morning, place them on paper towels to dry. ⚡️The result is matte, shimmering Easter eggs with an unusual color. 🐣Happy Easter to all! #holidays #Easter 😎RCRussian | Support | Boost
@tonlines · Post #6814 · 17.04.2025 г., 13:05
JetTon Games: Final Stage of Easter Treasure Hunt Tournament #JetTon#EASTER JetTon Games announces the final stage of the Easter Treasure Hunt Tournament with a total prize pool of €250,000. Participants can compete in various games like Hot Triple Sevens and The Greatest Catch Bonus Buy with a minimum bet of 0.2 EUR. This is the last opportunity to secure a position in the winners ranking. Source: link @tonlines
@euinkazakhstan · Post #1284 · 18.04.2025 г., 12:12
Happy Easter! *** Пасха мерекесі құтты болсын! #Пасха#Easter
@IrishKnowledge · Post #91 · 23.09.2017 г., 22:13
'Ruins of the Four Courts' - Kathleen Fox. During the #Easter Rising she explored the streets of her native Dublin to paint events there. #Dublin
@learnrcrussian · Post #4547 · 19.04.2025 г., 14:00
🙏🙏🙏Some Russian Easter mood for you: • Красить яйца (imperf.) [kra-sit' yay-tsa] To colour/dye eggs ❓А вы красите яйца на Пасху? Video: AIvikki_topneuro #AI #holidays #Easter 😎RCRussian | Support | Boost
@free4ones · Post #935 · 20.04.2025 г., 09:07
Как все изменилось за несколько сотен лет... Когда-то последователи скрывались в темных катакомбах, а сегодня сторонников учения бесчисленное множество — христианство прошло огромный путь, став одной из главных духовных сил мира. #пасха#easter
@tkong_channel · Post #121 · 19.04.2025 г., 12:38
🐰 Happy Easter from Tkong! 💐 Wishing you a peaceful and joyful spring. 🐰 Tkong 祝你復活節快樂! 💐 願這個春天帶來平安與喜悅。 #Easter#Tkong