[Python-3000] GUI -- an API, not a toolkit
Greg Ewing
greg.ewing at canterbury.ac.nz
Thu May 11 03:25:08 CEST 2006
Giovanni Bajo wrote:
> Then, I'd like to have a name for 1,0,-1 instead of using the bare numbers (in
> case there are 4 buttons...).
There aren't any standard dialogs in PyGUI with 4 buttons,
so that problem doesn't arise. :-)
I could provide some names, Yes = 1, No = 0, etc. But
since you can override the titles of the buttons, these
names wouldn't always be correct.
> So, we're back to what Qt does: you're using
> magic numbers too.
But I've tried to choose easily-remembered magic numbers
with boolean compatibility. :-)
Wingardium-Leviosa-ly,
Greg
More information about the Python-3000
mailing list