Sample code usable Tkinter listbox

rantingrick rantingrick at gmail.com
Mon Mar 1 04:10:27 CET 2010


On Feb 28, 6:30 pm, "Alf P. Steinbach" <al... at start.no> wrote:
> In case Someone Else(TM) may need this.
>
> This code is just how it currently looks, what I needed for my code, so it's not
> a full-fledged or even tested class.

Thanks for sharing Alf,
Thats works fine "as-is" but what about inheriting from "tk.Listbox"
directly and having the "container frame" as an attribute? I prefer
this API because I hate to write the laborious
"megawidget.mainwidget.methodX()" when i could instead write
"megawidget.methodX()". What is your opinion on this?



More information about the Python-list mailing list