@developmentnewsindia · Post #43768 · 18.04.2026 г., 06:17
Lok Sabha & Rajya Sabha adjourned till Sine Die #Parliament
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
Пребарај: #parliament
@developmentnewsindia · Post #43768 · 18.04.2026 г., 06:17
Lok Sabha & Rajya Sabha adjourned till Sine Die #Parliament
Hashtags
@developmentnewsindia · Post #43745 · 17.04.2026 г., 14:17
Union Government will not move forward with the Delimitation Bill, 2026 & The Union Territories Laws (Amendment) Bill, 2026 Lok Sabha Adjourned till 11.00 AM, Tomorrow #Parliament
Hashtags
@developmentnewsindia · Post #43726 · 17.04.2026 г., 09:06
Rajya Sabha Adjourned till 11.00 AM, tomorrow #Parliament
Hashtags
@developmentnewsindia · Post #43708 · 16.04.2026 г., 20:07
Lok Sabha Adjourned till 11.00 AM, today Lok Sabha discussed the Constitution (One Hundred and Thirty-First Amendment) Bill, 2026 for a marathon 14 hours... Discussion will continue tomorrow with Voting Expected by 4 PM Tomorrow #Parliament
Hashtags
@developmentnewsindia · Post #43663 · 16.04.2026 г., 08:09
Rajya Sabha adjourned till 11.00 AM, tomorrow Rajya Sabha will hold Elections to elect new Deputy Chairman of the House, tommorow #Parliament
Hashtags
@addisstandardeng · Post #21615 · 05.03.2026 г., 04:53
#Somalia parliament approves new constitution Somalia's bicameral #parliament on Wednesday approved the country's new constitution following a protracted process that spanned more than 13 years. Sheikh Aden Mohamed Nur, speaker of the House of the People, the lower house of the Federal Parliament, announced that 186 members of the lower house and 37 #senators from the Upper House voted in favor of the new constitution during a joint session. "Today is a historic day, worthy of remembrance as our constitution transitions from a provisional one to an official, lawful one," Nur said. The new constitution will be formally signed into law by President Hassan Sheikh Mohamud. It replaces the provisional constitution adopted in 2012, when more than 800 delegates adopted it at a conference in Mogadishu while the country was under a transitional government. "Today marks a defining milestone for Somalia as we fulfill our...... https://english.news.cn/africa/20260305/077706c5ca034668b7ffc405b5f9331f/c.html
Hashtags
@WorldNews · Post #74125 · 14.04.2026 г., 21:34
In parliament, Polish MP calls Israel ‘new Third Reich,’ waves Israeli flag with swastika [Read FullArticle] @WorldNews#PolandNews#IsraelConflict#Parliament controversy
@ebcnewsnow · Post #53835 · 21.04.2026 г., 13:26
የፌዴራል የስፖርት ልማት እና አስተዳደር አዋጅ በሙሉ ድምፅ ጸደቀ ********************* የሕዝብ ተወካዮች ምክር ቤት ዛሬ ባካሄደው 15ኛ መደበኛ ስብሰባ፣ የስፖርት ዘርፍ ላይ መሠረታዊ ለውጥ ያመጣል ተብሎ የታመነበትን የፌዴራል የስፖርት ልማት እና አስተዳደር ረቂቅ አዋጅ መርምሮ አጽድቋል። አዲሱ አዋጅ ቁጥር 1413/2018 በስፖርቱ ዘርፍ አካታች፣ ዘመናዊና ግልጽነት ያለው የአሰራር ሥርዓት ለመዘርጋት ምቹ መደላድል የሚፈጥር ሲሆን፣ በዘርፉ የሚታዩ የአሰራርና የመልካም አስተዳደር ችግሮችን በዘላቂነት ለመፍታት ታላቅ ፋይዳ እንዳለው ተገልጿል። አዋጁ የስፖርት መሠረተ ልማቶችንና ማሰልጠኛ ተቋማትን ከማስፋፋት ባለፈ፣ የስፖርት ግብዓት አምራቾች እንዲበረታቱና ዘርፉ ለሀገር ኢኮኖሚ የራሱን ድርሻ እንዲያበረክት ያደርጋል። በተጨማሪም ማህበራዊ ትስስርን በማጎልበት፣ ዲፕሎማሲያዊ ግንኙነትን በማጠናከር እና ስፖርት ነክ ወንጀሎችን በመከላከል ረገድ ጉልህ ሚና እንደሚጫወት በምክር ቤቱ የጤና፣ ማህበራዊ ልማት፣ ባህልና ስፖርት ጉዳዮች ቋሚ ኮሚቴ ሰብሳቢ ወርቀሰሙ ማሞ አብራርተዋል። የባህልና ስፖርት ሚኒስትር ወ/ሮ ሸዊት ሻንካ በሰጡት ማብራሪያ፣ ስፖርት የኢትዮጵያውያን የኩራት ምንጭ እንዲሆን ዘርፉን የያዙ ማነቆዎችን በአሰራርና በስርዓት መፍታት የግድ እንደሚል ጠቁመዋል። አዋጁ ከዘርፉ ማግኘት ያለባትን ጥቅም እንድታገኝ በማድረግ ረገድ መሠረታዊ ለውጥ እንደሚያመጣ ሚኒስትሯ ገልጸዋል። የምክር ቤቱ አባላትም የአዋጁን አስፈላጊነት በማመንና አፈጻጸሙ ላይ ትኩረት እንዲደረግ በማሳሰብ አዋጁን በሙሉ ድምፅ ማጽደቁን ከሕዝብ ተወካዮች ምክር ቤት የተገኘው መረጃ ያመለክታል። #EthiopianBroadcastingCorporation#Ethiopia#SportsDevelopment#Parliament#Proclamation#EthiopianSports
@reutersworldchannel · Post #149411 · 15.10.2021 г., 14:43
LIVE: View outside the church where UK lawmaker David Amess was stabbed to death Live view outside the Belfairs Methodist Church where British Conservative lawmaker David Amess was stabbed to death by a man who walked into a meeting with voters #Live#UK#DavidAmess#England#Parliament#Reuters#News ➖@reutersworldchannel➖
@CryptoM · Post #64619 · 09.04.2026 г., 11:35
🚀 Iranian Parliament Speaker Warns of Consequences for Ceasefire Violations On April 9, Iranian Parliament Speaker Mohammad Bagher Ghalibaf stated that any breach of the ceasefire agreement will result in clear consequences. According to BlockBeats, Ghalibaf emphasized the importance of adhering to the terms of the agreement to avoid potential repercussions. The statement underscores the significance of maintaining peace and stability in the region. #Iran#Parliament#Ceasefire#Consequences#Peace#Stability#MiddleEast
@CryptoM · Post #65117 · 11.04.2026 г., 04:24
🚀 Iranian Delegation of 71 Members to Engage in U.S. Talks A 71-member Iranian delegation is set to engage in negotiations with the United States. According to Odaily, the delegation includes key figures such as Iran's Islamic Parliament Speaker Mohammad Bagher Ghalibaf, Foreign Minister Abbas Araghchi, Central Bank Governor Abdolnaser Hemmati, and Defense Committee Secretary Ali Akbar Ahmadian. Other notable members include Deputy Foreign Minister Gharibabadi, Foreign Ministry Spokesperson Baghaei, Deputy Director of Foreign Policy at the Supreme National Security Council Ali Bagheri Kani, parliamentarian Seyed Mahmoud Nabavian, Speaker's Assistant for International Affairs Abolfazl Amouei, and Strategic Advisor Mehdi Mohammadi. The U.S. delegation reportedly comprises 300 members, with a significant portion dedicated to security, guard, and protocol teams. #Iran#US#negotiations#Ghalibaf#Araghchi#Hemmati#Ahmadian#foreignpolicy#security#diplomacy#internationalrelations#parliament