2009/8/30 Jérôme Laheurte <[email protected]>: > > A solution that is a bit hackish: > > def activeViewer(self): > if not self._settings.getboolean('view', 'tabbedmainwindow'): > for viewer in self.viewers: > info = self.containerWidget.manager.GetPane(viewer) > if info.HasFlag(info.optionActive): > return viewer > > It works both with agw.aui and wx.aui. What do you think ? > > Then, the other branch of the 'if' would just fallback to > self.viewers[self.__currentPageNumber], and we can get rid of the > windowWithFocus stuff.
Sounds great. Cheers, Frank
