very lightweight gui for win32 + python 3.4

Chris Angelico rosuav at gmail.com
Fri Sep 12 12:38:54 EDT 2014


On Sat, Sep 13, 2014 at 2:35 AM, Nagy László Zsolt <gandalf at shopzeus.com> wrote:
> So I need to create a GUI mode version of my program. That the customer
> should be able to see a progress bar. What kind of GUI toolkit should I use
> for this? I would like this to be lightweight, preferably under 5MB with a
> very easy API for simple things like create a dialog, put some labels and a
> progress bar on it, and finally close the dialog when the program is
> finished. (And of course, needs to work with cx Freeze.)
>
> I do not need a full featured cross platform GUI toolkit. What are my
> options?
>
> I have been looking at this:
>
> https://wiki.python.org/moin/GuiProgramming
>
> The only Windows specific lightweight frameworks are venster and Ocean but
> they have not been updated since ages. I know that I can do this using the
> win32 API, but I don't really want to learn how to build a dialog using
> win32 API calls and then process window message queues....  wxPython and Qt
> are well known but they are not exactly lightweight.

There's absolutely no reason to go Windows-specific. Use Tkinter -
it's pretty light-weight. Comes with most Python distros. See how it
goes in terms of code size - if it's unsuitable, then look at others,
but start with the obvious option.

ChrisA



More information about the Python-list mailing list