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

Резултати

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

Пребарај: #gnome

当前筛选 #gnome清除筛选
Linuxgram 🐧

@linuxgram · Post #18481 · 18.04.2026 г., 13:42

📰GNOME's Maps, Graphs, RustConn & Other App Improvements For pairing nicely with the GNOME 50 desktop release last month, a number of GNOME-associated apps have been seeing new features and refinements... 🔗 Source: https://www.phoronix.com/news/GNOME-Graphs-2.0-Maps-Transit #gnome

Hashtags

Linuxgram 🐧

@linuxgram · Post #18443 · 15.04.2026 г., 10:31

📰 GNOME 50.1 Released with Basic Zoom Support for the Captive Portal GNOME 50.1 is now available as the first point release to the GNOME 50 desktop environment series with various bug fixes and improvements across several core components and default apps. 🔗 Source: https://9to5linux.com/gnome-50-1-released-with-basic-zoom-support-for-the-captive-portal #gnome

Hashtags

Linuxgram 🐧

@linuxgram · Post #18407 · 13.04.2026 г., 10:37

📰Quick Lofi – a GNOME extension for chill beats to study to Quick Lofi is a GNOME Shell extension that puts a lofi radio player in your top bar. If you’ve ever opened a new browser tab to load a “lofi beats to study to” stream on YouTube — lofi girl, perhaps – to act as an ambient backdrop to work to, the appeal will be evident. If not, all you need to know is that mellow, lyric-free, low-tempo sounds are reputedly ideal for focus. 🔗 Source: https://www.omgubuntu.co.uk/2026/04/quick-lofi-beats-gnome-extension #gnome

Hashtags

Linuxgram 🐧

@linuxgram · Post #18391 · 11.04.2026 г., 14:30

📰 GNOME-Aligned Amberol 2026.1 Music Player Released, Phosh Improves X11 Support A few weeks past the GNOME 50 release and there continues to be a lot of ongoing GNOME app activity worth highlighting... 🔗 Source: https://www.phoronix.com/news/GNOME-Amberol-2026.1 #gnome

Hashtags

Linuxgram 🐧

@linuxgram · Post #18361 · 09.04.2026 г., 07:49

📰Dynamic Music Pill brings lyrics to your GNOME desktop A clutch of new features are available in Dynamic Music Pill, the slick now playing and media controller extension for GNOME Shell. The “big” new addition is lyrics support. When you listen to a track with synced lyrics in a compatible player, you can view those lyrics by opening the applet controller and clicking on the album art inside of it: The lyrics are shown in a freely scrollable widget, with the active line bolder in white for more... 🔗 Source: https://www.omgubuntu.co.uk/2026/04/lyrics-feature-dynamic-music-pill-extension #gnome

Hashtags

Linuxgram 🐧

@linuxgram · Post #18241 · 30.03.2026 г., 09:20

📰 GNOME 51 “A Coruña” Desktop Environment Scheduled for September 16th, 2026 The development cycle of the upcoming GNOME 51 “A Coruña” desktop environment kicks off with a draft release schedule suggesting the final release is expected later this year on September 16th, 2026. 🔗 Source: https://9to5linux.com/gnome-51-a-coruna-desktop-environment-scheduled-for-september-16th-2026 #gnome

Hashtags

Linuxgram 🐧

@linuxgram · Post #18193 · 26.03.2026 г., 10:43

📰 Tails 7.6 Introduces Automatic Tor Bridges to Bypass Censorship Tails 7.6 adds built-in Tor bridge support for restricted networks and switches to GNOME Secrets as the default password manager. 🔗 Source: https://linuxiac.com/tails-7-6-introduces-automatic-tor-bridges-to-bypass-censorship/ #gnome

Hashtags

Linuxgram 🐧

@linuxgram · Post #18123 · 20.03.2026 г., 14:41

📰GNOME 50 “Tokyo” Desktop Environment Officially Released, This Is What’s New GNOME 50 desktop environment is now available as a major release that introduces numerous new features and improvements. Here’s what’s new! 🔗 Source: https://9to5linux.com/gnome-50-tokyo-desktop-environment-officially-released-this-is-whats-new #gnome

Hashtags

Linuxgram 🐧

@linuxgram · Post #17957 · 03.03.2026 г., 23:10

📰 Pop!_OS 22.04 LTS Users Can Now Officially Upgrade to Pop!_OS 24.04 LTS System76 begins the official upgrade rollout from Pop!_OS 22.04 LTS to 24.04 LTS, replacing GNOME with the new COSMIC desktop environment. 🔗 Source: https://linuxiac.com/pop_os-22-04-lts-users-can-now-officially-upgrade-to-pop_os-24-04-lts/ #gnome

Hashtags

Linuxgram 🐧

@linuxgram · Post #17926 · 28.02.2026 г., 13:05

📰 GNOME GitLab Redirecting Some Git Traffic To GitHub For Reducing Costs If you are cloning from a GNOME repository on their GitLab and now finding your Git traffic being redirected to GitHub, you are not alone. GNOME's infrastructure team is now redirecting Git traffic from the GNOME.org GitLab over to GitHub mirrors for reducing bandwidth costs... 🔗 Source: https://www.phoronix.com/news/GNOME-GitHub-GitLab-Redirect #gnome

Hashtags

Linuxgram 🐧

@linuxgram · Post #17895 · 25.02.2026 г., 21:01

📰 GTK 4.22 In Good Shape With Better SVG Support Matthias Clasen shared an update today concerning the state of Scalable Vector Graphics (SVG) within GNOME's GTK toolkit... 🔗 Source: https://www.phoronix.com/news/GTK-4.22-SVG-2026 #gnome

Hashtags

Linuxgram 🐧

@linuxgram · Post #17892 · 25.02.2026 г., 08:57

📰 Dynamic Music Pill puts slick media controls in your GNOME panel Dynamic Music Pill is a GNOME Shell extension that embeds a pill-shaped media controller into your desktop panel or dock. It shows album art, artist name and track title alongside an animated waveform visualiser. If that sounds unashamedly blingy, it’s because it is – nothing wrong in that, right? The extension received an update today, which seem a good hook to actually take this off my “to write about” list. 🔗 Source: https://www.omgubuntu.co.uk/2026/02/dynamic-music-pill-gnome-panel-media-controller #gnome

Hashtags

ПретходнаСтраница 1 од 5Следна