(self, window)
call it when preview open in other group
call it when preview open in other group
call it when preview open in other group
def focus_other_group(self, window):
        '''call it when preview open in other group'''
        target_group = self._other_group(window, window.active_group())
        # set_view_index and focus are not very reliable
        # just focus target_group should do what we want
        window.focus_group(target_group)
def focus_other_group ( self , window ) : target_group = self . _other_group ( window , window . active_group ( ) ) # set_view_index and focus are not very reliable # just focus target_group should do what we want window . focus_group ( target_group )