def main(): root = tk.Tk() root.title("Student Database") root.resizable(False,False) fm = MainWindow(root) fm.grid() root.mainloop()