[PyQt] Porting PyQt GUI between platforms.

Juan Manuel Santos vicariousdm at gmail.com
Tue Aug 3 05:25:46 BST 2010


From: Algis Kabaila <akabaila at pcug.org.au>
To: pyqt at riverbankcomputing.com, vicariousdm at gmail.com
Date: Tuesday 03 August 2010
> Hi Juan,
> 
> I've tried your first suggestion and just took the script and the gui to a
> windows box and ran the python starting script. It just worked!
> 
> I am thrilled and astonished - never thought it could be that easy!
> 

It doesn't get any more cross-platform than Python ;)

> Of course, it is only a small script - my old box had QT 4.3.x, with the
> designer and the rest of the tools. I wonder what is the minimum Qt
> installation required to run small scripts with gui?
> 

Technically speaking, as long as you have Python, Qt-4.x ("x" will be defined 
by the newest Qt class/module/function that you'll be using from your code), 
and an accompanying PyQt4, you should be set. Of course, this is as long as 
you use only Python modules which are available on both platforms (e.g, using 
any GNOME-related Python package will render your code unexecutable on Windows 
IIRC).

> I do have a VM (Virtual Machine) with Win2000 on my PC, so will use it to
> find out what Qt installation will allow the script to run there.  I have
> not tried the py2exe, but will do so RSN.
> 
> Thank you for your reply and pointing me in the right direction.
> Gratefully,
> 
> OldAl.

This is one of the resources I used when I first ported PyGTK programs to 
Windows: http://www.py2exe.org/index.cgi/Py2exeAndPyGTK hope it's useful.

Glad to see it worked for you :)

Cheers
Juan Manuel


More information about the PyQt mailing list