Creating a Text widget in a Dialog (Tkinter)
Greg Ewing
see_reply_address at something.invalid
Mon Sep 9 00:30:22 EDT 2002
Aki Niimura wrote:
> def body(self, master):
> self.usage = Text(master, height=26, width=80)
> self.grid = Frame(master)
> self.yscroll = Scrollbar(master, command=self.usage.yview)
> self.xscroll = Scrollbar(master, orient=HORIZONTAL,
The Frame should be the parent of the other
three widgets:
self.grid = Frame(master)
self.usage = Text(self.grid, height=26, width=80)
self.yscroll = Scrollbar(self.grid, command=self.usage.yview)
self.xscroll = Scrollbar(self.grid, orient=HORIZONTAL,
--
Greg Ewing, Computer Science Dept,
University of Canterbury,
Christchurch, New Zealand
http://www.cosc.canterbury.ac.nz/~greg
More information about the Python-list
mailing list