Re: wxPython: updating style of StaticText from event generated by button

2005-11-02 Thread KvS
> I would suggest you to take a look to the wxPython "custom" buttons; you can > find them in the demo, under "Custom Controls" ==> "GenericButtons". There > you will find "old style" buttons, that can be simple buttons or toggle > buttons (with "up" and "down" states). I have XP, and they look li

Re: wxPython: updating style of StaticText from event generated by button

2005-11-01 Thread Andrea Gavana
Hello Kees, > Thanks :), I'll give both of your hints a try. What I basically want to > do is have something like an "old style" button in win xp that's either > "up" or "down", since I couldn't find a more straightforward method I > thought taking a text widget and adjusting the border at mouse c

Re: wxPython: updating style of StaticText from event generated by button

2005-11-01 Thread KvS
Thanks :), I'll give both of your hints a try. What I basically want to do is have something like an "old style" button in win xp that's either "up" or "down", since I couldn't find a more straightforward method I thought taking a text widget and adjusting the border at mouse click would be the bes

Re: wxPython: updating style of StaticText from event generated by button

2005-11-01 Thread Andrea Gavana
Hello Kees, > and via the even handler I try to give StaticText a different style: In general you *can not* change in runtime the style of a widget. Only a very limited subset of the wxPython widgets supports style changes in runtime. I would suggest you 2 alternatives: 1) Use wx.lib.stattext ==

wxPython: updating style of StaticText from event generated by button

2005-11-01 Thread KvS
Hi all, I'm pretty new to (wx)Python so plz. don't shoot me if I've missed something obvious ;). I have a panel inside a frame, on which a Button and a StaticText is placed: self.panel = wx.Panel(self,-1) self.button = wx.Button(self.panel,-1,"Klikkerdeklik") self.button.SetPosition((200,40)) sel