Last active
December 9, 2015 11:09
-
-
Save matteomattei/b2205a6b480b5a9faa8e to your computer and use it in GitHub Desktop.
Very simple graphical messagebox in Python useful for console applications with py2exe
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
if sys.version_info < (3,0): | |
import Tkinter as tkinter | |
import tkMessageBox as mbox | |
else: | |
import tkinter | |
import tkinter.messagebox as mbox | |
window = tkinter.Tk() | |
window.wm_withdraw() | |
mbox.showinfo('my app','my message') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment