SV: Changing the size of a Button

Marc 'BlackJack' Rintsch bj_666 at gmx.net
Sun Mar 9 14:59:10 EDT 2008


On Sun, 09 Mar 2008 19:45:58 +0100, K Viltersten wrote:

> What i wish to do is to affect the size 
> of the button but not due to change of 
> text but due to resize of the frame it
> resides in.
> 
> This far i've managed to get a callback 
> to a function as the resize occurs and to
> print the sizes. However, i'd like to 
> assign these values to the button so it 
> always stays the same width as the frame.

Don't do it yourself, pack with the `fill` argument set to `Tkinter.X`.

Ciao,
	Marc 'BlackJack' Rintsch



More information about the Python-list mailing list