def register_view(self, view):
        """Called when the View was registered"""
        super(PreferencesWindowController, self).register_view(view)
        self.view['add_library_button'].connect('clicked', self._on_add_library)
        self.view["remove_library_button"].connect('clicked', self._on_remove_library)

        self.view['config_tree_view'].connect("button_press_event", self._on_row_clicked_trigger_toggle_of_boolean,
                                              self.core_config_model, self.core_list_store)
        self.view['gui_tree_view'].connect("button_press_event", self._on_row_clicked_trigger_toggle_of_boolean,
                                           self.gui_config_model, self.gui_list_store)

        self.view['core_config_value_renderer'].set_property('editable', True)
        self.view['core_config_value_renderer'].connect('edited', self._on_config_value_changed, self.core_config_model,
                                                        self.core_list_store)

        self.view['gui_config_value_renderer'].set_property('editable', True)
        self.view['gui_config_value_renderer'].connect('edited', self._on_config_value_changed, self.gui_config_model,
                                                       self.gui_list_store)

        self.view['shortcut_config_value_renderer'].set_property('editable', True)
        self.view['shortcut_config_value_renderer'].connect('edited', self._on_shortcut_changed)

        self.view['library_config_key_renderer'].set_property('editable', True)
        self.view['library_config_key_renderer'].connect('edited', self._on_library_name_changed)

        self.view['library_config_value_renderer'].set_property('editable', True)
        self.view['library_config_value_renderer'].connect('edited', self._on_library_path_changed)

        self.view['config_tree_view'].set_model(self.core_list_store)
        self.view['library_tree_view'].set_model(self.library_list_store)
        self.view['gui_tree_view'].set_model(self.gui_list_store)
        self.view['shortcut_tree_view'].set_model(self.shortcut_list_store)

        self.view['apply_button'].connect("clicked", self._on_apply_button_clicked)
        self.view['ok_button'].connect('clicked', self._on_ok_button_clicked)
        self.view['cancel_button'].connect('clicked', self._on_cancel_button_clicked)

        self.view['import_button'].connect("clicked", self._on_import_config)
        self.view['export_button'].connect('clicked', self._on_export_config)

        self.view['preferences_window'].connect('delete_event', self._on_delete_event)

        self.update_all()
def register_view ( self , view ) : super ( PreferencesWindowController , self ) . register_view ( view ) self . view [ 'add_library_button' ] . connect ( 'clicked' , self . _on_add_library ) self . view [ "remove_library_button" ] . connect ( 'clicked' , self . _on_remove_library ) self . view [ 'config_tree_view' ] . connect ( "button_press_event" , self . _on_row_clicked_trigger_toggle_of_boolean , self . core_config_model , self . core_list_store ) self . view [ 'gui_tree_view' ] . connect ( "button_press_event" , self . _on_row_clicked_trigger_toggle_of_boolean , self . gui_config_model , self . gui_list_store ) self . view [ 'core_config_value_renderer' ] . set_property ( 'editable' , True ) self . view [ 'core_config_value_renderer' ] . connect ( 'edited' , self . _on_config_value_changed , self . core_config_model , self . core_list_store ) self . view [ 'gui_config_value_renderer' ] . set_property ( 'editable' , True ) self . view [ 'gui_config_value_renderer' ] . connect ( 'edited' , self . _on_config_value_changed , self . gui_config_model , self . gui_list_store ) self . view [ 'shortcut_config_value_renderer' ] . set_property ( 'editable' , True ) self . view [ 'shortcut_config_value_renderer' ] . connect ( 'edited' , self . _on_shortcut_changed ) self . view [ 'library_config_key_renderer' ] . set_property ( 'editable' , True ) self . view [ 'library_config_key_renderer' ] . connect ( 'edited' , self . _on_library_name_changed ) self . view [ 'library_config_value_renderer' ] . set_property ( 'editable' , True ) self . view [ 'library_config_value_renderer' ] . connect ( 'edited' , self . _on_library_path_changed ) self . view [ 'config_tree_view' ] . set_model ( self . core_list_store ) self . view [ 'library_tree_view' ] . set_model ( self . library_list_store ) self . view [ 'gui_tree_view' ] . set_model ( self . gui_list_store ) self . view [ 'shortcut_tree_view' ] . set_model ( self . shortcut_list_store ) self . view [ 'apply_button' ] . connect ( "clicked" , self . _on_apply_button_clicked ) self . view [ 'ok_button' ] . connect ( 'clicked' , self . _on_ok_button_clicked ) self . view [ 'cancel_button' ] . connect ( 'clicked' , self . _on_cancel_button_clicked ) self . view [ 'import_button' ] . connect ( "clicked" , self . _on_import_config ) self . view [ 'export_button' ] . connect ( 'clicked' , self . _on_export_config ) self . view [ 'preferences_window' ] . connect ( 'delete_event' , self . _on_delete_event ) self . update_all ( )
Called when the View was registered