tkinter what do you use?

Eric Brunel eric_brunel at despammed.com
Fri Mar 2 11:32:02 EST 2007


On Fri, 02 Mar 2007 16:17:32 +0100, Gigs_ <gigs at hi.t-com.hr> wrote:

> list = Listbox()
> list.insert('end', x)
> list.insert(END, x)
>
>
> what do you use 'end' or END?

>>> from Tkinter import END
>>> END == 'end'
True

So this isn't really important... My personal usage varies: for your use  
case, I tend to use the symbolic constant (END); for sticky options in  
grids, I tend to use the strings ('nswe' is shorter than N+S+W+E, not to  
mention tk.N+tk.S+tk.W+tk.E).
-- 
python -c "print ''.join([chr(154 - ord(c)) for c in  
'U(17zX(%,5.zmz5(17l8(%,5.Z*(93-965$l7+-'])"



More information about the Python-list mailing list