Skip to content

Instantly share code, notes, and snippets.

@stubb
Created November 23, 2014 16:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stubb/74b766e0662ef07ce700 to your computer and use it in GitHub Desktop.
Save stubb/74b766e0662ef07ce700 to your computer and use it in GitHub Desktop.
# wait a second to give the thread time to check if a generation is necessary at all
time.sleep(1.0)
window.deiconify()
while atlas_loading_thread.is_alive():
if not window.state() == "iconic":
window.attributes("-topmost", 0)
window.update()
time.sleep(0.1)
window.destroy()
except ImportError:
# tkinter or PIL may be missing
atlas_loading_thread.join()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment