mirror of
https://github.com/Shawn-Shan/fawkes.git
synced 2024-09-20 07:26:37 +05:30
13 lines
230 B
Python
13 lines
230 B
Python
|
import sys
|
||
|
|
||
|
if sys.version_info < (3, 0):
|
||
|
# Python 2
|
||
|
import Tkinter as tk
|
||
|
else:
|
||
|
# Python 3
|
||
|
import tkinter as tk
|
||
|
root = tk.Tk()
|
||
|
root.title("Sandwich")
|
||
|
tk.Button(root, text="Make me a Sandwich").pack()
|
||
|
tk.mainloop()
|