def register_view(self, view):
        """Called when the View was registered"""
        ExtendedController.register_view(self, view)  # no super to avoid sm based selection initialization
        view['name_text'].set_property('editable', True)
        view['value_text'].set_property('editable', True)
        view['type_text'].set_property('editable', True)

        self.tree_view.connect('key-press-event', self.tree_view_keypress_callback)
        self._apply_value_on_edited_and_focus_out(view['name_text'], self.apply_new_global_variable_name)
        self._apply_value_on_edited_and_focus_out(view['value_text'], self.apply_new_global_variable_value)
        self._apply_value_on_edited_and_focus_out(view['type_text'], self.apply_new_global_variable_type)
        view['new_global_variable_button'].connect('clicked', self.on_add)
        view['delete_global_variable_button'].connect('clicked', self.on_remove)
        view['lock_global_variable_button'].connect('clicked', self.on_lock)
        view['unlock_global_variable_button'].connect('clicked', self.on_unlock)
        self._tree_selection.set_mode(Gtk.SelectionMode.MULTIPLE)
def register_view ( self , view ) : ExtendedController . register_view ( self , view ) view [ 'name_text' ] . set_property ( 'editable' , True ) view [ 'value_text' ] . set_property ( 'editable' , True ) view [ 'type_text' ] . set_property ( 'editable' , True ) self . tree_view . connect ( 'key-press-event' , self . tree_view_keypress_callback ) self . _apply_value_on_edited_and_focus_out ( view [ 'name_text' ] , self . apply_new_global_variable_name ) self . _apply_value_on_edited_and_focus_out ( view [ 'value_text' ] , self . apply_new_global_variable_value ) self . _apply_value_on_edited_and_focus_out ( view [ 'type_text' ] , self . apply_new_global_variable_type ) view [ 'new_global_variable_button' ] . connect ( 'clicked' , self . on_add ) view [ 'delete_global_variable_button' ] . connect ( 'clicked' , self . on_remove ) view [ 'lock_global_variable_button' ] . connect ( 'clicked' , self . on_lock ) view [ 'unlock_global_variable_button' ] . connect ( 'clicked' , self . on_unlock ) self . _tree_selection . set_mode ( Gtk . SelectionMode . MULTIPLE )
Called when the View was registered