[wxpython-users] Change button border...?
raffaello
barbarossa.platz at gmail.com
Tue May 27 09:21:00 PDT 2008
You could try using the controls in wx.lib.buttons instead of the current
button. Then, with GenBitmapButton, the method SetBezelWidth(pixels=3D3)
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 at gmail.com>:
> Hey all,
> I'm attempting to create a GUI for a rubik's cube solver, and I'm haavi=
ng
> 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 funct=
ion
> to set the style of the button.
> Here's my current source code:
> http://www.filecrunch.com/fileDownload.php?sub=3D0fbb79811d7ba202a15bd1c7=
7a00733c&fileId=3D151343
>
> The "self.caller.SetStyle(style=3Dwx.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 at lists.wxwidgets.org
> http://lists.wxwidgets.org/mailman/listinfo/wxpython-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/200805=
27/e884a27c/attachment.htm
More information about the wxpython-users
mailing list