tkinter what do you use?

Eric Brunel eric_brunel at
Fri Mar 2 17:32:02 CET 2007

On Fri, 02 Mar 2007 16:17:32 +0100, Gigs_ <gigs at> wrote:

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

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

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  

More information about the Python-list mailing list