I want to handle the MAXIMIZE
event. When maximizing it works just fine, but when I want to restore it does not even set the EVT_MAXIMIZE
, even though the documentation says that this event is called when maximizing and restoring. I found that this is supposed to be a mistake in the documentation here is the link, but I still don't know which event is set when I restore the maximization.
Here is my .Bind method,. which is in MyFrame __init__:
self.Bind(wx.EVT_MAXIMIZE, self.onMaximize, self)
And here is the onMaximize function:
def onMaximize(self, event):
print "Maximized" # Just for checking
self.fig_panel.fig.tight_layout(w_pad=2.0)
event.Skip()
Any ideas how the handle the maximization restore event.