Re: Sample code usable Tkinter listbox

2010-03-06 Thread rantingrick
Opps: found a few errors in that last ScrolledListbox class, try this one... import Tkinter as tk from Tkconstants import * class ScrolledList(tk.Listbox): def __init__(self, master, **kw): self.frame = tk.Frame(master) self.frame.rowconfigure(0, weight=1) self.frame

Re: Sample code usable Tkinter listbox

2010-03-03 Thread Alf P. Steinbach
* Alf P. Steinbach: 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. But it works. That code evolved a little to cover more Tk listbox quirks (thanks to Ratingrick for the "actives

Re: Sample code usable Tkinter listbox

2010-03-01 Thread rantingrick
On Mar 1, 6:19 am, "Alf P. Steinbach" wrote: > >         kw.setdefault('activestyle', 'none') > > Hm, let me steal this line... Thanks! Yes! the default activestyle is quite annoying! -- http://mail.python.org/mailman/listinfo/python-list

Re: Sample code usable Tkinter listbox

2010-03-01 Thread Alf P. Steinbach
* rantingrick: kw.setdefault('activestyle', 'none') Hm, let me steal this line... Thanks! Cheers, - Alf -- http://mail.python.org/mailman/listinfo/python-list

Re: Sample code usable Tkinter listbox

2010-02-28 Thread rantingrick
On Feb 28, 9:57 pm, "Alf P. Steinbach" wrote: > * rantingrick: I just hate overriding all the paths to each listbox method. How about just overideing the Listboxe's geomerty methods once an your done? #-- start script --# import Tkinter as tk from Tkconstants import * import tkMessageBox as MB

Re: Sample code usable Tkinter listbox

2010-02-28 Thread Alf P. Steinbach
* rantingrick: On Feb 28, 6:30 pm, "Alf P. Steinbach" 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 inheritin

Re: Sample code usable Tkinter listbox

2010-02-28 Thread rantingrick
On Feb 28, 6:30 pm, "Alf P. Steinbach" 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 "t

Sample code usable Tkinter listbox

2010-02-28 Thread Alf P. Steinbach
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. But it works. import tkinter as t import tkinter.simpledialog import tkinter.messagebox t.askstring = tkinter.simpledialog.askstr