What does Guido want in a GUI toolkit for Python?

Nobody nobody at nowhere.com
Sun Jun 28 03:51:07 EDT 2009


On Sat, 27 Jun 2009 17:17:22 -0700, Dennis Lee Bieber wrote:

>> His concern really isn't what is in the toolkit, but what isn't.
>> It must not require lots of lines of code to produce a simple
>> GUI, it must not require specification of absolute coordinates,
>> ... - you should be able to continue the list yourself.
>>
> 
> 	Sounds a bit like a return of DECWindows on Xt... Which had a
> textual design language to define the widgets in use, names for
> callbacks, etc. and only required the application to load the file and
> map the callbacks to actual code...
> 
> 	You could change the layout without touching the application code
> (as long as you weren't adding new widgets)

Xt itself provides some of that, the rest can be had through UIL (which is
part of Motif). GTK+ can do much of this using Glade.

The concept of separating code from data is sensible enough, and mirrors
the concept of stylesheets in HTML. It shouldn't be necessary to specify
size, position, labels, colours and the like via code. Code only needs to
be able to get a handle on a specific widget so that it can read and write
its state, dynamically register callbacks, etc.




More information about the Python-list mailing list