def on_action_edit_activate(self, action):
     """Edit the selected service"""
     selected_row = get_treeview_selected_row(self.ui.tvw_arguments)
     if selected_row:
         argument = self.model_arguments[selected_row][0]
         dialog = UICommandArgument(self.ui.dialog_arguments)
         if dialog.show(default_value=argument) == Gtk.ResponseType.OK:
             # Update values
             self.model_arguments.set_value(selected_row, 0, dialog.argument)
         dialog.destroy()
 def on_action_edit_activate(self, action):
     """Edit the selected service"""
     selected_row = get_treeview_selected_row(self.ui.tvw_arguments)
     if selected_row:
         argument = self.model_arguments[selected_row][0]
         dialog = UICommandArgument(self.ui.dialog_arguments)
         if dialog.show(default_value=argument) == Gtk.ResponseType.OK:
             # Update values
             self.model_arguments.set_value(selected_row, 0,
                                            dialog.argument)
         dialog.destroy()
 def on_action_add_activate(self, action):
     """Add a new argument"""
     dialog = UICommandArgument(self.ui.dialog_arguments)
     if dialog.show(default_value="") == Gtk.ResponseType.OK:
         self.model_arguments.append((dialog.argument,))
     dialog.destroy()
 def on_action_add_activate(self, action):
     """Add a new argument"""
     dialog = UICommandArgument(self.ui.dialog_arguments)
     if dialog.show(default_value='') == Gtk.ResponseType.OK:
         self.model_arguments.append((dialog.argument, ))
     dialog.destroy()