Logo Search packages:      
Sourcecode: qa-assistant version File versions  Download package

def checkload::NewDruid::selector_next (   self,
  page,
  druid 
)

Moves from the selector page to the next page.

Arguments:
:page: Druid page we're on.
:druid: Druid widget.

Definition at line 418 of file checkload.py.

00418                                         :
        '''Moves from the selector page to the next page.

        Arguments:
        :page: Druid page we're on.
        :druid: Druid widget.
        '''
        (model, selectedRow) = self.selectorSelection.get_selected()
        try:
            if not selectedRow:
                raise error.InvalidChecklist, 'No checklist file was selected.'
            self.newList = checklist.CheckList(model.get_value(selectedRow,
                self.__FILENAME))
        except error.InvalidChecklist, ex_instance:
            errorDialog = gtk.MessageDialog(self,
                    gtk.DIALOG_DESTROY_WITH_PARENT,
                    gtk.MESSAGE_WARNING,
                    gtk.BUTTONS_CLOSE,
                    'We were unable to load the specified file.'
                    ' The following error given was:\n' + ex_instance.msg +
                    '\n\nPlease select another file.')
            errorDialog.set_title('Unable to load file')
            errorDialog.set_default_response(gtk.RESPONSE_CLOSE)
            response = errorDialog.run()
            errorDialog.destroy()
            druid.set_page(self.selectorPage)
            return True
        druid.set_page(self.propertiesPage)
        self.propBackPage = page
        return True

    def choice_next(self, page, druid, newSelectorButton):


Generated by  Doxygen 1.6.0   Back to index