SHARE
TWEET

Untitled

a guest Jan 8th, 2013 44 Never
  1. def retrieve_and_update_text():
  2.     global CURR_D
  3.     num_d = e1.get().strip()
  4.     ver_d = e2.get().strip()
  5.     print num_d, ver_d
  6.  
  7.     CURR_D = (CURR_D + 1) % 3
  8.     if CURR_D == 0:
  9.         root.quit()
  10.  
  11.     v1.set(NUM_D[CURR_D] + 1)
  12.     v2.set(VER_D[CURR_D] + 2)
  13.  
  14.     root.withdraw()
  15.     root.update_idletasks()
  16.     root.deiconify()
RAW Paste Data
Top