I have an application that basically contains a top level auimanager where we can drag and drop some panels.
When the panel is dropped it is inserted in the auimanager as a new pane. The dropped panel can receive in turn other
panels by drag and drop process and so on …
Those panes should trigger special actions when closed. To track this, I bound to my top level manager an
EVT_AUI_PANE_CLOSE event. The event handler is actually called when the panels is closed BUT the event gives
me an paneinfo object from which I do not manage to retrieve the actual pane that was closed. I could use caption or name
attributes of the paneinfo object but several panes can have the captions/names making hard to track which one was closed.
Is there a way to get directly the window
that was closed from the AUIPaneInfo returned by the EVT_AUI_PANE_CLOSE event ?
I have an application that basically contains a top level auimanager where we can drag and drop some panels.
When the panel is dropped it is inserted in the auimanager as a new pane. The dropped panel can receive in turn other
panels by drag and drop process and so on …
Those panes should trigger special actions when closed. To track this, I bound to my top level manager an
EVT_AUI_PANE_CLOSE event. The event handler is actually called when the panels is closed BUT the event gives
me an paneinfo object from which I do not manage to retrieve the actual pane that was closed. I could use caption or name
attributes of the paneinfo object but several panes can have the captions/names making hard to track which one was closed.
Is there a way to get directly the window
that was closed from the AUIPaneInfo returned by the EVT_AUI_PANE_CLOSE event ?
The AuiPaneInfo class has a “window” attribute which will return the wxPython control associated with that pane. Is this what you are looking for?
I have an application that basically contains a top level auimanager where we can drag and drop some panels.
When the panel is dropped it is inserted in the auimanager as a new pane. The dropped panel can receive in turn other
panels by drag and drop process and so on …
Those panes should trigger special actions when closed. To track this, I bound to my top level manager an
EVT_AUI_PANE_CLOSE event. The event handler is actually called when the panels is closed BUT the event gives
me an paneinfo object from which I do not manage to retrieve the actual pane that was closed. I could use caption or name
attributes of the paneinfo object but several panes can have the captions/names making hard to track which one was closed.
Is there a way to get directly the window
that was closed from the AUIPaneInfo returned by the EVT_AUI_PANE_CLOSE event ?
The AuiPaneInfo class has a “window” attribute which will return the wxPython control associated with that pane. Is this what you are looking for?