@Marwa_OsmanLB · Post #3723 · 26.11.2024 г., 13:44
Ring of Fire made by Israel in #Beirut a few minutes ago. This could be you and you'd STILL be silent.
Hashtags
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
Пребарај: #beirut
@Marwa_OsmanLB · Post #3723 · 26.11.2024 г., 13:44
Ring of Fire made by Israel in #Beirut a few minutes ago. This could be you and you'd STILL be silent.
Hashtags
@Marwa_OsmanLB · Post #3713 · 24.11.2024 г., 11:23
Hezbollah missiles falling on Tel Aviv at 1:00 pm in retaliation to the massacres committed against Lebanese civilians in the heart of the Lebanese capital #Beirut.
Hashtags
@Marwa_OsmanLB · Post #3698 · 23.11.2024 г., 02:35
Footage from the massacre committed by the Zionist enemy on a building on Fathalla Street in the heart of the capital #Beirut Packed..i mean PACKED with residents and displaced people.
Hashtags
@Marwa_OsmanLB · Post #3696 · 23.11.2024 г., 02:10
A massacre...Israel just commit a massacre in the heart of the capital #Beirut. Just NOW. Fathallah street, Basta, Beirut. 4:00 am.
Hashtags
@Marwa_OsmanLB · Post #3695 · 22.11.2024 г., 22:38
It’s past midnight in #Beirut, and our "shelter" homes in the capital trembled as if there were no tomorrow—courtesy of the terrorist entity, Israel. Location: Chiyah area, Beirut, Lebanon.
Hashtags
@Marwa_OsmanLB · Post #3652 · 17.11.2024 г., 07:12
Under the world’s complicit silence, Israel continues to flatten clearly residential areas in #Beirut’s southern suburbs. These aren’t military targets. They’re homes. Lives. Futures. This is no accident; it’s a calculated erasure, making sure families have nothing to return to, even if the war ends. This was at 8:00 am today.
Hashtags
@Marwa_OsmanLB · Post #3635 · 13.11.2024 г., 09:59
Zionist Israel again today targets civilians residential areas in Ghobeiry, southern suburbs of #Beirut Terrorism is the daily bread of Israel.
Hashtags
@Marwa_OsmanLB · Post #3601 · 09.11.2024 г., 07:42
Another night of terror unfolded in #Beirut as Lebanese civilians endured relentless attacks, targeted by vile Zionist tereorists wielding U.S.-made weapons.
Hashtags
@Marwa_OsmanLB · Post #3442 · 11.10.2024 г., 05:09
Qassem writes about saving this baby in last night's attack by Zionist Israel on the central #Beirut: "This child was lying right here, on the remaining piece of the ceiling. When I reached him, I couldn't believe he could still be alive. But when I saw his eyes looking up at me, and how he grabbed onto me, completely in shock, I didn't know what to feel. This child will grow up, and with him, so will the hatred for this savage entity."
Hashtags
@Marwa_OsmanLB · Post #3354 · 27.09.2024 г., 20:32
Terrorist Israel issued a warning to evacuate certain areas in #Beirut suburbs. Who will issue a warning for their illegal colonial settlers to RUN?
Hashtags
@Marwa_OsmanLB · Post #3352 · 27.09.2024 г., 16:41
The scene from the heart of the intense Zionist terrorist aggression on #Beirut's southern suburbs on Friday September 27, 2024.
Hashtags
@Marwa_OsmanLB · Post #3313 · 22.09.2024 г., 15:39
The death toll from the Zionist aggression on the southern suburbs of #Beirut has risen to 51, following the recovery of another martyr's body. Ten people are still missing as search and rescue operations continue. Toll provided on 6:30 pm Beirut local time.
Hashtags