'Do the right thing in the presence of tx dialog windows'

def top_level_window(self):

    override = (self.tl_windows[(-1)] if self.tl_windows else None)
    return self.top_level_window_recurse(override)
