Hi,
I am using AGW aui w/ a NotebookCtrl.
Since I also have a CheckListCtrl that adds tabs to the notebook and
also deletes them (uncheck),
I must keep track of the notebook tabs and content, especially since the
tabs can be dragged.
Queston:
What is the best/ simplest method to keep track of the tabs, i.e. their
index.
I figured that using a dict with {notebook_tab_index:checklist_index} is
possibly the smartest way.
This requires to change the key, i.e. notebook_tab_index, once the tab
is dragged to another position.
My problem now is that I am not sure how to extent/ add/overwrite the
event (what event) that is triggered when a notebook tab of aui.AuiNotebook
has been dragged.
I can see that AuiNotebook implements a
OnTabEndDrag(self, event):
method,
but no
OnDrop(self, event):
event like FlatNotebook does where I can get the old and current
selection and thus
1:get the old tab_index
2:get the new tab_index
3:copy the dict content of the old_tab_index to a new_tab_index entry
4:delete the old_tab_index entry in my dictionary
Any help is much appreciated.
ThanX