-
Notifications
You must be signed in to change notification settings - Fork 0
/
choose.py
45 lines (30 loc) · 1.26 KB
/
choose.py
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
from tkinter import *
from tkinter import messagebox as tkMessageBox
import sqlite3,os,subprocess
def true_window():
tkMessageBox.showinfo("Great!!","ok!!!Then answer these questions...")
masteras.destroy()
exec(open("no2.py").read())
def false_window():
tkMessageBox.showinfo("No problem","Let us watch the counting video")
masteras.destroy()
exec(open("no4.py").read())
global masteras,back_image,e1
masteras= Tk()
masteras.resizable(width=False, height=False)
masteras.geometry('1370x745')
masteras.configure(background='red')
convar = sqlite3.connect('storename.db')
queryaa="SELECT kid_name FROM name ";
cursor=convar.execute(queryaa)
convar.commit()
for row in cursor:
t=row[0];
convar.close()
w1 = Label(masteras, text=t+", Do you know Counting?",fg="black",bg='blue',font=("Comic Sans MS", 44))
w1.grid(row=0,column=0,sticky=W,padx=(70,45),pady=(50,50))
submitbutton=Button(masteras,text="YES",command=true_window,fg="white",bg="blue",font=("Helvetica", 44))
submitbutton.grid(row=1,column=0,columnspan=2,padx=(70,45),sticky=W)
submitbutton=Button(masteras,text="NO",command=false_window,fg="white",bg="blue",font=("Helvetica", 44))
submitbutton.grid(row=1,column=0,columnspan=2,padx=(380,45),sticky=W)
masteras.mainloop()