def search_standards(self, f): f.destroy() f = Form() f.search_screen() frame = tk.Frame() frame.pack(pady=10) button_frame = tk.Frame(frame) button_frame.pack() var = tk.IntVar() R1 = tk.Radiobutton(button_frame, text="Subject", variable=var, value=1) R1.pack(pady=2) new_search_button = tk.Button(button_frame, text="Search", command=lambda: self.view_standards(f, 1, f.search_box.get())) new_search_button.pack(pady=2) view_all_button = tk.Button(button_frame, text="View All", command=lambda: self.view_standards(f, 0, f.search_box.get())) view_all_button.pack(pady=2) back_button = tk.Button(button_frame, text="Back", command=lambda: self.main_screen(self.user.accessLevel, self.user, f)) back_button.pack(pady=15) return None
def feedback_search(self, f): f.destroy() f = Form() f.search_screen() frame = tk.Frame() frame.pack(pady=10) button_frame = tk.Frame(frame) button_frame.pack() var = tk.IntVar() #R1 = tk.Radiobutton(button_frame, text="Last Name", variable=var, value=1) #R1.pack(pady=2) R2 = tk.Radiobutton(button_frame, text="Educator Id", variable=var, value=2) R2.pack(pady=2) new_search_button = tk.Button(button_frame, text="Search", command=lambda: self.view_feedback(f.search_box.get(), f)) new_search_button.pack(pady=2) back_button = tk.Button(button_frame, text="Back", command=lambda: self.main_screen(self.user.accessLevel, self.user, f)) back_button.pack(pady=2) return None
def search_student_form(self, access_level, f): f.destroy() f = Form() f.search_screen() frame = tk.Frame() frame.pack(pady=10) button_frame = tk.Frame(frame) button_frame.pack() var = tk.IntVar() R1 = tk.Radiobutton(button_frame, text="Last Name", variable=var, value=1) R1.pack(pady=2) R2 = tk.Radiobutton(button_frame, text="Student Id", variable=var, value=2) R2.pack(pady=2) new_search_button = tk.Button(button_frame, text="Search", command=lambda: self.search_for_student(access_level, f, var.get(), f.search_box.get())) new_search_button.pack(pady=2) back_button = tk.Button(button_frame, text="Back", command=lambda: self.main_screen(self.user.accessLevel, self.user, f)) back_button.pack(pady=2) return None