agw.aui: Focus problem in Split Notebook

Hi,

Hello,

I've recently starting using the agw.aui library in my own application. I'd
first like to thanks all the developers for the amount of work they've put
in this library : the result is very impressive.
Today I came against a problem you may help me with. It is reproductible in
the wxPython demo, and i'll use it as my example :

---

First start the AUI_Notebook demo (which uses wx.aui), then split the main
notebook in 2 parts (dragging a tab).
If you know click alternatively in the wx.TextCtrl on the left side, and on
the right side, the notebook tabs are switched accordingly.

If you know repeat the same procedure with agw.aui (editing the demo code),
this time the notebook tabs do not change.
When you set focus on an object within a agw.aui notebook tab, the 'parent'
page itself is apparently not selected: this can be confirmed printing the
notebook.GetSelection()

---

This is a problem because my application tracks all
EVT_AUINOTEBOOK_PAGE_CHANGED events, and apply some changes accordingly. In
this split notebook configuration users would be able to change page without
the event to be triggered.
Was this done on purpose? How may i enforce the notebook to be updated
whenever objects within the page are clicked? (i'm still getting started
with agw.aui, the inheritance scheme is not really clear to me yet) Should i
try to catch an event directly on children objects?

Thank you,

---

I'm using Python 2.6, wxPython 2.8.12.1

Can you try with the SVN version of AUI and see if you are
experiencing similar issues? AUI in AGW is pure-Python, and it has
undergone a few changes since wxPython 2.8.12.1.

AGW lives here:

http://svn.wxwidgets.org/svn/wx/wxPython/3rdParty/AGW

If you are on Windows, you can get the latest sources via TortoiseSVN
or similar SVN tools.

Andrea.

"Imagination Is The Only Weapon In The War Against Reality."

# ------------------------------------------------------------- #
def ask_mailing_list_support(email):

    if mention_platform_and_version() and include_sample_app():
        send_message(email)
    else:
        install_malware()
        erase_hard_drives()
# ------------------------------------------------------------- #

···

On 30 January 2013 18:07, Erwan wrote:

Hello Andrea,

Thanks for you answer.
I updated AUI to the SVN version, unfortunately this didn’t fix the problem: parent tabs are still not automatically focused.
Can’t you reproduce it?

Erwan