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

def checkload::NewDruid::popup_file_selector (   self,
  button 
)

Open a saved review

Arguments:
:button: The button which was clicked to bring up this dialog.

Definition at line 490 of file checkload.py.

00490                                          :
        '''Open a saved review
        
        Arguments:
        :button: The button which was clicked to bring up this dialog.
        '''
        fileSelect = gtk.FileSelection(
                title = 'Select the checklist file to load.')
        if (os.path.isdir(self.app.lastSaveFileDir) and
                os.access(self.app.lastSaveFileDir, os.R_OK|os.X_OK)):
            fileSelect.set_filename(self.app.lastSaveFileDir)

        filename = None
        response = fileSelect.run()
        try:
            if response == gtk.RESPONSE_OK:
                filename = fileSelect.get_filename()
        finally:
            fileSelect.destroy()
            del fileSelect

        if filename:
            self.app.lastSaveFileDir = os.path.dirname(filename)+'/'
            self.browseEntry.set_text(filename)

    def close_druid(self, druidObject):


Generated by  Doxygen 1.6.0   Back to index