Advertisement
Guest User

Untitled

a guest
Dec 14th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 21.04 KB | None | 0 0
  1. #----------------------------#
  2. # Created By Joel Malone #
  3. #----------------------------#
  4.  
  5. #Importing Python Packages
  6. import sys
  7. import time
  8. import threading
  9. from tkinter import *
  10. from tkinter import ttk
  11. import tkinter as tk
  12.  
  13. #removed globals from here
  14.  
  15.  
  16. LARGE_FONT= ("Verdana", 12)
  17. countans = 0
  18. rightans = 0
  19. score = 0
  20. timeout = 0
  21. tog_timecount = 0
  22.  
  23.  
  24. #Dictionary
  25. qz = {"How many stages are there in the Structured Approach?":"Five",
  26. "What is a device that provides input into a control system called?":"Sensor",
  27. "Which of the Following is an example of an emerging technology?":"Manual Correct",
  28. "What kind of Hardware device is a Keyboard?":"Input",
  29. "What kind of Hardware device is a Speaker?":"Output",
  30. "What is the truest definition of copyright?":"Laws in place to safeguard legal intellectual property.",
  31. "Software developers who develop custom applications :":"Manual Correct",
  32. "Gradually introducing a new system onto a site is a feature of which method of conversion?":"Phased",
  33. "Software that simultaneously simulates a specified number of users entering data into an application is an example of what?":"Case Tools",
  34. "What does the acronym RAM stand for?":"Random Access Memory"}
  35.  
  36.  
  37.  
  38. class QuizApp(tk.Tk):
  39.  
  40. def __init__(self, *args, **kwargs):
  41.  
  42. tk.Tk.__init__(self, *args, **kwargs)
  43.  
  44. tk.Tk.iconbitmap(self, default='icon.ico')
  45. tk.Tk.wm_title(self, "Bugz - HSC SDD Quiz")
  46.  
  47. container = tk.Frame(self)
  48. container.pack(side="top", fill="both", expand = True)
  49. container.grid_rowconfigure(0, weight=1)
  50. container.grid_columnconfigure(0, weight=1)
  51.  
  52. self.frames = {}
  53.  
  54. for F in (StartPage, PageFinish, Page1, Page2, Page3, Page4, Page5, Page6, Page7, Page8, Page9, Page10):
  55.  
  56. frame = F(container, self)
  57.  
  58. self.frames[F] = frame
  59.  
  60. frame.grid(row=0, column=0, sticky="nsew")
  61.  
  62.  
  63. self.show_frame(StartPage)
  64.  
  65. def show_frame(self, cont):
  66.  
  67. frame = self.frames[cont]
  68. frame.tkraise()
  69.  
  70.  
  71.  
  72. class StartPage(tk.Frame):
  73.  
  74. def __init__(self, parent, controller):
  75.  
  76. ttk.Frame.__init__(self,parent)
  77.  
  78. label1 = ttk.Label(self, text="Welcome To The Quiz!", font=LARGE_FONT)
  79. label1.pack(pady=10,padx=10)
  80.  
  81. label2 = ttk.Label(self, text= "Are you ready to embark on an educational voyage through the realm of Software Design and Development?", font=LARGE_FONT)
  82. label2.pack(pady=10,padx=10)
  83.  
  84. button1 = ttk.Button(self, text="Next", command=lambda: controller.show_frame(Page1))
  85. button1.pack()
  86.  
  87. progressbar = ttk.Progressbar(self, orient = HORIZONTAL, length = 200)
  88. progressbar.config(mode = 'determinate', maximum = 10.0, value = 0)
  89. progressbar.pack()
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97. class Page1(tk.Frame):
  98.  
  99. def __init__(self, parent, controller):
  100. ttk.Frame.__init__(self, parent)
  101.  
  102.  
  103.  
  104. label1 = ttk.Label(self, text= "Question 1", font=LARGE_FONT)
  105. label1.pack(pady=10,padx=10)
  106.  
  107. label2 = ttk.Label(self, text= "How many stages are there in the Structured Approach?", font=LARGE_FONT)
  108. label2.pack(pady=10,padx=10)
  109.  
  110. combobox = ttk.Combobox(self)
  111. combobox.config( values = ('One', 'Ten', 'Five', 'Thirteen', 'Six', 'None'))
  112. combobox.pack()
  113.  
  114. buttonprev = ttk.Button(self, text="Previous", command=lambda: controller.show_frame(StartPage))
  115. buttonprev.pack()
  116.  
  117. button2 = ttk.Button(self, text="Submit", command=lambda:[controller.show_frame(Page2),submit(combobox.get())])
  118. button2.pack()
  119.  
  120. progressbar = ttk.Progressbar(self, orient = HORIZONTAL, length = 200)
  121. progressbar.config(mode = 'determinate', maximum = 10.0, value = 1)
  122. progressbar.pack()
  123.  
  124.  
  125.  
  126. class Page2(tk.Frame):
  127.  
  128. def __init__(self, parent, controller):
  129. ttk.Frame.__init__(self, parent)
  130.  
  131.  
  132.  
  133. label1 = ttk.Label(self, text="Question 2", font=LARGE_FONT)
  134. label1.pack(pady=10,padx=10)
  135.  
  136. label2 = ttk.Label(self, text="What is a device that provides input into a control system called?", font=LARGE_FONT)
  137. label2.pack(pady=10,padx=10)
  138.  
  139. entry = ttk.Entry(self, text="Question 2", font=LARGE_FONT)
  140. entry.pack()
  141.  
  142. buttonprev = ttk.Button(self, text="Previous", command=lambda: controller.show_frame(Page1))
  143. buttonprev.pack()
  144.  
  145. button2 = ttk.Button(self, text="Submit", command=lambda:[controller.show_frame(Page3),submit(entry.get())])
  146. button2.pack()
  147.  
  148. progressbar = ttk.Progressbar(self, orient = HORIZONTAL, length = 200)
  149. progressbar.config(mode = 'determinate', maximum = 10.0, value = 2)
  150. progressbar.pack()
  151.  
  152.  
  153.  
  154.  
  155.  
  156. class Page3(tk.Frame):
  157.  
  158. def __init__(self, parent, controller):
  159. ttk.Frame.__init__(self, parent)
  160. rchoice = StringVar()
  161.  
  162.  
  163. label1 = ttk.Label(self, text="Question 3", font=LARGE_FONT)
  164. label1.pack(pady=10,padx=10)
  165.  
  166. label2 = ttk.Label(self, text="Which of the Following is an example of an emerging technology?", font=LARGE_FONT)
  167. label2.pack(pady=10,padx=10)
  168.  
  169.  
  170.  
  171. ttk.Radiobutton(self, text="Myspace", variable = rchoice, value = 'myspace').pack(fill = X)
  172. ttk.Radiobutton(self, text="TypeWriter", variable = rchoice, value = 'typewriter').pack(fill = X)
  173. ttk.Radiobutton(self, text="Twitter", variable = rchoice, value = 'twitter').pack(fill = X)
  174. ttk.Radiobutton(self, text="Quantum Computers", variable = rchoice, value = 'Quantum Computers', command = rightanswer).pack(fill = X)
  175. ttk.Radiobutton(self, text="All of The Above", variable = rchoice, value = 'all').pack(fill = X)
  176. ttk.Radiobutton(self, text="None of The Above", variable = rchoice, value = 'none').pack(fill = X)
  177.  
  178.  
  179. buttonprev = ttk.Button(self, text="Previous", command=lambda: controller.show_frame(Page2))
  180. buttonprev.pack()
  181.  
  182. button2 = ttk.Button(self, text="Submit", command=lambda:[controller.show_frame(Page4),submit(str(rchoice.get()))])
  183. button2.pack()
  184.  
  185. progressbar = ttk.Progressbar(self, orient = HORIZONTAL, length = 200)
  186. progressbar.config(mode = 'determinate', maximum = 10.0, value = 3)
  187. progressbar.pack()
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.  
  196. class Page4(tk.Frame):
  197.  
  198. def __init__(self, parent, controller):
  199. ttk.Frame.__init__(self, parent)
  200.  
  201.  
  202.  
  203. label1 = ttk.Label(self, text="Question 4", font=LARGE_FONT)
  204. label1.pack(pady=10,padx=10)
  205.  
  206.  
  207. label2 = ttk.Label(self, text="What kind of Hardware device is a Keyboard?", font=LARGE_FONT)
  208. label2.pack(pady=10,padx=10)
  209.  
  210. entry = ttk.Entry(self, text="Question 4", font=LARGE_FONT)
  211. entry.pack()
  212.  
  213. buttonprev = ttk.Button(self, text="Previous", command=lambda: controller.show_frame(Page3))
  214. buttonprev.pack()
  215.  
  216.  
  217. button2 = ttk.Button(self, text="Submit", command=lambda:[controller.show_frame(Page5),submit(entry.get())])
  218. button2.pack()
  219.  
  220. progressbar = ttk.Progressbar(self, orient = HORIZONTAL, length = 200)
  221. progressbar.config(mode = 'determinate', maximum = 10.0, value = 4)
  222. progressbar.pack()
  223.  
  224.  
  225.  
  226.  
  227.  
  228.  
  229.  
  230.  
  231. class Page5(tk.Frame):
  232.  
  233. def __init__(self, parent, controller):
  234. ttk.Frame.__init__(self, parent)
  235.  
  236.  
  237.  
  238. label1 = ttk.Label(self, text="Question 5", font=LARGE_FONT)
  239. label1.pack(pady=10,padx=10)
  240.  
  241. label2 = ttk.Label(self, text="What kind of Hardware device is a Speaker?", font=LARGE_FONT)
  242. label2.pack(pady=10,padx=10)
  243.  
  244. entry = ttk.Entry(self, text="Question 5", font=LARGE_FONT)
  245. entry.pack()
  246.  
  247. buttonprev = ttk.Button(self, text="Previous", command=lambda: controller.show_frame(Page4))
  248. buttonprev.pack()
  249.  
  250.  
  251. button2 = ttk.Button(self, text="Submit", command=lambda:[controller.show_frame(Page6),submit(entry.get())])
  252. button2.pack()
  253.  
  254. progressbar = ttk.Progressbar(self, orient = HORIZONTAL, length = 200)
  255. progressbar.config(mode = 'determinate', maximum = 10.0, value = 5)
  256. progressbar.pack()
  257.  
  258.  
  259.  
  260.  
  261.  
  262.  
  263.  
  264.  
  265. class Page6(tk.Frame):
  266.  
  267. def __init__(self, parent, controller):
  268. ttk.Frame.__init__(self, parent)
  269.  
  270.  
  271.  
  272.  
  273. label1 = ttk.Label(self, text="Question 6", font=LARGE_FONT)
  274. label1.pack(pady=10,padx=10)
  275.  
  276. label2 = ttk.Label(self, text="What is the truest definition of copyright laws?", font=LARGE_FONT)
  277. label2.pack(pady=10,padx=10)
  278.  
  279. combobox = ttk.Combobox(self)
  280. combobox.config(width = 50, values = ('Laws in place to safeguard legal intellectual property.', 'Laws to enable the copying of rights', 'Laws that stop you from making original work',
  281. 'Laws that only allowing copying correct information', 'All of the Above'))
  282. combobox.pack()
  283.  
  284. buttonprev = ttk.Button(self, text="Previous", command=lambda: controller.show_frame(Page5))
  285. buttonprev.pack()
  286.  
  287.  
  288. button2 = ttk.Button(self, text="Submit", command=lambda:[controller.show_frame(Page7),submit(combobox.get())])
  289. button2.pack()
  290.  
  291. progressbar = ttk.Progressbar(self, orient = HORIZONTAL, length = 200)
  292. progressbar.config(mode = 'determinate', maximum = 10.0, value = 6)
  293. progressbar.pack()
  294.  
  295.  
  296.  
  297.  
  298.  
  299.  
  300. class Page7(tk.Frame):
  301.  
  302. def __init__(self, parent, controller):
  303. ttk.Frame.__init__(self, parent)
  304.  
  305.  
  306.  
  307.  
  308. label1 = ttk.Label(self, text="Question 7", font=LARGE_FONT)
  309. label1.pack(pady=10,padx=10)
  310.  
  311. label2 = ttk.Label(self, text="Software developers who develop custom applications :", font=LARGE_FONT)
  312. label2.pack(pady=10,padx=10)
  313.  
  314. r2choice = StringVar()
  315.  
  316. ttk.Radiobutton(self, text="should bother briefly listening to the customer.", variable = r2choice, value = 'brief').pack(fill = X)
  317. ttk.Radiobutton(self, text="do not need to care about the customer.", variable = r2choice, value = 'dont care').pack(fill = X)
  318. ttk.Radiobutton(self, text="must know their customers' expectations and requirements precisely.", variable = r2choice, value = 'listen', command = rightanswer).pack(fill = X)
  319. ttk.Radiobutton(self, text="must ignore the customer, regardless of their input.", variable = r2choice, value = 'ignore').pack(fill = X)
  320.  
  321.  
  322. buttonprev = ttk.Button(self, text="Previous", command=lambda: controller.show_frame(Page6))
  323. buttonprev.pack()
  324.  
  325.  
  326. button2 = ttk.Button(self, text="Submit", command=lambda:[controller.show_frame(Page8),submit(str(r2choice.get()))])
  327. button2.pack()
  328.  
  329. progressbar = ttk.Progressbar(self, orient = HORIZONTAL, length = 200)
  330. progressbar.config(mode = 'determinate', maximum = 10.0, value = 7)
  331. progressbar.pack()
  332.  
  333.  
  334.  
  335.  
  336.  
  337.  
  338. class Page8(tk.Frame):
  339.  
  340. def __init__(self, parent, controller):
  341. ttk.Frame.__init__(self, parent)
  342.  
  343.  
  344.  
  345.  
  346. label1 = ttk.Label(self, text="Question 8", font=LARGE_FONT)
  347. label1.pack(pady=10,padx=10)
  348.  
  349. label2 = ttk.Label(self, text= "Gradually introducing a new system onto a site is a feature of which method of conversion?", font=LARGE_FONT)
  350. label2.pack(pady=10,padx=10)
  351.  
  352. combobox = ttk.Combobox(self)
  353. combobox.config( values = ('Parallel', 'Direct cut-over', 'Phased', 'All of the Above'))
  354. combobox.pack()
  355.  
  356.  
  357. buttonprev = ttk.Button(self, text="Previous", command=lambda: controller.show_frame(Page7))
  358. buttonprev.pack()
  359.  
  360.  
  361. button2 = ttk.Button(self, text="Submit", command=lambda:[controller.show_frame(Page9),submit(combobox.get())])
  362. button2.pack()
  363.  
  364. progressbar = ttk.Progressbar(self, orient = HORIZONTAL, length = 200)
  365. progressbar.config(mode = 'determinate', maximum = 10.0, value = 8)
  366. progressbar.pack()
  367.  
  368.  
  369.  
  370.  
  371.  
  372.  
  373. class Page9(tk.Frame):
  374.  
  375. def __init__(self, parent, controller):
  376. ttk.Frame.__init__(self, parent)
  377.  
  378.  
  379.  
  380.  
  381. label1 = ttk.Label(self, text="Question 9", font=LARGE_FONT)
  382. label1.pack(pady=10,padx=10)
  383.  
  384. label2 = ttk.Label(self, text="Software that simultaneously simulates a specified number of users entering data into an application is an example of what?", font=LARGE_FONT)
  385. label2.pack(pady=10,padx=10)
  386.  
  387. combobox = ttk.Combobox(self)
  388. combobox.config( values = ('Case utilities', 'Software tools', 'Case tools', 'Virtual box', 'Virtual machine', 'Utility tools'))
  389. combobox.pack()
  390.  
  391.  
  392. buttonprev = ttk.Button(self, text="Previous", command=lambda: controller.show_frame(Page8))
  393. buttonprev.pack()
  394.  
  395. button2 = ttk.Button(self, text="Submit", command=lambda:[controller.show_frame(Page10),submit(combobox.get())])
  396. button2.pack()
  397.  
  398. progressbar = ttk.Progressbar(self, orient = HORIZONTAL, length = 200)
  399. progressbar.config(mode = 'determinate', maximum = 10.0, value = 9)
  400. progressbar.pack()
  401.  
  402.  
  403.  
  404.  
  405.  
  406. class Page10(tk.Frame):
  407.  
  408. def __init__(self, parent, controller):
  409. ttk.Frame.__init__(self, parent)
  410.  
  411.  
  412.  
  413.  
  414. label1 = ttk.Label(self, text="Question 10", font=LARGE_FONT)
  415. label1.pack(pady=10,padx=10)
  416.  
  417. label2 = ttk.Label(self, text="What does the acronym RAM stand for?", font=LARGE_FONT)
  418. label2.pack(pady=10,padx=10)
  419.  
  420. entry = ttk.Entry(self, text="Question 10", font=LARGE_FONT)
  421. entry.pack()
  422.  
  423. buttonprev = ttk.Button(self, text="Previous", command=lambda: controller.show_frame(Page9))
  424. buttonprev.pack()
  425.  
  426.  
  427. button2 = ttk.Button(self, text="Submit",
  428. command=lambda:[controller.show_frame(PageFinish),submit(entry.get())])
  429. button2.pack()
  430.  
  431. progressbar = ttk.Progressbar(self, orient = HORIZONTAL, length = 200)
  432. progressbar.config(mode = 'determinate', maximum = 10.0, value = 10)
  433. progressbar.pack()
  434.  
  435.  
  436.  
  437.  
  438.  
  439. class PageFinish(tk.Frame):
  440.  
  441. def __init__(self, parent, controller):
  442. ttk.Frame.__init__(self, parent)
  443.  
  444. label = ttk.Label(self, text="You Finished!", font=LARGE_FONT)
  445. label.pack(pady=10,padx=10)
  446.  
  447. label = ttk.Label(self, text="Go Back to Home to Find out your score, we hope you aced it!", font=LARGE_FONT)
  448. label.pack(pady=10,padx=10)
  449.  
  450. buttonprev = ttk.Button(self, text="Home", command=lambda:[quizfin()])
  451. buttonprev.pack()
  452.  
  453.  
  454. #Functions
  455.  
  456. def toggle_timecount():
  457. global tog_timecount
  458. tog_timecount = 1
  459.  
  460. #Used to Determine the customisable counter as well as general time management
  461. #Should be noted 59 seconds is used because function begins counting every second at 00 instead of 01
  462. def timecount(minutes):
  463. global timeout
  464. global tog_timecount
  465. if tog_timecount > 0:
  466. print("ahhh")
  467. start = time.time()
  468. time.clock()
  469. sec_elapsed = 0
  470. min_elapsed = 0
  471. while min_elapsed < minutes:
  472. sec_elapsed = time.time() - start
  473. print("minutes count:",min_elapsed,"loop cycle time: %f, seconds count: %02d" % (time.clock() , sec_elapsed))
  474. time.sleep(1)
  475. if sec_elapsed > 59:
  476. min_elapsed += 1
  477. start = time.time()
  478. print("Times Up!")
  479. timeout = 1
  480. tog_timecount = 0
  481.  
  482. def quiz():
  483. root.iconify()
  484. th1 = threading.Thread(target=QuizApp(),)
  485. th2 = threading.Thread(target=timecount, args=(int(countmin.get()),))
  486. th1.start()
  487. th2.start()
  488.  
  489. def quizfin():
  490. root.deiconify()
  491.  
  492. def rightanswer():
  493. global rightans
  494. print("ERROR 2018: Something went wrong when getting response, manually checking...")
  495. rightans = 1
  496.  
  497.  
  498. def submit(response):
  499. global timeout
  500. global score
  501. global countans
  502. global rightans
  503. if rightans == 1:
  504. rightans = 0
  505. submit("Manual Correct")
  506. else:
  507. countans += 1
  508.  
  509. if countans == 1:
  510. answer = qz["How many stages are there in the Structured Approach?"]
  511. if countans == 2:
  512. answer = qz["What is a device that provides input into a control system called?"]
  513. if countans == 3:
  514. answer = qz["Which of the Following is an example of an emerging technology?"]
  515. if countans == 4:
  516. answer = qz["What kind of Hardware device is a Keyboard?"]
  517. if countans == 5:
  518. answer = qz["What kind of Hardware device is a Speaker?"]
  519. if countans == 6:
  520. answer = qz["What is the truest definition of copyright?"]
  521. if countans == 7:
  522. answer = qz["Software developers who develop custom applications :"]
  523. if countans == 8:
  524. answer = qz["Gradually introducing a new system onto a site is a feature of which method of conversion?"]
  525. if countans == 9:
  526. answer = qz["Software that simultaneously simulates a specified number of users entering data into an application is an example of what?"]
  527. if countans == 10:
  528. answer = qz["What does the acronym RAM stand for?"]
  529. if timeout == 0:
  530. if response.lower() == str(answer).lower():
  531. score += 1
  532. print("Correct.")
  533. else:
  534. print("Sorry " + response + " Is WRONG, for question "+ str(countans) + " correct answer is " + str(answer))
  535. print("You Currently have a score of " + str(score))
  536. if countans == 10:
  537. lbscore = ttk.Label(tab1, text= "Correct: " + str(score), font =('Courier', 24, 'bold'), justify = CENTER, foreground = '#23fc8c', background = '#262626')
  538. lbscore.pack(pady=10,padx=10)
  539.  
  540.  
  541.  
  542.  
  543.  
  544.  
  545. if __name__ == '__main__':
  546.  
  547. #Creation of Root Window
  548. root = Tk()
  549. root.resizable(False, False)
  550. root.iconbitmap(default='icon.ico')
  551. root.wm_title("Bugz - Home")
  552.  
  553.  
  554.  
  555. #Variables
  556.  
  557. countmin = IntVar()
  558.  
  559.  
  560. #Properties of Root Window
  561. root.configure(background='#262626')
  562. notebook = ttk.Notebook(root)
  563. notebook.pack()
  564. tab1 = tk.Frame(notebook)
  565. tab1.config(background = '#262626')
  566. tab2 = tk.Frame(notebook)
  567. tab2.config(background = '#262626')
  568.  
  569.  
  570.  
  571.  
  572.  
  573. #Root Window Widgets
  574. notebook.add(tab1, text = 'Quiz')
  575. notebook.add(tab2, text = 'Help')
  576.  
  577. panedwindow = ttk.Panedwindow(tab2, orient = HORIZONTAL)
  578. panedwindow.pack(fill = BOTH, expand = True)
  579.  
  580.  
  581.  
  582. #Home Widgets
  583. lbtitle = ttk.Label(tab1, text = "Error")
  584. lbtitle.config(text= "Bugz HSC SDD Course Quiz", justify = CENTER, foreground = '#3f31e0', background = '#262626', font =('Courier', 24, 'bold'))
  585. lbtitle.pack(pady=10,padx=10)
  586.  
  587. cbcount = tk.Checkbutton(tab1, text = 'In-Test Counter', justify = CENTER, foreground = '#3f31e0', background = '#262626', font =LARGE_FONT, command = toggle_timecount)
  588. cbcount.pack(pady=10,padx=10)
  589.  
  590. lbtime = ttk.Label(tab1, text = "Error")
  591. lbtime.config(text= "Time Limit (Minutes):", justify = CENTER, foreground = '#3f31e0', background = '#262626', font =LARGE_FONT)
  592. lbtime.pack(pady=1,padx=1)
  593.  
  594. sbcount = Spinbox(tab1, from_ = 1, to = 20, textvariable = countmin)
  595. sbcount.pack(pady=1,padx=1)
  596. countmin.get()
  597.  
  598.  
  599.  
  600. btquiz = ttk.Button(tab1, text = "Error")
  601. btquiz.config(text = "Begin Quiz", compound = CENTER, command = quiz)
  602. btquiz.pack(pady=10,padx=10)
  603.  
  604. #Help Widgets
  605. lbtitle = ttk.Label(tab2, text = "Error")
  606. lbtitle.config(text= "Bugz HSC SDD Course Quiz", justify = CENTER, foreground = '#3f31e0', background = '#262626', font =('Courier', 24, 'bold'))
  607. lbtitle.pack(pady=10,padx=10)
  608.  
  609. frame1 = ttk.Frame(panedwindow, height = 100, width = 150, relief = SUNKEN)
  610. frame1.pack()
  611. frame2 = ttk.Frame(panedwindow, height = 400, width = 400, relief = SUNKEN, padding = (30, 15))
  612. frame2.pack()
  613.  
  614.  
  615. panedwindow.add(frame1, weight = 3)
  616. panedwindow.add(frame2, weight = 8)
  617.  
  618. examplegif = PhotoImage(file = 'Key.gif')
  619.  
  620. labelimg = ttk.Label(frame2, image = examplegif)
  621. labelimg.pack(fill = BOTH, expand = True)
  622.  
  623. label1 = ttk.Label(frame1, text="1. Question Number", font=LARGE_FONT)
  624. label1.pack(pady=10,padx=10)
  625.  
  626. label2 = ttk.Label(frame1, text="1. Question Number", font=LARGE_FONT)
  627. label2.pack(pady=10,padx=10)
  628.  
  629. label3 = ttk.Label(frame1, text="1. Question Number", font=LARGE_FONT)
  630. label3.pack(pady=10,padx=10)
  631.  
  632. label4 = ttk.Label(frame1, text="1. Question Number", font=LARGE_FONT)
  633. label2.pack(pady=10,padx=10)
  634.  
  635. label4 = ttk.Label(frame1, text="1. Question Number", font=LARGE_FONT)
  636. label2.pack(pady=10,padx=10)
  637.  
  638. label5 = ttk.Label(frame1, text="1. Question Number", font=LARGE_FONT)
  639. label5.pack(pady=10,padx=10)
  640.  
  641.  
  642.  
  643.  
  644. root.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement