>> 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,
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
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
>> 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
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
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