[wxPython-users] Adding user styles to a widget

Peter Damoc pdamoc at gmail.com
Sat Jun 10 04:21:49 PDT 2006


On 6/10/06, Oswaldo Hern=E1ndez <listas at soft-com.es> wrote:
>
> Hi all,
>
> For a custom widget i would like add my own style flags in the control
> init 'style' keyword.
>
> To avoid conflics with wx styles i search the docs for a wx.USER_STYLE but
> i don't find it.
>
> I would like to do:
>
> #definicion
> MY_STYLE01 =3D wx.USER_STYLE
> MY_STYLE02 =3D wx.USER_STYLE * 0x02
> MY_STYLE02 =3D wx.USER_STYLE * 0x04
> etc ...
>
> # then on control creation
> mctrl =3D myCustomCtrl(self, -1, "", style =3D wx.SIMPLE_BORDER | MY_STYL=
E01 |
> MY_STYLE02)
>
> Exist the wx.USER_STYLE or may i add a new parameter in init?
>
> Thanks.
>

why not add a new parameter... like in

mctrl =3D myCustomCtrl(self, -1, "", style =3D wx.SIMPLE_BORDER, extrastyle=
=3D
MY_STYLE01 | MY_STYLE02)

Peter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/200606=
10/6c01152a/attachment.htm


More information about the wxpython-users mailing list