Phoenix - AquaButton and EVT_UPDATE_UI
Werner <[email protected]>
| Newsgroups | gmane.comp.python.wxpython.devel |
|---|---|
| Message-ID | <[email protected]> |
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?
Werner
self.importwine.Bind(wx.EVT_UPDATE_UI, self.onUpdateUIImportwine)
def onUpdateUIImportwine(self, evt): #pylint: disable=W0613
"""Set import wine button state"""
if self._vinoSel:
evt.Enable(True)
else:
evt.Enable(False)
evt.GetEventObject().Refresh()
--
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.