Qt.py on conda-forge

Qt.py is now available on conda-forge! # Enable conda-forge conda config --add channels conda-forge # Create environment with Python 3.6, PySide2 and Qt.py conda create --mkdir --prefix ~/condaenvs/myenv python=3.6 pyside2 qt.py # Run Python ~/condaenvs/myenv/bin/python --version # Run pip ~/condaenvs/myenv/bin/pip --version

August 29, 2017 · 1 min

PySide2 easy install!

Yesterday, @jschueller added pyside2-feedstock to conda-forge. This means we can now finally install PySide2 easily in Python 2.7, 3.5 and 3.6 on Windows, Linux and macOS using conda. # Enable conda-forge conda config --add channels conda-forge # Install PySide2 conda install pyside2 And. It. Frickin’. Just. Works. Update 2018-03-09: The Qt Company now offers official and standalone wheels, read more here: 2018-03-09-official-pyside2-wheels Update 2018-07-17: PySide2 can now be installed from pypi....

August 28, 2017 · 2 min

An alternative to building PySide2 from source

I’ve received questions lately on the issues that people are having while attempting to build PySide2 on Windows, macOS and Linux. Instead of building PySide2, there’s actually a workaround which works just as well for some people… Update 2017-08-28: PySide2 can now be installed with conda: conda config --add channels conda-forge conda install pyside2 Update 2018-03-09: The Qt Company now offers official and standalone wheels, read more here: 2018-03-09-official-pyside2-wheels. A formal request to provide official PySide2 wheels Before we start, make sure to cast a friendly vote here to have The Qt Company (QtC) prioritize the development of official PySide2 wheels....

June 30, 2017 · 5 min

Vendoring Qt.py

How do you know a user doesn’t have the wrong version of Qt.py when running your application? – Simple, you bundle Qt.py with your application. Here’s a short write-up on how you could go about doing just that. What’s “vendoring”? Bundling a third-party application with your own application is sometimes referred to as “vendoring”. By vendoring, you explicitly control which version of a dependency is being used with your application. Since there are numerous versions of Qt....

May 4, 2017 · 4 min
Maya showing an import error in the script editor

Dealing with Maya 2017 and PySide2

Maya 2017 was released today and with it comes a big change; PySide (and PyQt4) no longer works with Maya. This guide explains how to deal with that and make your Python and PySide/PyQt scripts compatible with Maya 2017 as well as older Maya versions. This guide is also applicable to e.g. Nuke or any other Python-enabled DCC app which uses Qt. Background (Qt4 vs Qt5) Starting with Maya 2011, Maya’s user interface is built using the Qt toolkit....

July 25, 2016 · 5 min

Developing with Qt.py

This post aims to give an introduction to the Qt.py project and how to get set up with it for PySide/PyQt4 and PySide2/PyQt5 development. Contents What is Qt.py How does it work? Installing Qt.py Caveats Contributing Closing comments What is Qt.py? Qt.py is a Minimal Python 2 & 3 shim around all Qt bindings - PySide, PySide2, PyQt4 and PyQt5 – which enables you to write software that dynamically chooses the most desireable bindings based on what’s available....

July 25, 2016 · 6 min

Installing Qt.py (advanced methods)

Qt.py can be installed in many ways, depending on your needs. This post aims to outline some common approaches: Install using pip Install into an application’s custom Python build Vendoring Make Qt.py available using sys.path and site.addsitedir Install using pip The probably most common way to install Qt.py (and as mentioned in the project’s README) is to install via pip: pip install Qt.py Please note that it’s not recommended to “pip install” into your operating system’s default site-packages....

July 25, 2016 · 3 min

Compiling PyQt5 for Python 2.7 on OS X

This quick guide details compiling sip and PyQt5 on OS X 10.11 (El Capitan) using Homebrew for Qt5 installtion. In case you don’t have Homebrew installed: ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" Let’s start with installing the latest version of Python 2.x, Qt5, as well as wget using brew: brew install python qt5 wget While that is “brewing”, make sure you have Xcode installed (can be installed via the Mac App Store)....

November 25, 2015 · 2 min

File copy progress window with PyQt/PySide and shutil

I recently wanted to show the progress of a file copy made from a python script (or actually, from a python script running inside of Maya and Nuke). First I looked to piggyback on the OS native ways of copying a file, but oddly enough it turned out there was no way of showing a progress bar when doing this. So I turned to Python’s shutil and PySide (but PyQt would work just as well for this)....

May 12, 2015 · 3 min

A PySide/PyQt4 boilerplate for Maya, Nuke or standalone

Ever wanted to be able to run the same user interface in Maya, Nuke as well as completely standalone (with or without app-specific modifications) and on any platform, using PySide and/or PyQt? – That’s exactly why I created a boilerplate Python script, which could serve as a good starting point for most PySide/PyQt projects to be used in the VFX pipeline. As my experience is limited to some VFX applications, you are most welcome to fork or contribute to make it also run in other PyQt/PySide enabled applications....

October 6, 2013 · 1 min