def __init__(self, top=None): '''This class configures and populates the toplevel window. top is the toplevel containing window.''' _bgcolor = '#d9d9d9' # X11 color: 'gray85' _fgcolor = '#000000' # X11 color: 'black' _compcolor = '#d9d9d9' # X11 color: 'gray85' _ana1color = '#d9d9d9' # X11 color: 'gray85' _ana2color = '#ececec' # Closest X11 color: 'gray92' font10 = "-family {Segoe UI Black} -size 13 -weight bold" font9 = "-family {Yu Gothic UI Semibold} -size 12 -weight bold" \ "" self.style = ttk.Style() if sys.platform == "win32": self.style.theme_use('winnative') self.style.configure('.', background=_bgcolor) self.style.configure('.', foreground=_fgcolor) self.style.map('.', background=[('selected', _compcolor), ('active', _ana2color)]) top.geometry("685x521+650+150") top.minsize(148, 1) top.maxsize(1924, 1055) top.resizable(1, 1) top.title("Attendace - Subjects") top.configure(background="#d9d9d9") self.Frame1 = tk.Frame(top) self.Frame1.place(relx=0.0, rely=0.0, relheight=1.007, relwidth=1.0) self.Frame1.configure(relief='groove') self.Frame1.configure(borderwidth="2") self.Frame1.configure(relief="groove") self.Frame1.configure(background="#00ffff") self.scrollClass = ScrolledListBox(self.Frame1) self.scrollClass.configure(exportselection=False) self.scrollClass.place(relx=0.043, rely=0.072, relheight=0.608, relwidth=0.251) self.scrollClass.configure(background="white") self.scrollClass.configure(cursor="xterm") self.scrollClass.configure(disabledforeground="#a3a3a3") self.scrollClass.configure(font=font9) self.scrollClass.configure(foreground="black") self.scrollClass.configure(highlightbackground="#d9d9d9") self.scrollClass.configure(highlightcolor="#d9d9d9") self.scrollClass.configure(selectbackground="blue") self.scrollClass.configure(selectforeground="white") self.value_list = ["Select Class"] self.vl = model.readAllClass(self.value_list) for i in range(len(self.vl)): self.scrollClass.insert(i, self.vl[i]) self.scrollClass.bind('<<ListboxSelect>>', self.onselect) self.scrollSubject = ScrolledListBox(self.Frame1) self.scrollSubject.configure(exportselection=False) self.scrollSubject.place(relx=0.329, rely=0.072, relheight=0.608, relwidth=0.621) self.scrollSubject.configure(background="white") self.scrollSubject.configure(cursor="xterm") self.scrollSubject.configure(disabledforeground="#a3a3a3") self.scrollSubject.configure(font=font9) self.scrollSubject.configure(foreground="black") self.scrollSubject.configure(highlightbackground="#d9d9d9") self.scrollSubject.configure(highlightcolor="#d9d9d9") self.scrollSubject.configure(selectbackground="blue") self.scrollSubject.configure(selectforeground="white") self.value_list = ["Subject Name"] self.scrollSubject.insert(0, self.value_list[0]) self.btnEdit = tk.Button(self.Frame1) self.btnEdit.place(relx=0.186, rely=0.74, height=53, width=208) self.btnEdit.configure(activebackground="#ececec") self.btnEdit.configure(activeforeground="#000000") self.btnEdit.configure(background="#eac515") self.btnEdit.configure(borderwidth="3") self.btnEdit.configure(disabledforeground="#a3a3a3") self.btnEdit.configure(font=font10) self.btnEdit.configure(foreground="#000000") self.btnEdit.configure(highlightbackground="#d9d9d9") self.btnEdit.configure(highlightcolor="black") self.btnEdit.configure(pady="0") self.btnEdit.configure(text='''Edit''') self.btnEdit.configure(command=self.editSubject) self.btnDelete = tk.Button(self.Frame1) self.btnDelete.place(relx=0.529, rely=0.74, height=53, width=208) self.btnDelete.configure(activebackground="#ececec") self.btnDelete.configure(activeforeground="#000000") self.btnDelete.configure(background="#eac515") self.btnDelete.configure(borderwidth="3") self.btnDelete.configure(disabledforeground="#a3a3a3") self.btnDelete.configure(font=font10) self.btnDelete.configure(foreground="#000000") self.btnDelete.configure(highlightbackground="#d9d9d9") self.btnDelete.configure(highlightcolor="black") self.btnDelete.configure(pady="0") self.btnDelete.configure(text='''Delete''') self.btnDelete.configure(command=self.delSubject)
def __init__(self, top=None): '''This class configures and populates the toplevel window. top is the toplevel containing window.''' _bgcolor = '#d9d9d9' # X11 color: 'gray85' _fgcolor = '#000000' # X11 color: 'black' _compcolor = '#d9d9d9' # X11 color: 'gray85' _ana1color = '#d9d9d9' # X11 color: 'gray85' _ana2color = '#ececec' # Closest X11 color: 'gray92' font10 = "-family {Yu Gothic UI Semibold} -size 12 -weight " \ "bold" font11 = "-family {Yu Gothic UI Semibold} -size 11 -weight " \ "bold" font12 = "-family {Segoe UI Emoji} -size 13 -weight bold" font9 = "-family {Yu Gothic UI Semibold} -size 13 -weight bold" \ "" self.style = ttk.Style() if sys.platform == "win32": self.style.theme_use('winnative') self.style.configure('.', background=_bgcolor) self.style.configure('.', foreground=_fgcolor) self.style.configure('.', font="TkDefaultFont") self.style.map('.', background=[('selected', _compcolor), ('active', _ana2color)]) top.geometry("722x588+650+150") top.minsize(148, 1) top.maxsize(1924, 1055) top.resizable(1, 1) top.title("Attendance - Edit Student") top.configure(background="#d9d9d9") self.Frame1 = tk.Frame(top) self.Frame1.place(relx=0.0, rely=0.0, relheight=1.012, relwidth=1.004) self.Frame1.configure(relief='groove') self.Frame1.configure(borderwidth="2") self.Frame1.configure(relief="groove") self.Frame1.configure(background="#00ffff") self.Label1 = tk.Label(self.Frame1) self.Label1.place(relx=0.11, rely=0.134, height=45, width=167) self.Label1.configure(background="#00ffff") self.Label1.configure(disabledforeground="#a3a3a3") self.Label1.configure(font=font9) self.Label1.configure(foreground="#000000") self.Label1.configure(text='''Roll No''') self.txtRoll = tk.Entry(self.Frame1) self.txtRoll.place(relx=0.359, rely=0.134, height=44, relwidth=0.531) self.txtRoll.configure(background="white") self.txtRoll.configure(borderwidth="2") self.txtRoll.configure(disabledforeground="#a3a3a3") self.txtRoll.configure(font=font11) self.txtRoll.configure(foreground="#000000") self.txtRoll.configure(insertbackground="black") self.txtRoll.insert(0, view_student_support.rval.get()) self.Label1_1 = tk.Label(self.Frame1) self.Label1_1.place(relx=0.11, rely=0.25, height=45, width=167) self.Label1_1.configure(activebackground="#f9f9f9") self.Label1_1.configure(activeforeground="black") self.Label1_1.configure(background="#00ffff") self.Label1_1.configure(disabledforeground="#a3a3a3") self.Label1_1.configure( font= "-family {Yu Gothic UI Semibold} -size 13 -weight bold -slant roman -underline 0 -overstrike 0" ) self.Label1_1.configure(foreground="#000000") self.Label1_1.configure(highlightbackground="#d9d9d9") self.Label1_1.configure(highlightcolor="black") self.Label1_1.configure(text='''Student Name''') self.txtName = tk.Entry(self.Frame1) self.txtName.place(relx=0.359, rely=0.25, height=44, relwidth=0.531) self.txtName.configure(background="white") self.txtName.configure(borderwidth="2") self.txtName.configure(disabledforeground="#a3a3a3") self.txtName.configure( font= "-family {Yu Gothic UI Semibold} -size 11 -weight bold -slant roman -underline 0 -overstrike 0" ) self.txtName.configure(foreground="#000000") self.txtName.configure(highlightbackground="#d9d9d9") self.txtName.configure(highlightcolor="black") self.txtName.configure(insertbackground="black") self.txtName.configure(selectbackground="blue") self.txtName.configure(selectforeground="white") self.txtName.insert(0, view_student_support.nval.get()) self.Label1_2 = tk.Label(self.Frame1) self.Label1_2.place(relx=0.081, rely=0.375, height=45, width=195) self.Label1_2.configure(activebackground="#f9f9f9") self.Label1_2.configure(activeforeground="black") self.Label1_2.configure(background="#00ffff") self.Label1_2.configure(disabledforeground="#a3a3a3") self.Label1_2.configure( font= "-family {Yu Gothic UI Semibold} -size 13 -weight bold -slant roman -underline 0 -overstrike 0" ) self.Label1_2.configure(foreground="#000000") self.Label1_2.configure(highlightbackground="#d9d9d9") self.Label1_2.configure(highlightcolor="black") self.Label1_2.configure(text='''Student Class''') self.comboClass = ttk.Combobox(self.Frame1) self.comboClass.place(relx=0.361, rely=0.375, relheight=0.077, relwidth=0.52) self.value_list = ['Select Class'] model.readAllClass(self.value_list) i = self.value_list.index(view_student_support.cval.get()) self.comboClass.configure(values=self.value_list) self.comboClass.configure(font=font10) self.comboClass.configure(state='readonly') self.comboClass.configure(textvariable=edit_student_support.combobox) self.comboClass.configure(takefocus="") self.comboClass.current(i) self.Label1_3 = tk.Label(self.Frame1) self.Label1_3.place(relx=0.108, rely=0.519, height=45, width=167) self.Label1_3.configure(activebackground="#f9f9f9") self.Label1_3.configure(activeforeground="black") self.Label1_3.configure(background="#00ffff") self.Label1_3.configure(disabledforeground="#a3a3a3") self.Label1_3.configure( font= "-family {Yu Gothic UI Semibold} -size 13 -weight bold -slant roman -underline 0 -overstrike 0" ) self.Label1_3.configure(foreground="#000000") self.Label1_3.configure(highlightbackground="#d9d9d9") self.Label1_3.configure(highlightcolor="black") self.Label1_3.configure(text='''Student Picture''') self.btnBrowsePic = tk.Button(self.Frame1) self.btnBrowsePic.place(relx=0.63, rely=0.519, height=53, width=186) self.btnBrowsePic.configure(activebackground="#ececec") self.btnBrowsePic.configure(activeforeground="#000000") self.btnBrowsePic.configure(background="#eac515") self.btnBrowsePic.configure(borderwidth="3") self.btnBrowsePic.configure(disabledforeground="#a3a3a3") self.btnBrowsePic.configure(font=font12) self.btnBrowsePic.configure(foreground="#000000") self.btnBrowsePic.configure(highlightbackground="#d9d9d9") self.btnBrowsePic.configure(highlightcolor="black") self.btnBrowsePic.configure(pady="0") self.btnBrowsePic.configure(text='''Browse Picture''') self.btnBrowsePic.configure(command=self.load_file) self.btnTakePic = tk.Button(self.Frame1) self.btnTakePic.place(relx=0.361, rely=0.519, height=53, width=166) self.btnTakePic.configure(activebackground="#ececec") self.btnTakePic.configure(activeforeground="#000000") self.btnTakePic.configure(background="#eac515") self.btnTakePic.configure(borderwidth="3") self.btnTakePic.configure(disabledforeground="#a3a3a3") self.btnTakePic.configure( font= "-family {Segoe UI Emoji} -size 13 -weight bold -slant roman -underline 0 -overstrike 0" ) self.btnTakePic.configure(foreground="#000000") self.btnTakePic.configure(highlightbackground="#d9d9d9") self.btnTakePic.configure(highlightcolor="black") self.btnTakePic.configure(pady="0") self.btnTakePic.configure(text='''Take Picture''') self.btnTakePic.configure(command=self.takePic) self.lblPicPath = tk.Label(self.Frame1) self.lblPicPath.place(relx=0.377, rely=0.618, height=35, width=364) self.lblPicPath.configure(background="#00ffff") self.lblPicPath.configure(disabledforeground="#a3a3a3") self.lblPicPath.configure(font=font10) self.lblPicPath.configure(foreground="#000000") self.pic = "" self.btnEdit = tk.Button(self.Frame1) self.btnEdit.place(relx=0.361, rely=0.697, height=53, width=386) self.btnEdit.configure(activebackground="#ececec") self.btnEdit.configure(activeforeground="#000000") self.btnEdit.configure(background="#eac515") self.btnEdit.configure(borderwidth="3") self.btnEdit.configure(disabledforeground="#a3a3a3") self.btnEdit.configure(font=font12) self.btnEdit.configure(foreground="#000000") self.btnEdit.configure(highlightbackground="#d9d9d9") self.btnEdit.configure(highlightcolor="black") self.btnEdit.configure(pady="0") self.btnEdit.configure(text='''Save''') self.btnEdit.configure(command=self.editStudent)
def __init__(self, top=None): '''This class configures and populates the toplevel window. top is the toplevel containing window.''' _bgcolor = '#d9d9d9' # X11 color: 'gray85' _fgcolor = '#000000' # X11 color: 'black' _compcolor = '#d9d9d9' # X11 color: 'gray85' _ana1color = '#d9d9d9' # X11 color: 'gray85' _ana2color = '#ececec' # Closest X11 color: 'gray92' font9 = "-family {Segoe UI Black} -size 9 -weight bold" self.style = ttk.Style() if sys.platform == "win32": self.style.theme_use('winnative') self.style.configure('.',background=_bgcolor) self.style.configure('.',foreground=_fgcolor) self.style.configure('.',font="TkDefaultFont") self.style.map('.',background= [('selected', _compcolor), ('active',_ana2color)]) top.geometry("765x512+650+150") top.minsize(148, 1) top.maxsize(1924, 1030) top.resizable(1, 1) top.title("Attendance") top.configure(background="#d9d9d9") top.configure(highlightbackground="#d9d9d9") top.configure(highlightcolor="black") self.Frame1 = tk.Frame(top) self.Frame1.place(relx=0.0, rely=0.0, relheight=1.006, relwidth=1.0) self.Frame1.configure(relief='groove') self.Frame1.configure(borderwidth="2") self.Frame1.configure(relief="groove") self.Frame1.configure(background="#00ffff") self.Frame1.configure(highlightbackground="#d9d9d9") self.Frame1.configure(highlightcolor="black") self.scrollClass = ScrolledListBox(self.Frame1) self.scrollClass.configure(exportselection=False) self.scrollClass.place(relx=0.026, rely=0.068, relheight=0.408 , relwidth=0.319) self.scrollClass.configure(background="white") self.scrollClass.configure(cursor="xterm") self.scrollClass.configure(disabledforeground="#a3a3a3") self.scrollClass.configure(font="-family {Yu Gothic UI Semibold} -size 12 -weight bold") self.scrollClass.configure(foreground="black") self.scrollClass.configure(highlightbackground="#d9d9d9") self.scrollClass.configure(highlightcolor="#d9d9d9") self.scrollClass.configure(selectbackground="blue") self.scrollClass.configure(selectforeground="white") self.vlist = ["Select Class"] self.vl = model.readAllClass(self.vlist) for i in range(len(self.vl)): self.scrollClass.insert(i, self.vl[i]) self.scrollClass.bind('<<ListboxSelect>>', self.onselect) self.scrollSubject = ScrolledListBox(self.Frame1) self.scrollSubject.configure(exportselection=False) self.scrollSubject.place(relx=0.026, rely=0.509, relheight=0.406 , relwidth=0.319) self.scrollSubject.configure(background="white") self.scrollSubject.configure(cursor="xterm") self.scrollSubject.configure(disabledforeground="#a3a3a3") self.scrollSubject.configure(font="-family {Yu Gothic UI Semibold} -size 12 -weight bold") self.scrollSubject.configure(foreground="black") self.scrollSubject.configure(highlightbackground="#d9d9d9") self.scrollSubject.configure(highlightcolor="#d9d9d9") self.scrollSubject.configure(selectbackground="blue") self.scrollSubject.configure(selectforeground="white") self.value_list = ["Select Subject"] self.scrollSubject.insert(0, self.value_list[0]) self.Label1 = tk.Label(self.Frame1) self.Label1.place(relx=0.405, rely=0.167, height=31, width=152) self.Label1.configure(activebackground="#f9f9f9") self.Label1.configure(activeforeground="black") self.Label1.configure(background="#00ffff") self.Label1.configure(disabledforeground="#a3a3a3") self.Label1.configure(font="-family {Yu Gothic UI Semibold} -size 13 -weight bold -slant roman -underline 0 -overstrike 0") self.Label1.configure(foreground="#000000") self.Label1.configure(highlightbackground="#d9d9d9") self.Label1.configure(highlightcolor="black") self.Label1.configure(text='''Lecture Frame''') self.txtLec = tk.Entry(self.Frame1) self.txtLec.place(relx=0.641, rely=0.167,height=34, relwidth=0.319) self.txtLec.configure(background="white") self.txtLec.configure(borderwidth="2") self.txtLec.configure(disabledforeground="#a3a3a3") self.txtLec.configure(font="-family {Yu Gothic UI Semibold} -size 11 -weight bold -slant roman -underline 0 -overstrike 0") self.txtLec.configure(foreground="#000000") self.txtLec.configure(highlightbackground="#d9d9d9") self.txtLec.configure(highlightcolor="black") self.txtLec.configure(insertbackground="black") self.txtLec.configure(selectbackground="blue") self.txtLec.configure(selectforeground="white") self.Label1_3 = tk.Label(self.Frame1) self.Label1_3.place(relx=0.405, rely=0.315, height=32, width=152) self.Label1_3.configure(activebackground="#f9f9f9") self.Label1_3.configure(activeforeground="black") self.Label1_3.configure(background="#00ffff") self.Label1_3.configure(disabledforeground="#a3a3a3") self.Label1_3.configure(font="-family {Yu Gothic UI Semibold} -size 13 -weight bold -slant roman -underline 0 -overstrike 0") self.Label1_3.configure(foreground="#000000") self.Label1_3.configure(highlightbackground="#d9d9d9") self.Label1_3.configure(highlightcolor="black") self.Label1_3.configure(text='''Teacher Name''') self.txtTeacher = tk.Entry(self.Frame1) self.txtTeacher.place(relx=0.641, rely=0.315,height=34, relwidth=0.319) self.txtTeacher.configure(background="white") self.txtTeacher.configure(borderwidth="2") self.txtTeacher.configure(disabledforeground="#a3a3a3") self.txtTeacher.configure(font="-family {Yu Gothic UI Semibold} -size 11 -weight bold -slant roman -underline 0 -overstrike 0") self.txtTeacher.configure(foreground="#000000") self.txtTeacher.configure(highlightbackground="#d9d9d9") self.txtTeacher.configure(highlightcolor="black") self.txtTeacher.configure(insertbackground="black") self.txtTeacher.configure(selectbackground="blue") self.txtTeacher.configure(selectforeground="white") self.btnAttend = tk.Button(self.Frame1) self.btnAttend.place(relx=0.523, rely=0.592, height=123, width=236) self.btnAttend.configure(activebackground="#ececec") self.btnAttend.configure(activeforeground="#000000") self.btnAttend.configure(background="#eac515") self.btnAttend.configure(borderwidth="3") self.btnAttend.configure(disabledforeground="#a3a3a3") self.btnAttend.configure(font="-family {Segoe UI Black} -size 13 -weight bold -slant roman -underline 0 -overstrike 0") self.btnAttend.configure(foreground="#000000") self.btnAttend.configure(highlightbackground="#d9d9d9") self.btnAttend.configure(highlightcolor="black") self.btnAttend.configure(pady="0") self.btnAttend.configure(text='''Mark Attendance''') self.btnAttend.configure(command=self.markAttend) self.Label1_4 = tk.Label(self.Frame1) self.Label1_4.place(relx=0.405, rely=0.462, height=32, width=153) self.Label1_4.configure(activebackground="#f9f9f9") self.Label1_4.configure(activeforeground="black") self.Label1_4.configure(background="#00ffff") self.Label1_4.configure(disabledforeground="#a3a3a3") self.Label1_4.configure(font="-family {Yu Gothic UI Semibold} -size 13 -weight bold -slant roman -underline 0 -overstrike 0") self.Label1_4.configure(foreground="#000000") self.Label1_4.configure(highlightbackground="#d9d9d9") self.Label1_4.configure(highlightcolor="black") self.Label1_4.configure(text='''Lecture Type''') self.comboLecType = ttk.Combobox(self.Frame1) self.comboLecType.place(relx=0.641, rely=0.462, relheight=0.068 , relwidth=0.323) self.value_list = ['Select Type','Lecture','Practical',] self.comboLecType.configure(values=self.value_list) self.comboLecType.configure(state='readonly') self.comboLecType.configure(font="-family {Yu Gothic UI Semibold} -size 12 -weight bold -slant roman -underline 0 -overstrike 0") self.comboLecType.configure(textvariable=main_support.combobox) self.comboLecType.configure(takefocus="") self.comboLecType.current(0) self.btnRefresh = tk.Button(self.Frame1) self.btnRefresh.place(relx=0.261, rely=0.019, height=23, width=66) self.btnRefresh.configure(activebackground="#ececec") self.btnRefresh.configure(activeforeground="#000000") self.btnRefresh.configure(background="#eac515") self.btnRefresh.configure(borderwidth="3") self.btnRefresh.configure(disabledforeground="#a3a3a3") self.btnRefresh.configure(font=font9) self.btnRefresh.configure(foreground="#000000") self.btnRefresh.configure(highlightbackground="#d9d9d9") self.btnRefresh.configure(highlightcolor="black") self.btnRefresh.configure(pady="0") self.btnRefresh.configure(text='''Refresh''') self.btnRefresh.configure(command=self.onRefresh) self.menubar = tk.Menu(top,font="TkMenuFont",bg=_bgcolor,fg=_fgcolor) top.configure(menu = self.menubar) self.sub_menu = tk.Menu(top, activebackground="#ececec", activeborderwidth=1, activeforeground="#000000", background="#d9d9d9", borderwidth=1, disabledforeground="#a3a3a3", foreground="#000000", tearoff=0) self.menubar.add_cascade(menu=self.sub_menu, label="View") self.sub_menu.add_command( label="Student", command=self.navViewStudent) self.sub_menu.add_command( label="Subject", command=self.navViewSubject) self.sub_menu.add_command( label="Class", command=self.navViewClass) self.sub_menu1 = tk.Menu(top, activebackground="#ececec", activeborderwidth=1, activeforeground="#000000", background="#d9d9d9", borderwidth=1, disabledforeground="#a3a3a3", foreground="#000000", tearoff=0) self.menubar.add_cascade(menu=self.sub_menu1, label="Add") self.sub_menu1.add_command( label="Student", command=self.navStudent) self.sub_menu1.add_command( label="Subject", command=self.navSubject) self.sub_menu1.add_command( label="Class", command=self.navClass) # self.menubar.add_command( # label="Reports") self.menubar.add_command( label="Change Password", command=self.navChPass) self.menubar.add_command( label="Logout", command=self.logoutUser)
def onRefresh(self): self.scrollClass.delete(0, self.scrollClass.size_()) v = ["Select Class"] self.vl = model.readAllClass(v) for i in range(0, len(self.vl)): self.scrollClass.insert(i, self.vl[i])
def __init__(self, top=None): '''This class configures and populates the toplevel window. top is the toplevel containing window.''' _bgcolor = '#d9d9d9' # X11 color: 'gray85' _fgcolor = '#000000' # X11 color: 'black' _compcolor = '#d9d9d9' # X11 color: 'gray85' _ana1color = '#d9d9d9' # X11 color: 'gray85' _ana2color = '#ececec' # Closest X11 color: 'gray92' font10 = "-family {Yu Gothic UI Semibold} -size 11 -weight " \ "bold" font11 = "-family {Yu Gothic UI Semibold} -size 12 -weight " \ "bold" font12 = "-family {Segoe UI Emoji} -size 12 -weight bold" font9 = "-family {Yu Gothic UI Semibold} -size 13 -weight bold" \ "" self.style = ttk.Style() if sys.platform == "win32": self.style.theme_use('winnative') self.style.configure('.', background=_bgcolor) self.style.configure('.', foreground=_fgcolor) self.style.configure('.', font="TkDefaultFont") self.style.map('.', background=[('selected', _compcolor), ('active', _ana2color)]) top.geometry("722x588+650+150") top.minsize(148, 1) top.maxsize(1924, 1055) top.resizable(1, 1) top.title("Attendance - Edit Subject") top.configure(background="#d9d9d9") self.Frame1 = tk.Frame(top) self.Frame1.place(relx=0.0, rely=0.0, relheight=1.012, relwidth=1.004) self.Frame1.configure(relief='groove') self.Frame1.configure(borderwidth="2") self.Frame1.configure(relief="groove") self.Frame1.configure(background="#00ffff") self.Label1 = tk.Label(self.Frame1) self.Label1.place(relx=0.132, rely=0.217, height=55, width=163) self.Label1.configure(background="#00ffff") self.Label1.configure(disabledforeground="#a3a3a3") self.Label1.configure(font=font9) self.Label1.configure(foreground="#000000") self.Label1.configure(text='''Subject Name''') self.txtSubName = tk.Entry(self.Frame1) self.txtSubName.place(relx=0.359, rely=0.232, height=44, relwidth=0.491) self.txtSubName.configure(background="white") self.txtSubName.configure(borderwidth="2") self.txtSubName.configure(disabledforeground="#a3a3a3") self.txtSubName.configure(font=font10) self.txtSubName.configure(foreground="#000000") self.txtSubName.configure(insertbackground="black") self.txtSubName.insert(0, view_subject_support.sval.get()) self.Label1_5 = tk.Label(self.Frame1) self.Label1_5.place(relx=0.12, rely=0.388, height=54, width=174) self.Label1_5.configure(activebackground="#f9f9f9") self.Label1_5.configure(activeforeground="black") self.Label1_5.configure(background="#00ffff") self.Label1_5.configure(disabledforeground="#a3a3a3") self.Label1_5.configure( font= "-family {Yu Gothic UI Semibold} -size 13 -weight bold -slant roman -underline 0 -overstrike 0" ) self.Label1_5.configure(foreground="#000000") self.Label1_5.configure(highlightbackground="#d9d9d9") self.Label1_5.configure(highlightcolor="black") self.Label1_5.configure(text='''Class Name''') self.comboCls = ttk.Combobox(self.Frame1) self.comboCls.place(relx=0.359, rely=0.403, relheight=0.072, relwidth=0.498) self.value_list = ['Select Class'] model.readAllClass(self.value_list) i = self.value_list.index(view_subject_support.cval.get()) self.comboCls.configure(values=self.value_list) self.comboCls.configure(state='readonly') self.comboCls.configure(font=font11) self.comboCls.configure(textvariable=edit_subject_support.combobox) self.comboCls.configure(takefocus="") self.comboCls.current(i) self.btnEditSub = tk.Button(self.Frame1) self.btnEditSub.place(relx=0.37, rely=0.556, height=63, width=353) self.btnEditSub.configure(activebackground="#ececec") self.btnEditSub.configure(activeforeground="#000000") self.btnEditSub.configure(background="#eac515") self.btnEditSub.configure(borderwidth="3") self.btnEditSub.configure(disabledforeground="#a3a3a3") self.btnEditSub.configure(font=font12) self.btnEditSub.configure(foreground="#000000") self.btnEditSub.configure(highlightbackground="#d9d9d9") self.btnEditSub.configure(highlightcolor="black") self.btnEditSub.configure(pady="0") self.btnEditSub.configure(text='''Save''') self.btnEditSub.configure(command=self.editSubject)