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?
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:
I can only get it to work like this:
def DoEnable(self, enable):
"""
Overridden base class virtual.
Need to Refresh if Enable state changed.
"""
self.Refresh()
It looks like the enable state is already changed by the time DoEnable is called.
Does this make sense?
Werner
···
On 2/26/2015 20:37, Robin Dunn wrote:
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: