This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jan 8th, 2013  |  syntax: None  |  size: 0.34 KB  |  views: 38  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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()
clone this paste RAW Paste Data