Simple Tk8 Problems

Carel Fellinger cfelling at iae.nl
Sun Jul 11 15:53:33 EDT 1999


Nick Bower <nick.bower at ssec.wisc.edu> wrote:

> 1.  I can't control the size of the Tk root window.  I've tried putting
> ".width=xxx" statements everywhere in the following snippet, but nothing
> seems to work.  (The FileList is a ListBox next to a scrollbar).  Is
> there something I'm missing?.

try to add something like

      self.filelist.config(width=10,heigth=12)

this turns the filelist widget into a 10 chars wide and 12 lines high blob.


> 2. Also, the Listbox in the above code is scrolling all over the place
> tracking the mouse movement as it runs across the top of it.  I don't
> even need to touch the scrollbar and it seems to track mouse movement so
> somehow it's been bound to the mouse as well as the scroll bar.  Weird.

for what it's worth, the snippet you posted behaves as it should, on
my machine atleast.

-- 
groetjes, carel




More information about the Python-list mailing list