New to wxPython, just a simple question.

I'm trying to create a sudoku solving program with wxPython, and I
like the look of the buttons when they are disabled more so than
enabled for this program, but I still need to capture events from the
button. So is there a way to change the look of a button without
actually disabling it?

···

--
To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com
or visit http://groups.google.com/group/wxPython-users?hl=en

Kevin wrote:

I'm trying to create a sudoku solving program with wxPython,

See what you think of this. I put it together for fun a while back.

license: do with it what you will.

-Chris

  and I

sudoku-chb.py (9.87 KB)

···

like the look of the buttons when they are disabled more so than
enabled for this program, but I still need to capture events from the
button. So is there a way to change the look of a button without
actually disabling it?

--
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@noaa.gov

--
To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com
or visit http://groups.google.com/group/wxPython-users?hl=en

Okay thanks for the replies and that code! I think taking a screenshot
of a disabled button and then placing that on a bitmap button is the
way to go.

···

On Apr 23, 3:34 pm, Christopher Barker <Chris.Bar...@noaa.gov> wrote:

Kevin wrote:
> I'm trying to create a sudoku solving program with wxPython,

See what you think of this. I put it together for fun a while back.

license: do with it what you will.

-Chris

and I

> like the look of the buttons when they are disabled more so than
> enabled for this program, but I still need to capture events from the
> button. So is there a way to change the look of a button without
> actually disabling it?

--
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Bar...@noaa.gov

--
To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com
or visithttp://groups.google.com/group/wxPython-users?hl=en

sudoku-chb.py
13KViewDownload

--
To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com
or visit http://groups.google.com/group/wxPython-users?hl=en

Although you are of course free to create your GUI any way you want, if you are thinking of distributing your app to others, I would think a button that ought to be pressed but looks like it is disabled is not a good choice–although I guess not as bad as a button that cannot be pressed but looks like it is enabled :smiley:

Che

···

On Fri, Apr 23, 2010 at 4:11 PM, Kevin krb686@gmail.com wrote:

Okay thanks for the replies and that code! I think taking a screenshot

of a disabled button and then placing that on a bitmap button is the

way to go.

To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com

or visit http://groups.google.com/group/wxPython-users?hl=en