Disable buttons and get default colors

Hello!

Can anybody help me how th disable a button, so it is also 'visually'
disabled and doesn't respond on events?

Another question: Hos to get default system colors? Means: what color is
the default color of a panel on a system/theme, what system background
color has a visually disabled TextCtrl?

greets,
Marek

Marek Kubica a écrit :

Hello!

Can anybody help me how th disable a button, so it is also 'visually'
disabled and doesn't respond on events?

Another question: Hos to get default system colors? Means: what color is
the default color of a panel on a system/theme, what system background
color has a visually disabled TextCtrl?

greets,
Marek

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org

I hope this will help you !...

For the first question, I use :
thebutton.Disable()

Friendly.

···

--

Hugues JEAN-BAPTISTE (hjb@agorinfo.fr)
AGORINFO S.A.
1330, route de Neufchâtel
F-76230 QUINCAMPOIX
Tél : +33 (0) 2.32.80.87.87
Fax : +33 (0) 2.32.80.87.88
Site : http://www.agorinfo.fr

Marek Kubica wrote:

Hello!

Can anybody help me how th disable a button, so it is also 'visually'
disabled and doesn't respond on events?

Call its Disable method.

Another question: Hos to get default system colors? Means: what color is
the default color of a panel on a system/theme, what system background
color has a visually disabled TextCtrl?

See the docs for wxSystemSettings::GetColour. From wxPython it is accessible as wx.SystemSettings_GetColour since it is a static C++ method.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

I think Robin was taking a ride back into the past via the time machine. <wink> That should be wx.SystemSettings.GetColour.

ka

···

On May 13, 2004, at 12:09 PM, Robin Dunn wrote:

Marek Kubica wrote:

Hello!
Can anybody help me how th disable a button, so it is also 'visually'
disabled and doesn't respond on events?

Call its Disable method.

Another question: Hos to get default system colors? Means: what color is
the default color of a panel on a system/theme, what system background
color has a visually disabled TextCtrl?

See the docs for wxSystemSettings::GetColour. From wxPython it is accessible as wx.SystemSettings_GetColour since it is a static C++ method.

Kevin Altis wrote:

···

On May 13, 2004, at 12:09 PM, Robin Dunn wrote:

See the docs for wxSystemSettings::GetColour. From wxPython it is accessible as wx.SystemSettings_GetColour since it is a static C++ method.

I think Robin was taking a ride back into the past via the time machine. <wink> That should be wx.SystemSettings.GetColour.

Yep, although the version with the underscore still works.

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!