TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #173 · 28 окт.

Для тех кто пишет расширения на PyQt/PySide для CG-софтов. Когда я только начинал писать тулзы под Maya (тогда еще версия 2010-2011) мне приходилось ручками ставить PyQt4 под Maya. Даже написал мануалы по установке на своём сайте. Но потом стал доступен из коробки PySide и позже он обновится до PySide2. Для некоторых систем была поддержка PyQt5. И как простому разработчику поддерживать этот зоопарк? Ведь хочется чтобы тул работал на любой версии (вы тоже делали модуль что-то типа import_qt.py?😁) На помощь приходит проект Qt.py который поставил себе цель унифицировать использование Qt-биндингов вне зависимости от среды где запускается код. Те, кто давно пишут на Qt, скорее всего знают этот проект. Он стал стандартом для CG-индустрии и используется в топовых студиях и проектах. Qt․py помогает запускать один и тот же код на разных платформах с разными вариантами Qt-библиотек. Это может быть как интеграция в CG-софт, так и переносимость стендалонов между разными платформами с разными версиями Python. Я решил рассказать о некоторых особенностях работы с этой библиотекой. Сегодня о том, как установить и использовать Qt․py и что это вам даёт. Установка pip install Qt.py Чтобы начать использовать Qt․py в коде достаточно заменить импорт вашего варианта Qt-биндинга на Qt․py from [PySide|PyQt4|PySide2|PyQt5] import QtWidgets => from Qt import QtWidgets Теперь ваш код будет поддерживать любой вариант биндинга Qt в Python. При этом не потребуется использовать if-else конструкции под разные версии. Все вызовы теперь одинаковы. Всё что нужно сделать, это написать его по правилам PySide2. Именно эта версия была взята за основу. Приоритет импорта такой: 1. PySide2 2. PyQt5 3. PySide 4. PyQt4 Что именно загрузилось можно посмотреть в переменной __binding__ >>> import Qt >>> Qt.__binding__ 'PySide2' Приоритет имопрта можно изменить через переменные QT_PREFERRED_BINDING и QT_PREFERRED_BINDING_JSON. Причем под каждый проект оверрайды можно настраивать индивидеально. #qt#libs

Hashtags

Резултати

Пронајдени 6 слични објави

Пребарај: #regionalstability

当前筛选 #regionalstability清除筛选
Crypto M - Crypto News

@CryptoM · Post #64800 · 10.04.2026 г., 00:36

🚀 Iran Declines Participation in U.S. Peace Talks Without Lebanon Ceasefire Iran has communicated to mediator Pakistan that it will not engage in peace talks with the United States unless a ceasefire is established in Lebanon. According to NS3.AI, this decision underscores Iran's stance on prioritizing regional stability before diplomatic negotiations. The move highlights the complexities of Middle Eastern geopolitics, where ongoing conflicts influence diplomatic interactions. #Iran#US#PeaceTalks#Lebanon#Ceasefire#MiddleEast#Geopolitics#RegionalStability

Crypto M - Crypto News

@CryptoM · Post #64748 · 09.04.2026 г., 17:55

🚀 U.S. President Donald Trump Anticipates Imminent Peace Agreement with Iran U.S. President Donald Trump has conveyed a positive outlook regarding the potential for a peace agreement with Iran. According to NS3.AI, Trump believes that negotiations are progressing favorably, suggesting that a resolution may be reached soon. This development comes amid ongoing diplomatic efforts to address tensions between the two nations. The President's remarks highlight a significant shift in the geopolitical landscape, with implications for international relations and regional stability. #DonaldTrump#Iran#PeaceAgreement#Diplomacy#InternationalRelations#Geopolitics#MiddleEast#Negotiations#RegionalStability

Crypto M - Crypto News

@CryptoM · Post #65390 · 13.04.2026 г., 04:28

🚀 Iranian Lawmaker Deletes Post on U.S. Demands in Nuclear Talks Saeed Mahmoud Nabavian, an Iranian lawmaker engaged in discussions between the U.S. and Iran, recently shared and subsequently removed a social media post detailing three demands from the United States. According to NS3.AI, the deleted message outlined the U.S. requests for joint sharing of benefits from the Strait of Hormuz, the removal of all uranium enriched to 60% from Iran, and a 20-year prohibition on uranium enrichment. The post's removal has sparked speculation about the ongoing negotiations and the potential implications for regional stability. #Iran#US#NuclearTalks#StraitOfHormuz#UraniumEnrichment#MiddleEast#Diplomacy#InternationalRelations#RegionalStability

The 21st meeting of CIS security and intelligence chiefs is taking place in Samarkand. Mirziyoyev called for diplomatic conflict resolution and stronger regional stability. https://yep.uz/en/2025/10/cis-intelligence-chiefs-samarkand-mirziyoyev-diplomatic-resolution/ #Samarkand#CIS#Mirziyoyev#intelligence#security#diplomacy#regionalstability#internationalsecurity

Crypto M - Crypto News

@CryptoM · Post #65058 · 10.04.2026 г., 17:08

🚀 Israel-Hezbollah Conflict Complicates U.S.-Iran Relations The ongoing conflict between Israel and the Iran-backed Lebanese militia Hezbollah is adding complexity to the United States' efforts to resolve its longstanding tensions with Iran. Bloomberg posted on X, highlighting the intricate geopolitical dynamics at play. The hostilities between Israel and Hezbollah have intensified, with both sides engaging in military actions that threaten to escalate further. This situation is complicating U.S. diplomatic strategies aimed at de-escalating tensions with Iran, as Hezbollah's actions are closely linked to Iranian interests in the region. The U.S. has been attempting to negotiate with Iran to address various issues, including nuclear capabilities and regional influence. However, the involvement of Hezbollah, a significant player in the Middle East conflict, poses challenges to these diplomatic efforts. As the situation unfolds, the international community is closely monitoring developments, with concerns about potential broader implications for regional stability. The U.S. continues to navigate these complex relationships, seeking a resolution that addresses both its strategic interests and the security concerns of its allies in the region. #Israel#Hezbollah#USIranRelations#MiddleEastConflict#Geopolitics#USDiplomacy#Iran#Lebanon#RegionalStability#NuclearNegotiations#MilitaryEscalation#InternationalRelations

Crypto M - Crypto News

@CryptoM · Post #65155 · 11.04.2026 г., 13:17

🚀 U.S.–Iran Discussions Begin as Vice President Vance Leads Talks in Islamabad Key Takeaways JD Vance is leading high-stakes talks with Iran in Islamabad.Negotiations aim to stabilize the ceasefire and end the conflict.Talks are indirect and mediated by Pakistan amid deep mistrust.Key issues include Strait of Hormuz, sanctions, and nuclear program. Talks Officially Underway Discussions involving the United States and Iran have officially begun in Islamabad, with JD Vance heading the US delegation. The negotiations are part of a broader effort to extend a fragile ceasefire and potentially move toward a longer-term resolution of the conflict. Pakistan Acting as Mediator The talks are being hosted and mediated by Pakistan, which has played a central role in facilitating communication between both sides. Meetings are taking place under tight security conditionsDelegations are engaging through indirect channels, though direct talks may occurPakistani officials are coordinating between both sides to push toward progress High-Stakes Agenda Key topics under discussion include: Reopening the Strait of Hormuz (critical for global oil supply)Potential sanctions relief for IranLimits on Iran’s nuclear programBroader regional stability and ceasefire enforcement Tensions and Mistrust Remain High Despite the start of talks, major disagreements persist: Iran has set conditions, including halting certain military actionsThe US has maintained a firm stance and warned against delaysBoth sides remain cautious, reflecting deep geopolitical mistrust #USIranTalks#JDVance#Islamabad#PakistanMediating#Ceasefire#StraitOfHormuz#Sanctions#NuclearProgram#RegionalStability#GeopoliticalTensions#DiplomaticNegotiations#HighStakes