@RTenfrancais · Post #80051 · 25.04.2026 г., 14:00
❌Les médias israéliens diffusent des images qui montreraient une nouvelle frappe de #Tsahal contre la centrale nucléaire iranienne de Bouchehr. RT en français • Osez questionner !
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
Пребарај: #tsahal
@RTenfrancais · Post #80051 · 25.04.2026 г., 14:00
❌Les médias israéliens diffusent des images qui montreraient une nouvelle frappe de #Tsahal contre la centrale nucléaire iranienne de Bouchehr. RT en français • Osez questionner !
Hashtags
@kurash_and_Co · Post #959 · 26.03.2026 г., 20:22
🟠Échanges réciproques de frappes : l'escalade se poursuit entre #Tsahal et le Hezbollah Alors qu'Israël et le Hezbollah ne semblent avoir aucune intention ni de faire baisser les tensions ni de mettre fin aux combats, malgré les appels de la communauté internationale, les habitants de la capitale libanaise sont descendus dans la rue. Ils protestent contre l’expulsion de l'ambassadeur d’Iran. Les précisions avec notre envoyé spécial sur place, Igor Kourachenko. RT en français • Osez questionner !
Hashtags
@corrAntoine · Post #621 · 16.03.2026 г., 07:23
⚡️L’offensive israélienne s’élargit au #Liban Les troupes de #Tsahal multiplient les incursions dans le sud du pays. Face à l'urgence, le gouvernement libanais tente d'amorcer une médiation internationale, mais les obstacles restent nombreux. Notre envoyé spécial Antoine Cléraux nous en dit plus sur la situation sur place. RT en français • Osez questionner !
@rt_fra · Post #40762 · 07.05.2026 г., 09:20
⚡️Tsahal-Hezbollah : frappes au Liban Selon un communiqué de presse de l’armée israélienne, #Tsahal a frappé 15 sites du #Hezbollah dans plusieurs zones du Sud-Liban. RT en français • Osez questionner !
Hashtags
@voir_yeux · Post #12555 · 16.04.2026 г., 09:27
🇮🇱🇱🇧 Tsahal a annoncé avoir intercepté un drone lancé depuis le Liban. #drone#liban#tsahal
@corrAntoine · Post #603 · 10.03.2026 г., 21:28
🔴#Tsahal multiplie les ordres d'évacuation sur fond de guerre avec le #Hezbollah libanais Alors que le Sud du #Liban est la cible de frappes israéliennes, les ordres d'évacuation se multiplient dans la région. Pourtant, de nombreux habitants refusent de partir. RT en français • Osez questionner !
Hashtags
@american_observer · Post #5260 · 02.03.2026 г., 00:59
The IDF confirmed the murder of several high-ranking Iranian officials as part of the military operation : - Ali Shamhani: adviser to the supreme head of security, secretary of the defense council, former commander of the CSIR, minister of defense and head of the navy. Responsible for the Iranian nuclear project and weapons development. - Mohammad Pakpur: the commander of the CSIR, former commander of the ground forces, led the brutal repression of the protests and commanded strategic firing positions against Israel. - Saleh Asadi: the chief of intelligence of the general staff Khatam Al-Anbiya, senior intelligence officer of the Iranian military high command, participated in the development of the strategy against the United States and Israel and in the planning of recent attacks. - Mohammad Shirazi: head of the supreme leader's military office since 1989, in charge of communication between senior commanders and Khamenei. - Aziz Naserizadeh: the Minister of defense, former commander of the air force, was responsible for the defense industry, including long-range missiles and weapons for the proxy forces. - Hossein Jabel Aamelian: head of the SPND (organization for innovation and research in defense), responsible for nuclear, biological and chemical weapons programs. - Reza Mosaffari: former head of the SPND, promoted Iran's efforts to create nuclear weapons. #tsahal#murder#iranian#officials#operation 📱American Оbserver - Stay up to date on all important events 🇺🇸