(self, notebook, page,  page_num,  data=None)
return True
Do the real work for a tab switch
Do the real work for a tab switch
Do the real work for a tab switch
def on_tab_switch(self, notebook, page,  page_num,  data=None):
        """Do the real work for a tab switch"""
        tabs_last_active_term = data['tabs_last_active_term']
        if tabs_last_active_term:
            term = self.terminator.find_terminal_by_uuid(tabs_last_active_term.urn)
            # if we can't find a last active term we must be starting up
            if term is not None:
                GObject.idle_add(term.ensure_visible_and_focussed)
        return True
def on_tab_switch ( self , notebook , page , page_num , data = None ) : tabs_last_active_term = data [ 'tabs_last_active_term' ] if tabs_last_active_term : term = self . terminator . find_terminal_by_uuid ( tabs_last_active_term . urn ) # if we can't find a last active term we must be starting up if term is not None : GObject . idle_add ( term . ensure_visible_and_focussed ) return True