Python Please update source code, Add another message box(next to fill) called Save. this option will save the grades from students to a text file.
Python
Please update source code, Add another message box(next to fill) called "Save". this option will save the grades from students to a text file.
from tkinter import Tk, StringVar, ttk, messagebox import os from tkinter import*
##--------------------------Title-----------------------------------------
root = Tk() root.title(" Grading Register") root.geometry('1000x650+0+0') root.configure(background= 'black')
##--------------------------Frames-------------------------------------
LeftMyFrame= Frame (root, width =1000 , height= 650, bd=8, relief="raise") LeftMyFrame.pack(side=LEFT) RightMyFrame= Frame(root, width=350, height= 650, bd=8, relief="raise") RightMyFrame.pack(side=RIGHT)
LeftMyFrame1= Frame (LeftMyFrame, width =1000 , height= 100, bd=8, relief="raise") LeftMyFrame1.pack(side=TOP) LeftMyFrame2= Frame(LeftMyFrame, width=1000, height= 550, bd=8, relief="raise") LeftMyFrame2.pack(side=TOP)
##RightMyFrame1= Frame (RightMyFrame, width =350 , height= 215, bd=8, relief="raise") ##RightMyFrame1.pack(side=TOP) ##RightMyFrame2= Frame(RightMyFrame, width=350, height=415, bd=8, relief="raise") ##RightMyFrame2.pack(side=TOP)
##-------------------------Variables------------------------------------ ##DateofOrder = StringVar() value0 = StringVar() value1 = StringVar() value2 = StringVar() value3 = StringVar() value4 = StringVar() value5 = StringVar() value6 = StringVar() value7 = StringVar() value8 = StringVar() value9 = StringVar() value10 = StringVar() value11 = StringVar() value12 = StringVar() value13 = StringVar() value14 = StringVar() value15 = StringVar() value16 = StringVar() value17 = StringVar() value18 = StringVar() value19 = StringVar() value20 = StringVar() value21 = StringVar() value22 = StringVar() value23 = StringVar() value24 = StringVar() value25 = StringVar() value26 = StringVar() value27 = StringVar() value28 = StringVar() value29 = StringVar() value30 = StringVar() value31 = StringVar() value32 = StringVar() value33 = StringVar() value34 = StringVar() value35 = StringVar() value36 = StringVar() value37 = StringVar() value38 = StringVar() value39 = StringVar() value40 = StringVar() value41 = StringVar() value42 = StringVar() value43 = StringVar() value44 = IntVar() value45 = IntVar()
def Fill(): if value0.get()=="A": value4.set("A") value8.set("A") value12.set("A") value16.set("A") value20.set("A") value24.set("A") value28.set("A") value32.set("A") value36.set("A") value40.set("A") elif value0.get()=="B": value4.set("B") value4.set("B") value8.set("B") value12.set("B") value16.set("B") value20.set("B") value24.set("B") value28.set("B") value32.set("B") value36.set("B") elif value0.get()=="C": value4.set("C") value8.set("C") value12.set("C") value16.set("C") value20.set("C") value24.set("C") value28.set("C") value32.set("C") value36.set("C") value40.set("C") elif value0.get()=="D": value4.set("D") value8.set("D") value12.set("D") value16.set("D") value20.set("D") value24.set("D") value28.set("D") value32.set("D") value36.set("D") value40.set("D") elif value0.get()=="F": value4.set("F") value8.set("F") value12.set("F") value16.set("F") value20.set("F") value24.set("F") value28.set("F") value32.set("F") value36.set("F") value40.set("F") elif value0.get()=="W": value4.set("W") value8.set("W") value12.set("W") value16.set("W") value20.set("W") value24.set("W") value28.set("W") value32.set("W") value36.set("W") value40.set("W") elif value0.get()==" ": value4.set(" ") value8.set(" ") value12.set(" ") value16.set(" ") value20.set(" ") value24.set(" ") value28.set(" ") value32.set(" ") value36.set(" ") value40.set(" ") if value1.get()=="A": value5.set("A") value9.set("A") value13.set("A") value17.set("A") value21.set("A") value25.set("A") value29.set("A") value33.set("A") value37.set("A") value41.set("A") elif value1.get()=="B": value5.set("B") value9.set("B") value13.set("B") value17.set("B") value21.set("B") value25.set("B") value29.set("B") value33.set("B") value37.set("B") value41.set("B") elif value1.get()=="C": value5.set("C") value9.set("C") value13.set("C") value17.set("C") value21.set("C") value25.set("C") value29.set("C") value33.set("C") value37.set("C") value41.set("C") elif value1.get()=="D": value5.set("D") value9.set("D") value13.set("D") value17.set("D") value21.set("D") value25.set("D") value29.set("D") value33.set("D") value37.set("D") value41.set("D") elif value1.get()=="F": value5.set("F") value9.set("F") value13.set("F") value17.set("F") value21.set("F") value25.set("F") value29.set("F") value33.set("F") value37.set("F") value41.set("F") elif value1.get()=="W": value5.set("W") value9.set("W") value13.set("W") value17.set("W") value21.set("W") value25.set("W") value29.set("W") value33.set("W") value37.set("W") value41.set("W") elif value1.get()==" ": value5.set(" ") value9.set(" ") value13.set(" ") value17.set(" ") value21.set(" ") value25.set(" ") value29.set(" ") value33.set(" ") value37.set(" ") value41.set(" ")
if value2.get()=="A": value6.set("A") value10.set("A") value14.set("A") value18.set("A") value22.set("A") value26.set("A") value30.set("A") value34.set("A") value38.set("A") value42.set("A") elif value2.get()=="B": value6.set("B") value10.set("B") value14.set("B") value18.set("B") value22.set("B") value26.set("B") value30.set("B") value34.set("B") value38.set("B") value42.set("B") elif value2.get()=="C": value6.set("C") value10.set("C") value14.set("C") value18.set("C") value22.set("C") value26.set("C") value30.set("C") value34.set("C") value38.set("C") value42.set("C") elif value2.get()=="D": value6.set("D") value10.set("D") value14.set("D") value18.set("D") value22.set("D") value26.set("D") value30.set("D") value34.set("D") value38.set("D") value42.set("D") elif value2.get()=="F": value6.set("F") value10.set("F") value14.set("F") value18.set("F") value22.set("F") value26.set("F") value30.set("F") value34.set("F") value38.set("F") value42.set("F") elif value2.get()=="W": value6.set("W") value10.set("W") value14.set("W") value18.set("W") value22.set("W") value26.set("W") value30.set("W") value34.set("W") value38.set("W") value42.set("W") elif value2.get()==" ": value6.set(" ") value10.set(" ") value14.set(" ") value18.set(" ") value22.set(" ") value26.set(" ") value30.set(" ") value34.set(" ") value38.set(" ") value42.set(" ")
if value3.get()=="A": value7.set("A") value11.set("A") value15.set("A") value19.set("A") value23.set("A") value27.set("A") value31.set("A") value35.set("A") value39.set("A") value43.set("A") elif value3.get()=="B": value7.set("B") value11.set("B") value15.set("B") value19.set("B") value23.set("B") value27.set("B") value31.set("B") value35.set("B") value39.set("B") value43.set("B") elif value3.get()=="C": value7.set("C") value11.set("C") value15.set("C") value19.set("C") value23.set("C") value27.set("C") value31.set("C") value35.set("C") value39.set("C") value43.set("C") elif value3.get()=="D": value7.set("D") value11.set("D") value15.set("D") value19.set("D") value23.set("D") value27.set("D") value31.set("D") value35.set("D") value39.set("D") value43.set("D") elif value3.get()=="F": value7.set("F") value11.set("F") value15.set("F") value19.set("F") value23.set("F") value27.set("F") value31.set("F") value35.set("F") value39.set("F") value43.set("F") elif value3.get()=="W": value7.set("W") value11.set("W") value15.set("W") value19.set("W") value23.set("W") value27.set("W") value31.set("W") value35.set("W") value39.set("W") value43.set("W") elif value3.get()==" ": value7.set(" ") value11.set(" ") value15.set(" ") value19.set(" ") value23.set(" ") value27.set(" ") value31.set(" ") value35.set(" ") value39.set(" ") value43.set(" ")
def Reset(): value0.set ("") value1.set ("") value2.set ("") value3.set ("") value4.set ("") value5.set ("") value6.set ("") value7.set ("") value8.set ("") value9.set ("") value10.set("") value11.set("") value12.set("") value13.set("") value14.set("") value15.set("") value16.set("") value17.set("") value18.set("") value19.set("") value20.set("") value21.set("") value22.set("") value23.set("") value24.set("") value25.set("") value26.set("") value27.set("") value28.set("") value29.set("") value30.set("") value31.set("") value32.set("") value33.set("") value34.set("") value35.set("") value36.set("") value37.set("") value38.set("") value39.set("") value40.set("") value41.set("") value42.set("") value43.set("")
def qExit(): qExit=messagebox.askyesno("Exit System", "Do you want to quit?") if qExit > 0: root.destroy() return
##---------------------------------music------------------------------------ Fcanvas=Canvas(RightMyFrame, bg="blue", width=350, height= 650) def snd1(): os.system("C:\\Users\shiya\Desktop\A.wav")
def snd2(): os.system("C:\\Users\shiya\Desktop\A.wav")
rb1=Radiobutton(RightMyFrame, text="play audio", variable=value44, value=1, command=snd1).grid(sticky=W) rb2=Radiobutton(RightMyFrame, text="play audio 2", textvariable=value45, value=1, command=snd2).grid(sticky=W) ##-------------------------Components------------------------------------
No= Label(LeftMyFrame1, font=('arial',10,'bold'), text="No", bd=16) No.grid(row=1, column=0, sticky=W) StudentNo= Label(LeftMyFrame1, font=('arial',10,'bold'), text="Student No", bd=16) StudentNo.grid(row=1, column=1, sticky=W) StudentName= Label(LeftMyFrame1, font=('arial',10,'bold'), text="Student Name", bd=16) StudentName.grid(row=1, column=2, sticky=W)
ExamOne= Label(LeftMyFrame1, font=('arial',10,'bold'), text="Exam 1", bd=16) ExamOne.grid(row=0, column=3, sticky=W) ExamTwo= Label(LeftMyFrame1, font=('arial',10,'bold'), text="Exam 2", bd=16) ExamTwo.grid(row=0, column=4, sticky=W) FinalProject= Label(LeftMyFrame1, font=('arial',10,'bold'), text="Final Project", bd=16) FinalProject.grid(row=0, column=5, sticky=W) FinalGrade= Label(LeftMyFrame1, font=('arial',10,'bold'), text="Final Grade", bd=16) FinalGrade.grid(row=0, column=6, sticky=W)
box = ttk.Combobox(LeftMyFrame1, textvariable=value0, state='readonly') box['values'] = (' ','A', 'B', 'C', 'D', 'F', 'W') box.current(0) box.grid(row=1, column=3)
box = ttk.Combobox(LeftMyFrame1, textvariable=value1, state='readonly') box['values'] = (' ','A', 'B', 'C', 'D', 'F', 'W') box.current(0) box.grid(row=1, column=4)
box = ttk.Combobox(LeftMyFrame1, textvariable=value2, state='readonly') box['values'] = (' ','A', 'B', 'C', 'D', 'F', 'W') box.current(0) box.grid(row=1, column=5)
box = ttk.Combobox(LeftMyFrame1, textvariable=value3, state='readonly') box['values'] = (' ','A', 'B', 'C', 'D', 'F', 'W') box.current(0) box.grid(row=1, column=6)
buttonFill = Button(LeftMyFrame1, text='Fill', padx=2, pady=2, bd=2, fg='black', font=('arial',10,'bold'), width=4, height=1, command=Fill).grid(row=1, column=7) buttonReset = Button(LeftMyFrame1, text='Reset', padx=2, pady=2, bd=2, fg='black', font=('arial',10,'bold'), width=4, height=1, command=Reset).grid(row=1, column=8) buttonExit = Button(LeftMyFrame1, text='Exit', padx=2, pady=2, bd=2, fg='black', font=('arial',10,'bold'), width=4, height=1, command=qExit).grid(row=1, column=9) ##-----------------------------------student1----------------------------- No= Label(LeftMyFrame2, font=('arial',10,'bold'), text="01", bd=16) No.grid(row=0, column=0, sticky=W) StudentNo= Label(LeftMyFrame2, font=('arial',10,'bold'), text="1111", padx=2, pady=2, bd=2, fg="black", width=15) StudentNo.grid(row=0, column=1, sticky=W) StudentName= Label(LeftMyFrame2, font=('arial',10,'bold'), text="Student 1", padx=2, pady=2, bd=2, fg="black", width=12) StudentName.grid(row=0, column=2, sticky=W)
box = ttk.Combobox(LeftMyFrame2, textvariable=value4, state='readonly') box['values'] = (' ','A', 'B', 'C', 'D', 'F', 'W') box.current(0) box.grid(row=0, column=3)
box = ttk.Combobox(LeftMyFrame2, textvariable=value5, state='readonly') box['values'] = (' ','A', 'B', 'C', 'D', 'F', 'W') box.current(0) box.grid(row=0, column=4)
box = ttk.Combobox(LeftMyFrame2, textvariable=value6, state='readonly') box['values'] = (' ','A', 'B', 'C', 'D', 'F', 'W') box.current(0) box.grid(row=0, column=5)
box = ttk.Combobox(LeftMyFrame2, textvariable=value7, state='readonly') box['values'] = (' ','A', 'B', 'C', 'D', 'F', 'W') box.current(0) box.grid(row=0, column=6)
buttonFill = Button(LeftMyFrame2, text='', padx=2, pady=2, bd=2, fg='black', font=('arial',10,'bold'), width=4, height=1).grid(row=0, column=7) buttonReset = Button(LeftMyFrame2, text='', padx=2, pady=2, bd=2, fg='black', font=('arial',10,'bold'), width=4, height=1).grid(row=0, column=8) buttonExit = Button(LeftMyFrame2, text='', padx=2, pady=2, bd=2, fg='black', font=('arial',10,'bold'), width=4, height=1).grid(row=0, column=9) ##--------------------------Student2---------------------------------------- No= Label(LeftMyFrame2, font=('arial',10,'bold'), text="01", bd=16) No.grid(row=1, column=0, sticky=W) StudentNo= Label(LeftMyFrame2, font=('arial',10,'bold'), text="2222", padx=2, pady=2, bd=2, fg="black", width=15) StudentNo.grid(row=1, column=1, sticky=W) StudentName= Label(LeftMyFrame2, font=('arial',10,'bold'), text="Student 2", padx=2, pady=2, bd=2, fg="black", width=12) StudentName.grid(row=1, column=2, sticky=W)
box = ttk.Combobox(LeftMyFrame2, textvariable=value8, state='readonly') box['values'] = (' ','A', 'B', 'C', 'D', 'F', 'W') box.current(0) box.grid(row=1, column=3)
box = ttk.Combobox(LeftMyFrame2, textvariable=value9, state='readonly') box['values'] = (' ','A', 'B', 'C', 'D', 'F', 'W') box.current(0) box.grid(row=1, column=4)
box = ttk.Combobox(LeftMyFrame2, textvariable=value10, state='readonly') box['values'] = (' ','A', 'B', 'C', 'D', 'F', 'W') box.current(0) box.grid(row=1, column=5)
box = ttk.Combobox(LeftMyFrame2, textvariable=value11, state='readonly') box['values'] = (' ','A', 'B', 'C', 'D', 'F', 'W') box.current(0) box.grid(row=1, column=6)
buttonFill = Button(LeftMyFrame2, text='', padx=2, pady=2, bd=2, fg='black', font=('arial',10,'bold'), width=4, height=1).grid(row=1, column=7) buttonReset = Button(LeftMyFrame2, text='', padx=2, pady=2, bd=2, fg='black', font=('arial',10,'bold'), width=4, height=1).grid(row=1, column=8) buttonExit = Button(LeftMyFrame2, text='', padx=2, pady=2, bd=2, fg='black', font=('arial',10,'bold'), width=4, height=1).grid(row=1, column=9) ##----------------------------Student3---------------------------------------- No= Label(LeftMyFrame2, font=('arial',10,'bold'), text="03", bd=16) No.grid(row=2, column=0, sticky=W) StudentNo= Label(LeftMyFrame2, font=('arial',10,'bold'), text="3333", padx=2, pady=2, bd=2, fg="black", width=15) StudentNo.grid(row=2, column=1, sticky=W) StudentName= Label(LeftMyFrame2, font=('arial',10,'bold'), text="Student 3", padx=2, pady=2, bd=2, fg="black", width=12) StudentName.grid(row=2, column=2, sticky=W)
box = ttk.Combobox(LeftMyFrame2, textvariable=value12, state='readonly') box['values'] = (' ','A', 'B', 'C', 'D', 'F', 'W') box.current(0) box.grid(row=2, column=3)
box = ttk.Combobox(LeftMyFrame2, textvariable=value13, state='readonly') box['values'] = (' ','A', 'B', 'C', 'D', 'F', 'W') box.current(0) box.grid(row=2, column=4)
box = ttk.Combobox(LeftMyFrame2, textvariable=value14, state='readonly') box['values'] = (' ','A', 'B', 'C', 'D', 'F', 'W') box.current(0) box.grid(row=2, column=5)
box = ttk.Combobox(LeftMyFrame2, textvariable=value15, state='readonly') box['values'] = (' ','A', 'B', 'C', 'D', 'F', 'W') box.current(0) box.grid(row=2, column=6)
buttonFill = Button(LeftMyFrame2, text='', padx=2, pady=2, bd=2, fg='black', font=('arial',10,'bold'), width=4, height=1).grid(row=2, column=7) buttonReset = Button(LeftMyFrame2, text='', padx=2, pady=2, bd=2, fg='black', font=('arial',10,'bold'), width=4, height=1).grid(row=2, column=8) buttonExit = Button(LeftMyFrame2, text='', padx=2, pady=2, bd=2, fg='black', font=('arial',10,'bold'), width=4, height=1).grid(row=2, column=9) ##----------------------------student4------------------------------------------- No= Label(LeftMyFrame2, font=('arial',10,'bold'), text="04", bd=16) No.grid(row=3, column=0, sticky=W) StudentNo= Label(LeftMyFrame2, font=('arial',10,'bold'), text="4444", padx=2, pady=2, bd=2, fg="black", width=15) StudentNo.grid(row=3, column=1, sticky=W) StudentName= Label(LeftMyFrame2, font=('arial',10,'bold'), text="Student 4", padx=2, pady=2, bd=2, fg="black", width=12) StudentName.grid(row=3, column=2, sticky=W)
box = ttk.Combobox(LeftMyFrame2, textvariable=value16, state='readonly') box['values'] = (' ','A', 'B', 'C', 'D', 'F', 'W') box.current(0) box.grid(row=3, column=3)
box = ttk.Combobox(LeftMyFrame2, textvariable=value17, state='readonly') box['values'] = (' ','A', 'B', 'C', 'D', 'F', 'W') box.current(0) box.grid(row=3, column=4)
box = ttk.Combobox(LeftMyFrame2, textvariable=value18, state='readonly') box['values'] = (' ','A', 'B', 'C', 'D', 'F', 'W') box.current(0) box.grid(row=3, column=5)
box = ttk.Combobox(LeftMyFrame2, textvariable=value19, state='readonly') box['values'] = (' ','A', 'B', 'C', 'D', 'F', 'W') box.current(0) box.grid(row=3, column=6)
buttonFill = Button(LeftMyFrame2, text='', padx=2, pady=2, bd=2, fg='black', font=('arial',10,'bold'), width=4, height=1).grid(row=3, column=7) buttonReset = Button(LeftMyFrame2, text='', padx=2, pady=2, bd=2, fg='black', font=('arial',10,'bold'), width=4, height=1).grid(row=3, column=8) buttonExit = Button(LeftMyFrame2, text='', padx=2, pady=2, bd=2, fg='black', font=('arial',10,'bold'), width=4, height=1).grid(row=3, column=9) ##------------------------------student5---------------------------------------- No= Label(LeftMyFrame2, font=('arial',10,'bold'), text="05", bd=16) No.grid(row=4, column=0, sticky=W) StudentNo= Label(LeftMyFrame2, font=('arial',10,'bold'), text="2225", padx=2, pady=2, bd=2, fg="black", width=15) StudentNo.grid(row=4, column=1, sticky=W) StudentName= Label(LeftMyFrame2, font=('arial',10,'bold'), text="Student 5", padx=2, pady=2, bd=2, fg="black", width=12) StudentName.grid(row=4, column=2, sticky=W)
box = ttk.Combobox(LeftMyFrame2, textvariable=value20, state='readonly') box['values'] = (' ','A', 'B', 'C', 'D', 'F', 'W') box.current(0) box.grid(row=4, column=3)
box = ttk.Combobox(LeftMyFrame2, textvariable=value21, state='readonly') box['values'] = (' ','A', 'B', 'C', 'D', 'F', 'W') box.current(0) box.grid(row=4, column=4)
box = ttk.Combobox(LeftMyFrame2, textvariable=value22, state='readonly') box['values'] = (' ','A', 'B', 'C', 'D', 'F', 'W') box.current(0) box.grid(row=4, column=5)
box = ttk.Combobox(LeftMyFrame2, textvariable=value23, state='readonly') box['values'] = (' ','A', 'B', 'C', 'D', 'F', 'W') box.current(0) box.grid(row=4, column=6)
buttonFill = Button(LeftMyFrame2, text='', padx=2, pady=2, bd=2, fg='black', font=('arial',10,'bold'), width=4, height=1).grid(row=4, column=7) buttonReset = Button(LeftMyFrame2, text='', padx=2, pady=2, bd=2, fg='black', font=('arial',10,'bold'), width=4, height=1).grid(row=4, column=8) buttonExit = Button(LeftMyFrame2, text='', padx=2, pady=2, bd=2, fg='black', font=('arial',10,'bold'), width=4, height=1).grid(row=4, column=9)
##-------------------------------student6---------------------------------------- No= Label(LeftMyFrame2, font=('arial',10,'bold'), text="06", bd=16) No.grid(row=5, column=0, sticky=W) StudentNo= Label(LeftMyFrame2, font=('arial',10,'bold'), text="2226", padx=2, pady=2, bd=2, fg="black", width=15) StudentNo.grid(row=5, column=1, sticky=W) StudentName= Label(LeftMyFrame2, font=('arial',10,'bold'), text="Student 6", padx=2, pady=2, bd=2, fg="black", width=12) StudentName.grid(row=5, column=2, sticky=W)
box = ttk.Combobox(LeftMyFrame2, textvariable=value24, state='readonly') box['values'] = (' ','A', 'B', 'C', 'D', 'F', 'W') box.current(0) box.grid(row=5, column=3)
box = ttk.Combobox(LeftMyFrame2, textvariable=value25, state='readonly') box['values'] = (' ','A', 'B', 'C', 'D', 'F', 'W') box.current(0) box.grid(row=5, column=4)
box = ttk.Combobox(LeftMyFrame2, textvariable=value26, state='readonly') box['values'] = (' ','A', 'B', 'C', 'D', 'F', 'W') box.current(0) box.grid(row=5, column=5)
box = ttk.Combobox(LeftMyFrame2, textvariable=value27, state='readonly') box['values'] = (' ','A', 'B', 'C', 'D', 'F', 'W') box.current(0) box.grid(row=5, column=6)
buttonFill = Button(LeftMyFrame2, text='', padx=2, pady=2, bd=2, fg='black', font=('arial',10,'bold'), width=4, height=1).grid(row=5, column=7) buttonReset = Button(LeftMyFrame2, text='', padx=2, pady=2, bd=2, fg='black', font=('arial',10,'bold'), width=4, height=1).grid(row=5, column=8) buttonExit = Button(LeftMyFrame2, text='', padx=2, pady=2, bd=2, fg='black', font=('arial',10,'bold'), width=4, height=1).grid(row=5, column=9) ##------------------------------student7--------------------------------------- No= Label(LeftMyFrame2, font=('arial',10,'bold'), text="07", bd=16) No.grid(row=6, column=0, sticky=W) StudentNo= Label(LeftMyFrame2, font=('arial',10,'bold'), text="2227", padx=2, pady=2, bd=2, fg="black", width=15) StudentNo.grid(row=6, column=1, sticky=W) StudentName= Label(LeftMyFrame2, font=('arial',10,'bold'), text="Student 7", padx=2, pady=2, bd=2, fg="black", width=12) StudentName.grid(row=6, column=2, sticky=W)
box = ttk.Combobox(LeftMyFrame2, textvariable=value28, state='readonly') box['values'] = (' ','A', 'B', 'C', 'D', 'F', 'W') box.current(0) box.grid(row=6, column=3)
box = ttk.Combobox(LeftMyFrame2, textvariable=value29, state='readonly') box['values'] = (' ','A', 'B', 'C', 'D', 'F', 'W') box.current(0) box.grid(row=6, column=4)
box = ttk.Combobox(LeftMyFrame2, textvariable=value30, state='readonly') box['values'] = (' ','A', 'B', 'C', 'D', 'F', 'W') box.current(0) box.grid(row=6, column=5)
box = ttk.Combobox(LeftMyFrame2, textvariable=value31, state='readonly') box['values'] = (' ','A', 'B', 'C', 'D', 'F', 'W') box.current(0) box.grid(row=6, column=6)
buttonFill = Button(LeftMyFrame2, text='', padx=2, pady=2, bd=2, fg='black', font=('arial',10,'bold'), width=4, height=1).grid(row=6, column=7) buttonReset = Button(LeftMyFrame2, text='', padx=2, pady=2, bd=2, fg='black', font=('arial',10,'bold'), width=4, height=1).grid(row=6, column=8) buttonExit = Button(LeftMyFrame2, text='', padx=2, pady=2, bd=2, fg='black', font=('arial',10,'bold'), width=4, height=1).grid(row=6, column=9) ##----------------------------student8------------------------------------------ No= Label(LeftMyFrame2, font=('arial',10,'bold'), text="08", bd=16) No.grid(row=7, column=0, sticky=W) StudentNo= Label(LeftMyFrame2, font=('arial',10,'bold'), text="10939554", padx=2, pady=2, bd=2, fg="black", width=15) StudentNo.grid(row=7, column=1, sticky=W) StudentName= Label(LeftMyFrame2, font=('arial',10,'bold'), text="student 8", padx=2, pady=2, bd=2, fg="black", width=12) StudentName.grid(row=7, column=2, sticky=W)
box = ttk.Combobox(LeftMyFrame2, textvariable=value32, state='readonly') box['values'] = (' ','A', 'B', 'C', 'D', 'F', 'W') box.current(0) box.grid(row=7, column=3)
box = ttk.Combobox(LeftMyFrame2, textvariable=value33, state='readonly') box['values'] = (' ','A', 'B', 'C', 'D', 'F', 'W') box.current(0) box.grid(row=7, column=4)
box = ttk.Combobox(LeftMyFrame2, textvariable=value34, state='readonly') box['values'] = (' ','A', 'B', 'C', 'D', 'F', 'W') box.current(0) box.grid(row=7, column=5)
box = ttk.Combobox(LeftMyFrame2, textvariable=value35, state='readonly') box['values'] = (' ','A', 'B', 'C', 'D', 'F', 'W') box.current(0) box.grid(row=7, column=6)
buttonFill = Button(LeftMyFrame2, text='', padx=2, pady=2, bd=2, fg='black', font=('arial',10,'bold'), width=4, height=1).grid(row=7, column=7) buttonReset = Button(LeftMyFrame2, text='', padx=2, pady=2, bd=2, fg='black', font=('arial',10,'bold'), width=4, height=1).grid(row=7, column=8) buttonExit = Button(LeftMyFrame2, text='', padx=2, pady=2, bd=2, fg='black', font=('arial',10,'bold'), width=4, height=1).grid(row=7, column=9) ##-----------------------------student9----------------------------------------- No= Label(LeftMyFrame2, font=('arial',10,'bold'), text="09", bd=16) No.grid(row=8, column=0, sticky=W) StudentNo= Label(LeftMyFrame2, font=('arial',10,'bold'), text="2229", padx=2, pady=2, bd=2, fg="black", width=15) StudentNo.grid(row=8, column=1, sticky=W) StudentName= Label(LeftMyFrame2, font=('arial',10,'bold'), text="Student 9", padx=2, pady=2, bd=2, fg="black", width=12) StudentName.grid(row=8, column=2, sticky=W)
box = ttk.Combobox(LeftMyFrame2, textvariable=value36, state='readonly') box['values'] = (' ','A', 'B', 'C', 'D', 'F', 'W') box.current(0) box.grid(row=8, column=3)
box = ttk.Combobox(LeftMyFrame2, textvariable=value37, state='readonly') box['values'] = (' ','A', 'B', 'C', 'D', 'F', 'W') box.current(0) box.grid(row=8, column=4)
box = ttk.Combobox(LeftMyFrame2, textvariable=value38, state='readonly') box['values'] = (' ','A', 'B', 'C', 'D', 'F', 'W') box.current(0) box.grid(row=8, column=5)
box = ttk.Combobox(LeftMyFrame2, textvariable=value39, state='readonly') box['values'] = (' ','A', 'B', 'C', 'D', 'F', 'W') box.current(0) box.grid(row=8, column=6)
buttonFill = Button(LeftMyFrame2, text='', padx=2, pady=2, bd=2, fg='black', font=('arial',10,'bold'), width=4, height=1).grid(row=8, column=7) buttonReset = Button(LeftMyFrame2, text='', padx=2, pady=2, bd=2, fg='black', font=('arial',10,'bold'), width=4, height=1).grid(row=8, column=8) buttonExit = Button(LeftMyFrame2, text='', padx=2, pady=2, bd=2, fg='black', font=('arial',10,'bold'), width=4, height=1).grid(row=8, column=9) ##-----------------------------student10---------------------------------------- No= Label(LeftMyFrame2, font=('arial',10,'bold'), text="10", bd=16) No.grid(row=9, column=0, sticky=W) StudentNo= Label(LeftMyFrame2, font=('arial',10,'bold'), text="2210", padx=2, pady=2, bd=2, fg="black", width=15) StudentNo.grid(row=9, column=1, sticky=W) StudentName= Label(LeftMyFrame2, font=('arial',10,'bold'), text="Student 10", padx=2, pady=2, bd=2, fg="black", width=12) StudentName.grid(row=9, column=2, sticky=W)
box = ttk.Combobox(LeftMyFrame2, textvariable=value40, state='readonly') box['values'] = (' ','A', 'B', 'C', 'D', 'F', 'W') box.current(0) box.grid(row=9, column=3)
box = ttk.Combobox(LeftMyFrame2, textvariable=value41, state='readonly') box['values'] = (' ','A', 'B', 'C', 'D', 'F', 'W') box.current(0) box.grid(row=9, column=4)
box = ttk.Combobox(LeftMyFrame2, textvariable=value42, state='readonly') box['values'] = (' ','A', 'B', 'C', 'D', 'F', 'W') box.current(0) box.grid(row=9, column=5)
box = ttk.Combobox(LeftMyFrame2, textvariable=value43, state='readonly') box['values'] = (' ','A', 'B', 'C', 'D', 'F', 'W') box.current(0) box.grid(row=9, column=6)
buttonFill = Button(LeftMyFrame2, text='', padx=2, pady=2, bd=2, fg='black', font=('arial',10,'bold'), width=4, height=1).grid(row=9, column=7) buttonReset = Button(LeftMyFrame2, text='', padx=2, pady=2, bd=2, fg='black', font=('arial',10,'bold'), width=4, height=1).grid(row=9, column=8) buttonExit = Button(LeftMyFrame2, text='', padx=2, pady=2, bd=2, fg='black', font=('arial',10,'bold'), width=4, height=1).grid(row=9, column=9) Fcanvas.grid() root.mainloop()
Step by Step Solution
There are 3 Steps involved in it
Step: 1
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started