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 слични објави

Пребарај: #drought

当前筛选 #drought清除筛选
Red Nile

@rednile12 · Post #10814 · 20.01.2026 г., 13:25

በ2020ው የዋሽንግተን ረቂቅ የስምምነት ሰነድ አሜሪካ እና ግብፅ እንደ ወጥመድ የተጠቀሙት "DROUGHT" እና "WATER FLOW" ዋሽንግተን ላይ ተደርጎ በነበረው ድርድር የአየር ሁኔታን ተገን አድርገው ግብፅ እና አሜሪካ "Historic Right" የሚለውን የግብፅን የቅኝ ግዛት ትሪክት " #DROUGHT" የሚል ካባ አልብሰው በ2020ው የዋሽንግተን ረቂቅ የስምምነት ሰነድ ውስጥ እንደት እንዳስገቡ እንመልከት ወደ ዋሽግተኑ ረቂቅ የስምምነት ሰነድ ከመሄዳችን በፊት ትራምፕ ጃንዋሪ 16፣ 2026 ላይ “በድርቅ እና ለረጅም ጊዜ ደረቅ ዓመታት ለግብፅ እና ለሱዳን የሚለቀቁ የውሃ ልቀት ሊተነብይ የሚችል ይሆናል” ብሎ ለፍሬንዱ አል ሲሲ የላከውን መልዕክት ስንመረምር መልዕክቱ የተቀዳችው ከረቂቅ ሰነዱ ይሆን🤔? የሚል ጥርጣሬም ያጭራል:: ጥርጣሬውን እንደጥርጣሬ ይዘን👇 በ2020 የዋሽንግተን ረቂቅ ሰነድ ውስጥ የሰፈሩት “ድርቅ” እና “ረዥም ጊዜ ደረቅ ዓመታት” ለሚሉ አባባሎች፤ ኢትዮጵያ አባባሎቹ አደገኛ ወጥመድ ናቸውና ከትርጓሜያቸው ጀምሮ መስተካከል አለባቸው ስትል ተከራክራለች:: 🔻Continued Below @rednile12

Hashtags

Addis Standard

@addisstandardeng · Post #21904 · 01.04.2026 г., 13:07

‘Sharing is off the table’ as #drought reshapes the lives of #Ethiopia’s pastoralists Pastoralists in Ethiopia’s #Somali region say that worsening drought is eroding traditional systems of sharing that once helped communities survive. Historically, Somali pastoralists survived drought through strong social networks. These Indigenous climate adaptations were built on an intricate system of mutual aid. One of the most important systems is known as Gergar, a form of social insurance in which families who lose livestock receive animals from relatives and neighbors to help rebuild their herds. “When people used to lose livestock, others would help them,” says Mohamed Abdi, a lifelong pastoralism advocate and director at Jijiga University’s Institute of Pastoral and Agro-Pastoral Development Studies. “We would move to relatives or sub clan areas, and they shared water and pasture with us.” https://news.mongabay.com/2026/04/sharing-is-off-the-table-as-drought-reshapes-the-lives-of-ethiopias-pastoralists/

Addis Standard

@addisstandardeng · Post #21345 · 09.02.2026 г., 06:51

'Our children are next' fear #Kenyans as #drought wipes out livestock In drought-hit northeastern Kenya, villagers have been forced to drag their dead livestock to distant fields for burning to keep the stench of death and scavenging hyenas away from their homes. Mandera county along Kenya's borders with Ethiopia and Somalia has seen no rain since May and is now on the point of a full-blown water emergency. "I have lost all my cows and goats, and burned them here," Bishar Maalim Mohammed, 60, a resident of Tawakal village, told AFP. In his village, where most are pastoralists relying heavily on their animals, the only remaining bull can no longer stand. He has lain in the same spot for nearly a week, severely dehydrated with bones protruding through his skin, as his owner watches helplessly. https://addisstandard.com/?p=55089

Interesting Planet 🌍

@interesting_planet_facts · Post #492 · 03.08.2025 г., 16:22

🌎 The Madagascan baobab, sometimes called the “upside-down tree,” stores thousands of liters of water in its massive trunk, allowing survival through severe drought. This clever reservoir keeps it lush while nearby plants wilt. ✨ #Madagascar⚡#baobab⚡#drought 👉subscribe Interesting Planet

Reuters: World

@reutersworldchannel · Post #149409 · 15.10.2021 г., 14:23

Northern Kenya drought pushes millions to hunger The lack of rain in northern Kenya means 2.4 million people in the region will struggle to find enough to eat by November, the United Nations World Food Programme says. #News#Reuters#Kenya#drought#food#environment Subscribe: http://smarturl.it/reuterssubscribe Reuters brings you the latest business, finance and breaking news video from around the globe. Our reputation for accuracy and impartiality is unparalleled. Get the latest news on: http://reuters.com/ Follow Reuters on Facebook: https://www.facebook.com/Reuters Follow Reuters on Twitter: https://twitter.com/Reuters Follow Reuters on Instagram: https://www.instagram.com/reuters/?hl=en ➖@reutersworldchannel➖

Reuters: World

@reutersworldchannel · Post #149225 · 11.10.2021 г., 17:07

U.N. warns of Madagascar 'climate change famine' Madagascar produces less than 0.01% of global carbon dioxide emissions, but amid a fourth year of drought in the Grand Sud region, the U.N. is warning of a 'climate change famine'. #Madagascar#UN#UnitedNations#ClimateChange#ClimateChangeFamine#GrandSudRegion#Drought#News#Reuters Subscribe: http://smarturl.it/reuterssubscribe Reuters brings you the latest business, finance and breaking news video from around the globe. Our reputation for accuracy and impartiality is unparalleled. Get the latest news on: http://reuters.com/ Follow Reuters on Facebook: https://www.facebook.com/Reuters Follow Reuters on Twitter: https://twitter.com/Reuters Follow Reuters on Instagram: https://www.instagram.com/reuters/?hl=en ➖@reutersworldchannel➖