Commits

Long Yang committed 7545f83

entry set focus before input

Comments (0)

Files changed (1)

     root.after(period, log)
     btn['state'] = DISABLED
     e.delete(0, END)
+    e.focus_set()
     try:
         os.mkdir(curdir+os.sep+time.strftime('%y-%m-%d'))
     except:pass
     root.wm_attributes('-alpha', 1)
     root.wm_attributes('-topmost', 1)
     e.selection_range(0, END)
+    e.focus_set()
     root.after(period, log)
     
 def save(event):