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

def uligo::PbmRecord::changeModeQuit (   self,
  w,
  h1,
  h2,
  e 
)

This method is called when the user presses the OK button of the
   'change mode' window. It reads out the integer from the entry field,
   and destroys the window. 

Definition at line 310 of file uligo.py.

00310                                       :
        """This method is called when the user presses the OK button of the
           'change mode' window. It reads out the integer from the entry field,
           and destroys the window. """
        
        self.modeVar.set(h1.get())
        if self.modeVar.get() == 2:
            try:
                self.current = (int(e.get()) - 2) % self.noOfPbms  # - 2 because: pbm 1 has number 0 in the list,
                                                                   # and getNext will add 1 to self.current for
                                                                   # the next problem
            except ValueError:
                self.current = -1
                
        if h2.get():
            self.defModeVar.set(self.modeVar.get())

        w.destroy()


    def changeMode(self):


Generated by  Doxygen 1.6.0   Back to index