Re: Phoenix - AquaButton and EVT_UPDATE_UI

Robin Dunn <[email protected]>
Newsgroups gmane.comp.python.wxpython.devel
Message-ID <[email protected]>
Werner wrote:
> Hi,
>
> I noticed that the button is not refreshing when I do below, so I added
> the last line in the handler. Now the problem does only show if I use
> wx.lib.agw.aquabutton.
>
> Any tip of what needs to change in AquaButton to do the refresh
> automatically?

Try overriding DoEnable in AquaButton with something like this:

def DoEnable(self, enable):
     wasEnabled = self.IsEnabled()
     super(AquaButton, self).DoEnable(enable)
     if self.IsEnabled() != wasEnabled:
         self.Refresh()



-- 
Robin Dunn
Software Craftsman
http://wxPython.org

-- 
You received this message because you are subscribed to the Google Groups "wxPython-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.