Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Albow and Ocemp are not being actively maintained. PGU is now being maintained by Peter Rogers, and Victor Kam has converted most of it to Python 3.</p> <p>There are 5 pygame GUI toolkits which I've tried to get running under Python 3: Albow, GooeyPy, PGU, pqGUI, and sgc. (I didn't get GooeyPy to work with Python 3, but the others did.)</p> <p>I ran each of them through a simple Lines-Of-Code counter <a href="http://code.activestate.com/recipes/527746-line-of-code-counter/" rel="nofollow">http://code.activestate.com/recipes/527746-line-of-code-counter/</a> to gauge their sizes:</p> <p>These are the results:</p> <pre><code>Albow code min=2810, max=4551 (max = 162% of min) Albow\demo min= 453, max= 649 GooeyPy\gooeypy min=2034, max=3941 (max = 194% of min) GooeyPy\examples min= 178, max= 351 pgu\pgu min=2910, max=7047 (max = 242% of min) incl. pgu\pgu\gui min=1678, max=4638 (max = 276% of min) pgu\examples min= 822, max=2527 pqGUI.py min=1586, max=1834 (max = 116% of min) Example.py min= 178, max= 225 sgc (incomplete) min= 889, max=1243 (max = 140% of min) </code></pre> <p>(I wanted to also try poutine, by Shandy Brown, but I couldn't find it.)</p> <p>In each case, the "min" number is more representative of the "size" of the toolkit, since it doesn't count whitespace and comments.</p> <p>When the "max" number is very close to the min number, it means that there's not much whitespace and not many comments in the code. pqGUI exemplifies that, because it has almost no comments at all, which is too bad, because (IMO) it makes the nicest-looking widgets.</p> <p>I liked pqGUI because I like the look of the widgets it makes, but it is unsupported and undocumented, and I can't find the author.</p> <p>Only two of the five are actively maintained/developed: PGU and sgc, and sgc is new and incomplete.</p> <p>That makes PGU the clear leader.</p> <p>Dave</p> <hr> <p>P.S. (10/23/2012) -- I've created a GUI toolkit of my own for PyGame. It is widget-based, and uses pygame events for communication, so that it can easily be dropped into an existing pygame program, without taking over the event loop. It supports forms, buttons, windows, modal &amp; non-modal message boxes &amp; dialog boxes, vertical menus, text-entry boxes, and sliders (scroll bars). It smoothly handles overlapping controls, and forms-within forms.</p> <p>However, it's not really complete: it lacks some controls you're likely to want, like file-open dialogs and tables. The controls that do exist look nice, but features like title-bars &amp; scroll bars are fixed numbers of pixels in width, rather than resizeable. The code is well-commented, and there's a demo app with usage examples, but there's no proper how-to-use documentation. And it's pre-beta, so everything is subject to change. </p> <p>If, in spite of those limitations, someone wants to try it out, then contact me by email. Ask about "DavesGUI." My email address is here: <a href="http://www.burtonsys.com/email/" rel="nofollow">http://www.burtonsys.com/email/</a></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload