-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
69 lines (54 loc) · 2.05 KB
/
main.py
File metadata and controls
69 lines (54 loc) · 2.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
from subprocess import call
import tkinter
import os
#hello ! please change the directory before
os.chdir(r"E:\\Coding guide\\my python\\turtle files")
def cretwin():
errpop=tkinter.Toplevel(rama)
errpop.title("waitt!!")
icon=tkinter.PhotoImage(file="maoi.png")
errpop.iconphoto(True,icon)
errpop.resizable(0,0)
cat=tkinter.PhotoImage("broo.png")
partu=tkinter.Label(errpop,text="please follow the instructions \n enter from the given number options",font=("Comic sans",24),padx=50,pady=25,fg="blue",bg="yellow",relief="raised",image=icon,compound="bottom")
partu.pack()
def accept():
s=inpu.get()
match s:
case "1":
call(["Python3","radioactive.py"])
case '2':
call(["Python3","circle with squares.py"])
case "3":
call(["Python3","concentric circles.py"])
case "4":
call(["Python3","multiple triangular spiral.py"])
case "5":
call(["Python3","yellow star.py"])
case "6":
call(["Python3","square spiral.py"])
case "7":
call(["Python3","triangular color spiral.py"])
case "8":
call(["python3","shuriken jutsu.py"])
case "9":
call(["python3","dual turt.py"])
case "trinetra": #buzzword easter egg to close the program
quit()
case _:
cretwin()
print("hello bro !! mistake commited !")
rama=tkinter.Tk()
rama.geometry("720x720")
rama.title("Main menu - polygons")
rama.config(background="black")
thumbnail=tkinter.PhotoImage(file="dixie.png")
mm=tkinter.PhotoImage(file="gui menu0000.png") #720 x 720 width height
rama.iconphoto(True,thumbnail)
label=tkinter.Label(image=mm, relief="raised")
label.pack()
inpu=tkinter.Entry(rama,font=("Comic sans",22),width=41)
inpu.place(x=290,y=710)
enterbutton=tkinter.Button(rama,text="let's go!",font=("Arial",12),command=accept,compound="bottom",padx=5,pady=5)
enterbutton.place(x=938,y=710)
rama.mainloop()