wxWindow.FindWindowById behavior change
Alexis Collange <[email protected]>
| Newsgroups | gmane.comp.python.wxpython.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi, It seems that the wxWindow.FindWindowById method behavior has changed. According to the documentation of "Classic" : *FindWindowById(self, winid)* * Find a child of this window by window ID* In Phoenix FindWindowById is a static method and the search is recursive starting from top level window if the 'parent' parameter is not given. This new logic is unexpected for me, and I already see an issue into XRC module with the XRCCTRL function. *def XRCCTRL(window, str_id, *ignoreargs):* * """* * Returns the child window associated with the string ID in an XML resource.* * """* * return window.FindWindowById(XRCID(str_id))* The ID search should be relative to the given 'window', so according to the new FindWindowById behavior, the return should be : * return window.FindWindowById(XRCID(str_id), **window**)* Why this change? Search relative to the window instance seems more logic... Alexis -- You received this message because you are subscribed to the Google Groups "wxPython-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.