@googlefactss · Post #40792 · 14.03.2026 г., 07:00
Rabbits can see behind themselves without moving their heads due to their laterally placed eyes. Their only, small blind spot is directly in front of their nose. @googlefactss#animals
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
Пребарај: #animals
@googlefactss · Post #40792 · 14.03.2026 г., 07:00
Rabbits can see behind themselves without moving their heads due to their laterally placed eyes. Their only, small blind spot is directly in front of their nose. @googlefactss#animals
Hashtags
@googlefactss · Post #40547 · 16.01.2026 г., 23:01
The scientific name for "coyote" is canis latrans, which literally means "barking dog", a fitting description for its wide variety of yips, howls, and barks used for communication, with the name coming from the Aztec word for the animal. @googlefactss#animals
Hashtags
@googlefactss · Post #40082 · 13.11.2025 г., 20:50
Female elephants stay with the same herd their entire lives. Males only remain with the herd until they are 12 to 15 years old. The Male elephants then either join a "bachelor" herd or they live alone only rejoining the females during mating season. @googlefactss#animals
Hashtags
@googlefactss · Post #39956 · 27.10.2025 г., 14:20
A zebra's teeth grow continuously throughout its lifetime, offsetting the wear of constant grazing. @googlefactss#animals
Hashtags
@googlefactss · Post #39898 · 03.10.2025 г., 11:12
The world’s largest bat is the giant golden-crowned flying fox, a rare fruit bat. It has a wingspan of 5 to 6 feet (1.5 to 1.8 m). @googlefactss#animals
Hashtags
@profile_pictures_tm · Post #16014 · 15.09.2023 г., 14:50
#Animals❤
Hashtags
@profile_pictures_tm · Post #15228 · 18.07.2023 г., 18:01
#Animals❤
Hashtags
@profile_pictures_tm · Post #14334 · 04.05.2023 г., 19:25
#Animals
Hashtags
@profile_pictures_tm · Post #12335 · 03.12.2022 г., 20:08
#Animals
Hashtags
@ekologuzenglish · Post #11860 · 09.03.2026 г., 15:02
#Animals Animals help each other too, and sometimes they do it more sincerely than humans. In nature, there are many amazing examples of cooperation: birds warn their flock about danger, dolphins support injured companions, elephants protect their calves, and some animals share food with those who are weak. This invisible bond of support and care is part of the harmony of nature. In the wild, survival often depends on cooperation and strong social connections. By observing animals, we learn a simple truth: the world is sustained not only by strength, but also by compassion, trust, and mutual help. 🐾🌿☘️Read the latest environmental news on the @ekologuz page. Follow us and send your suggestions and wishes via @eklguz_bot Instagram | Facebook | Twitter | Sayt | Youtube.
Hashtags
@profile_pictures_tm · Post #11131 · 27.09.2022 г., 05:50
#Animals
Hashtags
@dailychannels · Post #6553 · 19.12.2025 г., 01:00
Channel: Dangerous Earth Members: ~5.44K 💢 Username: @dangerousground Description: Craters, volcanoes, avalanches, brutal animal scenes, deadly attacks by predators and many other strange displays of the forces of nature and its inhabitants. Buy ads: https://telega.io/c/dangerousground 🏷 Tags: #animals https://telegramchannels.me/channels/dangerousground
Hashtags