Resizing widgets (1)

Example: display a file in a text widget
root = Tk()            
top = Frame(root); top.pack(side='top')
text = Pmw.ScrolledText(top, ...
text.pack()
# insert file as a string in the text widget:
text.insert('end', open(filename,'r').read())
Problem: the text widget is not resized when the main window is resized

previousnexttable of contents