funktioniert
This commit is contained in:
parent
0db4a16c14
commit
32dd610fa0
12
GUI.py
12
GUI.py
@ -7,15 +7,11 @@ root = Tk()
|
|||||||
def ok():
|
def ok():
|
||||||
s1=s1_wert.get()
|
s1=s1_wert.get()
|
||||||
s2=s2_wert.get()
|
s2=s2_wert.get()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if s1 == "s" and s2 == "p" or s1 == "p" and s2 == "r" or s1 == "r" and s2 == "s":
|
if s1 == "s" and s2 == "p" or s1 == "p" and s2 == "r" or s1 == "r" and s2 == "s":
|
||||||
return messagebox.showinfo("Gewinner",f"Spieler 1 hat gewonnen")
|
messagebox.showinfo("Gewinner",f"Spieler 1 hat gewonnen")
|
||||||
|
|
||||||
|
|
||||||
else:
|
else:
|
||||||
return messagebox.showinfo("Gewinner",f"Spieler 2 hat gewonnen")
|
messagebox.showinfo("Gewinner",f"Spieler 2 hat gewonnen")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -30,4 +26,6 @@ s2_wert.pack()
|
|||||||
Button(root, text="Wählen", command=ok).pack()
|
Button(root, text="Wählen", command=ok).pack()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
root.mainloop()
|
root.mainloop()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user