(self, _widget, _event)
Inform other parts of the application when focus is received
Inform other parts of the application when focus is received
Inform other parts of the application when focus is received
def on_vte_focus_in(self, _widget, _event):
        """Inform other parts of the application when focus is received"""
        self.vte.set_colors(self.fgcolor_active, self.bgcolor,
                            self.palette_active)
        self.set_cursor_color()
        if not self.terminator.doing_layout:
            self.terminator.last_focused_term = self
            if self.get_toplevel().is_child_notebook():
                notebook = self.get_toplevel().get_children()[0]
                notebook.set_last_active_term(self.uuid)
                notebook.clean_last_active_term()
                self.get_toplevel().last_active_term = None
            else:
                self.get_toplevel().last_active_term = self.uuid
        self.emit('focus-in')
def on_vte_focus_in ( self , _widget , _event ) : self . vte . set_colors ( self . fgcolor_active , self . bgcolor , self . palette_active ) self . set_cursor_color ( ) if not self . terminator . doing_layout : self . terminator . last_focused_term = self if self . get_toplevel ( ) . is_child_notebook ( ) : notebook = self . get_toplevel ( ) . get_children ( ) [ 0 ] notebook . set_last_active_term ( self . uuid ) notebook . clean_last_active_term ( ) self . get_toplevel ( ) . last_active_term = None else : self . get_toplevel ( ) . last_active_term = self . uuid self . emit ( 'focus-in' )