FW: AuiMDIParent method issue

Hi,

i am developing a simple automation program at my place, and decided to use wxpyhton to do it. I have a minor setback, which i hope some learned user could help me out with

I am unsure why the method self.SetActiveChild(pChildFrame) below doesn’t work. My idea is to be able to highlight and choose the right child frames at random. Attached is a working code. Is there anything i am missing?

Thank you for your valuable response
Rgds,
Devendran
Sr.Product Engineer
SSD Division

ATT00000 (259 Bytes)

childframe.py (2.06 KB)

···

Chat online and in real-time with friends and family! Windows Live Messenger


What can you do with the new Windows Live? Find out


See all the ways you can stay connected to friends and family


check out the rest of the Windows Live™.
More than mail–Windows Live™ goes way beyond your inbox.
More than messages

Devendran Chandra wrote:

  Hi,

i am developing a simple automation program at my place, and decided to use wxpyhton to do it. I have a minor setback, which i hope some learned user could help me out with

I am unsure why the method self.SetActiveChild(pChildFrame) below doesn't work. My idea is to be able to highlight and choose the right child frames at random. Attached is a working code. Is there anything i am missing?

In the implementation SetActiveChild doesn't do anything other than set a member variable to indicate the active window. It doesn't change which tab is selected like I would expect it to. Instead of (or maybe in addition to) the SetActiveChild, try calling self.GetClientWindow().SetSelection(num) where num is the page number to be selected.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!