I can't figure how to send an event associated with resizing pages in
an wx.aui.AUINotebook. Going to this documentation doesn't show
any events at all:
(As aside: that one says, confusingingly, "An instance of this class (or
one of its derived classes) is sent from a control when the control's state
is being changed and the control allows that change to be prevented from
happening.)
My problem is I have matplotlib graphs within these notebook pages
and occasionally resizing the pages causes the plots to go haywire,
so I thought I could force a Refresh or something but I need to catch
the wx.aui.AuiNotebook page resizing event.
I can't figure how to send an event associated with resizing pages in
an wx.aui.AUINotebook. Going to this documentation doesn't show
any events at all:
(As aside: that one says, confusingingly, "An instance of this class (or
one of its derived classes) is sent from a control when the control's state
is being changed and the control allows that change to be prevented from
happening.)
My problem is I have matplotlib graphs within these notebook pages
and occasionally resizing the pages causes the plots to go haywire,
so I thought I could force a Refresh or something but I need to catch
the wx.aui.AuiNotebook page resizing event.
I think EVT_AUINOTEBOOK_PAGE_CHANGED and EVT_AUINOTEBOOK_PAGE_CHANGING sound most promising for what you re doing. You may be able to bind to the top level parent's EVT_SIZING and catch it that way too...
Thanks, Mike. Unfortunately, none of those actually responds to changing
the sash position between two tabs. But with these terms I was able to find
someone asking this same question here:
And I guess the answer is to do your second point, catch the EVT_SIZE.
For now, I am looking into that with mixed results (my problem occurs less,
but still occurs occasionally).
Thanks,
Che
···
On Thu, Jan 8, 2009 at 10:55 AM, Mike Driscoll <mike@pythonlibrary.org> wrote:
Hi Che,
Hi.
I can't figure how to send an event associated with resizing pages in
an wx.aui.AUINotebook. Going to this documentation doesn't show
any events at all:
(As aside: that one says, confusingingly, "An instance of this class (or
one of its derived classes) is sent from a control when the control's
state
is being changed and the control allows that change to be prevented from
happening.)
My problem is I have matplotlib graphs within these notebook pages
and occasionally resizing the pages causes the plots to go haywire,
so I thought I could force a Refresh or something but I need to catch
the wx.aui.AuiNotebook page resizing event.
I think EVT_AUINOTEBOOK_PAGE_CHANGED and EVT_AUINOTEBOOK_PAGE_CHANGING sound
most promising for what you re doing. You may be able to bind to the top
level parent's EVT_SIZING and catch it that way too...