SV: SV: Changing the size of a Button

2008-03-09 Thread K Viltersten
>> 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 is done by the layout manager, too: > > import Tkinter as tk > > root = tk.Tk() > button = tk.Button(root, text="42") > button.pack(fill=tk.BOTH,

Re: SV: Changing the size of a Button

2008-03-09 Thread Peter Otten
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 is done by the layout manager, too: import Tkinter as tk root = tk.Tk() button = tk.Button(root, text="42") button.pack(fill=tk.BOT

Re: SV: Changing the size of a Button

2008-03-09 Thread Marc 'BlackJack' Rintsch
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

SV: Changing the size of a Button

2008-03-09 Thread K Viltersten
>> How do i change the size of a Button >> (using Tkinter), other than to set it >> during construction? > In Tkinter, usually the geometry managers > (such as pack) are the ones who size the > widgets. If you run something like: >import Tkinter as tk > >root = tk.Tk() >def change_si

Re: Changing the size of a Button

2008-03-09 Thread Miki
Hello Konrad, > How do i change the size of a Button > (using Tkinter), other than to set it > during construction? In Tkinter, usually the geometry managers (such as pack) are the ones who size the widgets. If you run something like: import Tkinter as tk root = tk.Tk() def change_siz

Changing the size of a Button

2008-03-09 Thread K Viltersten
How do i change the size of a Button (using Tkinter), other than to set it during construction? I've found methods for getting the size but not applying them. I've been laborating with .setvar(*) but i've been unsuccessful. -- Regards Konrad Viltersten sleep