Python GUIs

Working with Python in a scripting environment where Python is already installed is pretty straight forward. OSX comes already installed with Python and it’s fairly easy to find installs in either apt-get repositories on debian-based Linux machines or by simply installing Active Python on Windows. There are essentially two standard releases of Python 2.7.2 and 3.2.2. Python has a very slow refresh cycle and 2.7.2 is usually a version that has very good support with additional libraries and packages.

For GUIs there are several options. I’ve been working with wxPython which tries to utilize native OS widgets to render and draw windows. Layouts are done with various flow layouts–as opposed to absolute grids. There are a number of WYSIWYG editors to help put forms together such as wxglade, but I’ve been most recently using wxFormBuilder.

The traditional ways of compiling python scripts for distribution usually involve the likes of py2exe or py2app. I’ve found that these projects have not be updated in a considerable amount of time–therefore newer packages that tend to break during or during runtime. There is a handy tool called GUI2exe now a google code project which can help to make py2exe’s setup.py file or even compile for OSX. This tool has been absolutely invaluable for providing a quick and easy decode process for py2exe’s compiler configuration files and significantly improves the entire python executable compiling process.

Tags: , , , ,

Comments are closed.

Search

Websites

  • slide
  • slide
  • slide
  • slide