Re: Making a Label that looks the same as a button.

2006-06-13 Thread Dustan
Cameron Laird wrote: > In article <[EMAIL PROTECTED]>, > Grayson, John <[EMAIL PROTECTED]> wrote: > > > > > > > >Buttons can look like labels without the need to create another object - > >just remove the > >Command binding, set state to DISABLED and disabledforeground='same > >color as NORMAL'...

Re: Making a Label that looks the same as a button.

2006-06-13 Thread Fredrik Lundh
Andrew Gwozdziewycz wrote: > It's imperative that you explain which toolkit you are using since > they all have differences. however, if you knew the answer, you would have recognized what toolkit he was using. -- http://mail.python.org/mailman/listinfo/python-list

Re: Making a Label that looks the same as a button.

2006-06-13 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Grayson, John <[EMAIL PROTECTED]> wrote: > > > >Buttons can look like labels without the need to create another object - >just remove the >Command binding, set state to DISABLED and disabledforeground='same >color as NORMAL'... > >This demonstrates how to play with

RE: Making a Label that looks the same as a button.

2006-06-13 Thread Grayson, John
Buttons can look like labels without the need to create another object - just remove the Command binding, set state to DISABLED and disabledforeground='same color as NORMAL'... This demonstrates how to play with button styles: import Tkinter as tk class GUI: def __init__(self): s

Re: Making a Label that looks the same as a button.

2006-06-13 Thread Andrew Gwozdziewycz
It's imperative that you explain which toolkit you are using since they all have differences. On Jun 13, 2006, at 9:14 AM, Dustan wrote: > I have a Button object that gets replaced by a Label when clicked. > > Button(buttonsframe,text=' ',command=c,font=buttonsFont) > Note that the text is a si

Re: Making a Label that looks the same as a button.

2006-06-13 Thread Eric Brunel
On 13 Jun 2006 06:14:03 -0700, Dustan <[EMAIL PROTECTED]> wrote: > I have a Button object that gets replaced by a Label when clicked. > > Button(buttonsframe,text=' ',command=c,font=buttonsFont) > Note that the text is a single space. buttonsFont uses 'Courier New' as > a family. > > When clicked,