| 1 | import sys |
| 2 | from Tkinter import * |
| 3 | |
| 4 | root = Tk() |
| 5 | |
| 6 | t = "Python Information\n" |
| 7 | t += "executable: " + sys.executable + "\n" |
| 8 | t += "version: " + sys.version + "\n" |
| 9 | t += "prefix: " + sys.prefix + "\n" |
| 10 | t += "exec_prefix: " + sys.exec_prefix + "\n" |
| 11 | |
| 12 | w = Label(root, text=t) |
| 13 | w.pack() |
| 14 | button = Button(root, text="OK", fg="black", command=root.quit) |
| 15 | button.pack() |
| 16 | |
| 17 | root.mainloop() |