def _childFocusableWindow(self, reverse=False):
    windows = self.zOrder[:]
    if reverse:
        windows.reverse()
    for i in windows:
        if i.isFocusable:
            return i
        else:
            r = i._childFocusableWindow(reverse)
            if (r is not None):
                return r
def _childFocusableWindow(self, reverse=False):
    windows = self.zOrder[:]
    if reverse:
        windows.reverse()
    for i in windows:
        if i.isFocusable:
            return i
        else:
            r = i._childFocusableWindow(reverse)
            if (r is not None):
                return r