Tkinter : resizing Text widget with main window

Rick Pasotto rickp at telocity.com
Mon Mar 19 23:07:34 EST 2001


On Thu, 15 Mar 2001 19:38:12 GMT in comp.lang.python, Erik de Castro Lopo wrote:
> Hi all,
> 
> How does one force a Tkinter.Text widget to be resized whenever 
> the main window is resized?

t=Text(width=30,height=12) # sets the initial size
t.pack(expand=1,fill='both')

-- 
"So long as the power-seekers clung to the basic premises of the
welfare state, holding need as the criterion of rewards, logic forced
them, step by step, to champion the interests of the less & less
productive... until they reached the ultimate dead end of turning from
the role of champions of 'honest toil' to the role of champions of
open parasitism, parasitism on principle, parasitism as a 'right'."
		-- Ayn Rand "A PreView" _The Ayn Rand Letter_
		   Rick Pasotto email: rickp at telocity.com



More information about the Python-list mailing list