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

def clock::Clock::changeMaxtime (   self,
  event = None 
)

Change the maxTime; makes a new window with a scale where the new maxTime can be chosen.
    Does not work while the clock is running. 

Definition at line 119 of file clock.py.

00119                                        :
        """ Change the maxTime; makes a new window with a scale where the new maxTime can be chosen.
            Does not work while the clock is running. """
        if not self.running:
            window = Toplevel()
            window.title("Change time settings")
            sc = Scale(window, label='Pick time in seconds (0=off)', length=300,
                       variable = self.maxTime, from_=0, to = 480,
                       tickinterval = 60, showvalue=YES, orient='horizontal')
            sc.pack()
            b = Button(window, text="OK", command = window.destroy)
            b.pack(side=RIGHT)
            window.update_idletasks()  # grab_set won't work without that
            window.focus()
            window.grab_set()
            window.wait_window()
         

    def drawClockface(self):


Generated by  Doxygen 1.6.0   Back to index