
August 30th, 2003, 01:21 PM
|
 |
Contributing User
|
|
Join Date: Aug 2003
Posts: 67
Time spent in forums: 41 m
Reputation Power: 10
|
|
|
Scrollbar problem...
I am trying to attach a scollbar to a text field. This is the code I am using:
Code:
self.scrollbar = Scrollbar(master, orient=VERTICAL)
self.scrollbar.pack(side=RIGHT, fill=Y)
self.text = Text(master, height=5, width=20, state=DISABLED, yscrollcommand=self.scrollbar.set)
self.text.grid(row=2, column=1, rowspan=2)
self.scrollbar.config(command=self.text.yview)
When I run the program, the program freezes and I have to Ctrl-Alt-Delete put of it. What's wrong?
Thanks in advance.
__________________
Before you criticize someone, walk a mile in their shoes, that way when you do criticize them, you're a mile away and you have their shoes!
|