STP/Menü.py

16 lines
525 B
Python

from tkinter import *
import subprocess
root = Tk()
root.geometry("900x500")
def vs():
subprocess.call("GUI.py", shell=True)
def vscom():
subprocess.call("stp.py", shell=True)
Label(root, text="Schere, Stein, Papier", font=("times",30)).grid(column=1)
Label(root, text="Menü", font=("times", 30)).grid(row=1, column=1)
Button(root, text="Player vs Player", command=vs, font=("times", 25)).grid(row=2)
Button(root, text="Player vs Com", command=vscom, font=("times", 25)).grid(row=2, column=2)
root.mainloop()