Advertisement
Guest User

Untitled

a guest
Sep 29th, 2016
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. entry1 = Entry(root)
  2. entry2 = Entry(root)
  3.  
  4. def callback_entry1_focus(event):
  5. print 'entry1 focus in'
  6.  
  7. def callback_entry2_focus(event):
  8. print 'entry2 focus in'
  9.  
  10. entry1.bind("<FocusIn>", callback_entry1_focus)
  11. entry2.bind("<FocusIn>", callback_entry2_focus)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement