Logo Search packages:      
Sourcecode: uligo version File versions  Download package

def uligo::App::quit (   self  ) 

Save statistics and name of current database and exit the program. 

Definition at line 920 of file uligo.py.

00920                   :
        """ Save statistics and name of current database and exit the program. """
        if self.pbmRec: self.pbmRec.saveToDisk()

        try:
            f = open(os.path.join(self.optionspath,'uligo.def'),'w')
            f.write('uligo03\n')
            f.write('s '+self.sgfpath+'\n')
            if self.currentFile: f.write('f '+self.currentFile +'\n')
            f.close()
        except IOError:
            showwarning('IOError', 'Could not write uligo.def')

        self.saveOptions()
        self.frame.quit()


    def nextProblem(self):


Generated by  Doxygen 1.6.0   Back to index