[prev in list] [next in list] [prev in thread] [next in thread] 

List:       python-list
Subject:    tkinter question
From:       goldtech <goldtech () worldpost ! com>
Date:       2007-10-05 3:16:14
Message-ID: 1191554174.490449.251400 () 50g2000hsm ! googlegroups ! com
[Download RAW message or body]

This works OK. But I notice that if I enlarge the window after the
script has run, the white listbox only gets "so" big while the grey
background enlarges.

Is there a way to have it all white when I enlarge a window - like
what normally happens?



from Tkinter import *
root = Tk()
root.title("Dirty Words")
scrollbar = Scrollbar(root)
scrollbar.pack(side=RIGHT, fill=Y)
listbox = Listbox(root, bg='white', font = "Courier 16", width=60)
listbox.pack()
i='123456789abcdefghijklmnopqrstuvwxyz'
for x in range(10):
    listbox.insert(END, i)
listbox.config(yscrollcommand=scrollbar.set)
scrollbar.config(command=listbox.yview)
mainloop()

-- 
http://mail.python.org/mailman/listinfo/python-list
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic