Tkinter multilistbox in scrolledframe

dimitri pater dimitri.pater at gmail.com
Fri Apr 15 17:53:41 EDT 2005


Hello!

I recently included this very nice recipe for the multilistbox in my 
application:
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/52266

however, I can't seem to place it inti a scrolledframe, this is what I do:

/snip
self.frame1 = Pmw.ScrolledFrame(page,
labelpos = 'n',
label_text = 'Database',
vertflex="elastic")
self.frame1.pack(fill="both", expand=1)
/snip

/snip
columns = tuple([x[0:1] for x in fg.fields])
columns2 = tuple([x+(15,) for x in columns])

self.mlb = MultiLB.MultiListbox(self.frame1.interior(), columns2)

for i in range(len(fg.data)):
self.mlb.insert("end", fg.data[i])

self.mlb.pack(expand=1, fill="both") 
/snip

the horizontal scrollbar is displayed correctly, but the vertical scrollbar 
is only visible when you scroll to the far right side of the screen.
So, apparently it is added to the last listbox in stead of to the 
scrolledframe itself.

Any suggestions, anyone?
(btw, I also posted this to the tkinter mailing list but it bounced. Is this 
list inactive?)

Thanks!

Dimitri
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20050415/4d79505c/attachment.html>


More information about the Python-list mailing list