views:

14

answers:

0

Looking for a way to have the native Windows progressbar implemented via EasyDialogs or Python Win32's progressbar.py example use the operating systems theme support so that the progressbar shows a modern user interface vs. something that's a throwback to Windows 95.

I've tried compiling both these techniques as py2exe executables with custom manifest files that should be activating support for common-controls. Either I'm defining or adding the manifest wrong or the progressbar techniques used by these code samples are incompatible with theme support.

Any suggestions?

Additional background:

We have some command line Python utilities (Python 2.7/32-bit/Windows) that we would like to add native Windows progressbars to. These command line utilities are often called by other GUI applications so we would like to use a Windows GUI component to display these progressbars (similar to how one might use the Windows API to display a messagebox). (We just need a progressbar so we want to avoid a full GUI framework like wxPython, pyQt or Tkinter)

Thanks to feedback on the python-list mailing list, I've found two ways to show a native Windows progressbar from a command line application:

  1. EasyDialogs http://www.averdevelopment.com/python/EasyDialogs.html

  2. The progressbar.py demo installed with the PyWin32 library (pythonwin) http://sourceforge.net/projects/pywin32/files/pywin32/

Both of these libraries show a native Windows progressbar ... BUT ... the progressbars look like they came with Windows 95. We would like to find a way to have one of these libraries display its progressbar with theme support so that it matches the progressbar one would expect on XP or Windows 7.

I've tried creating a mini Py2exe project with a manifest that includes common-control references in an attempt to get theme support, but this has not worked.