How can I change size of GUI?

Muddy Coder cosmo_general at
Tue Apr 7 00:29:41 CEST 2009

Hi Folks,

I copied code from book:

class ScrolledText(Frame):
	def __init__(self, parent=None, text='', file=None):
		Frame.__init__(self, parent)
		self.pack(expand=YES, fill=BOTH)
		self.settext(text, file)
	def makeWidgets(self):
		sbar = Scrollbar(self)
		text = Text(self, relief=SUNKEN, width=120)
		sbar.pack(side=RIGHT, fill=Y)
		text.pack(side=LEFT, expand=YES, fill=BOTH)
		self.text = text

It works, of course. But, the GUI is small, and I want to enlarge it.
I tried to add in options of width=120 for Text(), but it did not
work. Can somebody drop me a couple of lines for help? Thanks!

Muddy Coder

More information about the Python-list mailing list