Hi,
Iam using Python 2.5 and developing an application using Tkinter.
I want a listbox with scrollbar. I tried to combine both
but it gets filled in the entire screen.
Here is the code..
frm=Frame(root, height=400,widt h=400)
frm.pack()
scrollbar1=Scro llbar(frm)
scrollbar2=Scro llbar(frm)
scrollbar1.pack (side=RIGHT,fil l=Y)
scrollbar2.pack (side=BOTTOM,fi ll=X)
listbox=Listbox (frm,width=400, height=400)
listbox.pack()
listbox.config( yscrollcommand= scrollbar1.set)
scrollbar1.conf ig(command=list box.yview)
listbox.config( xscrollcommand= scrollbar2.set)
scrollbar2.conf ig(command=list box.xview)
How to position this scrollbar in a particular
position??Also is there any table widget
in Tkinter that i can use in windows. I think tktable widget
works only for linux..
Pls help
Iam using Python 2.5 and developing an application using Tkinter.
I want a listbox with scrollbar. I tried to combine both
but it gets filled in the entire screen.
Here is the code..
frm=Frame(root, height=400,widt h=400)
frm.pack()
scrollbar1=Scro llbar(frm)
scrollbar2=Scro llbar(frm)
scrollbar1.pack (side=RIGHT,fil l=Y)
scrollbar2.pack (side=BOTTOM,fi ll=X)
listbox=Listbox (frm,width=400, height=400)
listbox.pack()
listbox.config( yscrollcommand= scrollbar1.set)
scrollbar1.conf ig(command=list box.yview)
listbox.config( xscrollcommand= scrollbar2.set)
scrollbar2.conf ig(command=list box.xview)
How to position this scrollbar in a particular
position??Also is there any table widget
in Tkinter that i can use in windows. I think tktable widget
works only for linux..
Pls help
Comment