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
John Grayson -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dustan Sent: Tuesday, June 13, 2006 9:14 AM To: python-list@python.org Subject: Making a Label that looks the same as a button. I have a Button object that gets replaced by a Label when click

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,

Making a Label that looks the same as a button.

2006-06-13 Thread Dustan
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, the Button is destroyed and replaced with a Label object: Label(buttonsframe,