Change button border...?

Hey all,
I’m attempting to create a GUI for a rubik’s cube solver, and I’m haaving a bit of trouble.

I need to change the border of a button once you hover over it (so that you actually know that it’s a button). I can’t quite figure out the function to set the style of the button.
Here’s my current source code: http://www.filecrunch.com/fileDownload.php?sub=0fbb79811d7ba202a15bd1c77a00733c&fileId=151343

The “self.caller.SetStyle(style=wx.NO_BORDER)” is the code causing an error, and I need to know what function to use to change the style.

Thanks for any help.

Note: I know that the border automatically pops up for the button when you hover over it in GNOME, but it won’t in windows…

Okay, tried that. It didn’t do anything, even after I took out the no border style.
Check the new file: http://www.filecrunch.com/fileDownload.php?sub=d4e6b136a9838eb3834222d519fa25c5&fileId=151355

···

On Tue, May 27, 2008 at 11:21 AM, raffaello barbarossa.platz@gmail.com wrote:

You could try using the controls in wx.lib.buttons instead of the current button. Then, with GenBitmapButton, the method SetBezelWidth(pixels=3) should yield the kind of border you need.
For further details look in Robin’s book, or ask.

2008/5/27 Trey K trey.wxpython@gmail.com:

Hey all,
I’m attempting to create a GUI for a rubik’s cube solver, and I’m haaving a bit of trouble.

I need to change the border of a button once you hover over it (so that you actually know that it’s a button). I can’t quite figure out the function to set the style of the button.

Here’s my current source code: http://www.filecrunch.com/fileDownload.php?sub=0fbb79811d7ba202a15bd1c77a00733c&fileId=151343

The “self.caller.SetStyle(style=wx.NO_BORDER)” is the code causing an error, and I need to know what function to use to change the style.

Thanks for any help.

Note: I know that the border automatically pops up for the button when you hover over it in GNOME, but it won’t in windows…


wxpython-users mailing list

wxpython-users@lists.wxwidgets.org

http://lists.wxwidgets.org/mailman/listinfo/wxpython-users


wxpython-users mailing list

wxpython-users@lists.wxwidgets.org

http://lists.wxwidgets.org/mailman/listinfo/wxpython-users