Changeset 151

Show
Ignore:
Timestamp:
04/20/08 21:11:39 (6 months ago)
Author:
njriley
Message:

move cursor warp (which seems annoyingly timing-sensitive) later so it actually works

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • sucrose/trunk/python/keypad_tk.py

    r150 r151  
    4848                        self.window.config(cursor='@%s white' % cursor_file) 
    4949                        self.window.resizable(False, False) 
    50                         self.window.after(10, lambda: 
    51                                                           self.window.event_generate('<<Motion>>', 
    52                                                                                                              warp=True, x=0, y=0)) 
    5350                self.window.focus_set() 
    5451 
     
    8178                                          font=('helvetica', 12, 'bold')).\ 
    8279                                          grid(row=2, column=0, columnspan=2, sticky=Tkinter.NSEW) 
     80 
     81                self.window.after(10, lambda: 
     82                                                  self.window.event_generate('<<Motion>>', 
     83                                                                                                         warp=True, x=0, y=0)) 
    8384 
    8485                logging.info('%s - Authenticated' % self.auth)