Newbie Tkinter problem...

Baltor member37516 at dbforums.com
Sat Aug 30 13:48:30 EDT 2003


I am trying to attach a scollbar to a text field. This is the code
I am using:



# Scroll Bar and Text Box

        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.


--
Posted via http://dbforums.com




More information about the Python-list mailing list