import openpyxl
from tkinter import *
import tkinter.messagebox
import tkinter.simpledialog
import tkinter.colorchooser

class Hrms:
    def __init__(self):
        self.wb3 = openpyxl.load_workbook("HRMS.xlsx")
        self.patient3 = self.wb3.active
        self.patient3 = self.wb3["Patient"]
        self.doctor3 = self.wb3["Doctor"]
        self.nurse3 = self.wb3["Nurse"]
        self.laboratorist3 = self.wb3["Laboratorist"]
        self.pharmacist3 = self.wb3["Pharmacist"]
        self.accountant3 = self.wb3["Accountant"]
        self.appointment3 = self.wb3["Appointment"]
        self.surgery3 = self.wb3["Surgeries"]
        self.payment3 = self.wb3["Payments"]
        self.medicine3 = self.wb3["Medicines"]
        self.birth3 = self.wb3["Birth report"]
        self.death3 = self.wb3["Death report"]
        self.security3 = self.wb3["Security"]
        self.report3 = self.wb3["Report"]
        window = Tk()
        window.title("Hospital Record Management System")
        window.geometry("1350x490")
        window.resizable(0, 0)
        self.I = False
        self.II = False
        self.III = False
        self.IIII = False
        self.IIIII = False
        self.IIIIII = False
        self.J = False
        self.JJ = False
        self.JJJ = False
        self.JJJJ = False
        self.JJJJJ = False
        self.JJJJJJ = False
        self.frame1 = Frame(window)
        self.frame1.pack()
        label1 = Label(self.frame1, text="Hospital Record Management System", font=("Times new roman", 16))
        label1.grid(column=0, row=0, columnspan=3)
        label2 = Label(self.frame1, text="")
        label2.grid(column=4, row=0, pady=50)
        button1 = Button(self.frame1, text="Admin", bg="darkgrey", command=self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.frame1, text="Patient", bg="darkgrey", command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.frame1, text="Doctor", bg="darkgrey", command=self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.frame1, text="Nurse", bg="darkgrey", command=self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.frame1, text="Laboratorist", bg="darkgrey", command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.frame1, text="Pharmacist", bg="darkgrey", command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.frame1, text="Accountant", bg="darkgrey", command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button8 = Button(self.frame1, text="Home", bg="#444343", command=self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        self.frame2 = Frame(window)
        self.frame2.pack()
        label1 = Label(self.frame2, text="Hospital Record Management System", font=("Times new roman", 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.frame2, text="               ")
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.frame2, text="Admin", bg="lightgrey", command=self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.frame2, text="Patient", bg="darkgrey", command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.frame2, text="Doctor", bg="darkgrey", command=self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.frame2, text="Nurse", bg="darkgrey", command=self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.frame2, text="Laboratorist", bg="darkgrey", command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.frame2, text="Pharmacist", bg="darkgrey", command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.frame2, text="Accountant", bg="darkgrey", command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button8 = Button(self.frame2, text="Home", bg="#444343", command=self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        self.login1 = StringVar()
        self.pass1 = StringVar()
        label10 = Label(self.frame2,text="Username:", font=("Times new roman", 12), width=10)
        label10.grid(column=3, row=2)
        self.entry1 = Entry(self.frame2, textvariable=self.login1)
        self.entry1.grid(column=4, row=2)
        label11 = Label(self.frame2,text="Password:", font=("Times new roman", 12))
        label11.grid(column=3, row=3)
        self.entry2 = Entry(self.frame2, textvariable=self.pass1)
        self.entry2.grid(column=4, row=3)
        button8 = Button(self.frame2,text="Login ", bg="darkgrey", command=self.framesb)
        button8.grid(column=4, row=4, pady=10, ipadx=40)
        self.frame3 = Frame(window)
        self.frame3.pack()
        label1 = Label(self.frame3, text="Hospital Record Management System", font=("Times new roman", 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.frame3, text="               ")
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.frame3, text="Admin", bg="darkgrey", command=self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.frame3, text="Patient", bg="lightgrey", command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.frame3, text="Doctor", bg="darkgrey", command=self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.frame3, text="Nurse", bg="darkgrey", command=self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.frame3, text="Laboratorist", bg="darkgrey", command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.frame3, text="Pharmacist", bg="darkgrey", command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.frame3, text="Accountant", bg="darkgrey", command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button8 = Button(self.frame3, text="Home", bg="#444343", command=self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        self.login2 = StringVar()
        self.pass2 = StringVar()
        label10 = Label(self.frame3, text="Patient Id:", font=("Times new roman", 12), width=15)
        label10.grid(column=3, row=2)
        self.entry111 = Entry(self.frame3, width=15, textvariable=self.login2)
        self.entry111.grid(column=4, row=2)
        label11 = Label(self.frame3, text="Password:", font=("Times new roman", 12), width=15)
        label11.grid(column=3, row=3)
        self.entry222 = Entry(self.frame3, width=15, textvariable=self.pass2)
        self.entry222.grid(column=4, row=3)
        button1 = Button(self.frame3, text="Login", bg="darkgrey", command=self.framesJ)
        button1.grid(column=4, row=4, pady=10, ipadx=40)
        self.frame4 = Frame(window)
        self.frame4.pack()
        label1 = Label(self.frame4, text="Hospital Record Management System", font=("Times new roman", 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.frame4, text="               ")
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.frame4, text="Admin", bg="darkgrey", command=self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.frame4, text="Patient", bg="darkgrey", command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.frame4, text="Doctor", bg="lightgrey", command=self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.frame4, text="Nurse", bg="darkgrey", command=self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.frame4, text="Laboratorist", bg="darkgrey", command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.frame4, text="Pharmacist", bg="darkgrey", command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.frame4, text="Accountant", bg="darkgrey", command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button8 = Button(self.frame4, text="Home", bg="#444343", command=self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        self.login3 = StringVar()
        self.pass3 = StringVar()
        label10 = Label(self.frame4, text="Doctor Id:", font=("Times new roman", 12), width=15)
        label10.grid(column=3, row=2)
        self.entry112 = Entry(self.frame4, width=15, textvariable=self.login3)
        self.entry112.grid(column=4, row=2)
        label11 = Label(self.frame4, text="Password:", font=("Times new roman", 12), width=15)
        label11.grid(column=3, row=3)
        self.entry223 = Entry(self.frame4, width=15, textvariable=self.pass3)
        self.entry223.grid(column=4, row=3)
        button1 = Button(self.frame4, text="Login", bg="darkgrey", command=self.framesJ)
        button1.grid(column=4, row=4, pady=10, ipadx=40)
        self.frame5 = Frame(window)
        self.frame5.pack()
        label1 = Label(self.frame5, text="Hospital Record Management System", font=("Times new roman", 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.frame5, text="               ")
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.frame5, text="Admin", bg="darkgrey", command=self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.frame5, text="Patient", bg="darkgrey", command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.frame5, text="Doctor", bg="darkgrey", command=self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.frame5, text="Nurse", bg="lightgrey", command=self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.frame5, text="Laboratorist", bg="darkgrey", command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.frame5, text="Pharmacist", bg="darkgrey", command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.frame5, text="Accountant", bg="darkgrey", command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button8 = Button(self.frame5, text="Home", bg="#444343", command=self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        self.login4 = StringVar()
        self.pass4 = StringVar()
        label10 = Label(self.frame5, text="Nurse Id:", font=("Times new roman", 12), width=15)
        label10.grid(column=3, row=2)
        self.entry113 = Entry(self.frame5, width=15, textvariable=self.login4)
        self.entry113.grid(column=4, row=2)
        label11 = Label(self.frame5, text="Password:", font=("Times new roman", 12), width=15)
        label11.grid(column=3, row=3)
        self.entry224 = Entry(self.frame5, width=15, textvariable=self.pass4)
        self.entry224.grid(column=4, row=3)
        button1 = Button(self.frame5, text="Login", bg="darkgrey", command=self.framesJ)
        button1.grid(column=4, row=4, pady=10, ipadx=40)
        self.frame6 = Frame(window)
        self.frame6.pack()
        label1 = Label(self.frame6, text="Hospital Record Management System", font=("Times new roman", 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.frame6, text="               ")
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.frame6, text="Admin", bg="darkgrey", command=self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.frame6, text="Patient", bg="darkgrey", command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.frame6, text="Doctor", bg="darkgrey", command=self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.frame6, text="Nurse", bg="darkgrey", command=self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.frame6, text="Laboratorist", bg="lightgrey", command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.frame6, text="Pharmacist", bg="darkgrey", command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.frame6, text="Accountant", bg="darkgrey", command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button8 = Button(self.frame6, text="Home", bg="#444343", command=self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        self.login5 = StringVar()
        self.pass5 = StringVar()
        label10 = Label(self.frame6, text="Laboratorist Id:", font=("Times new roman", 12), width=15)
        label10.grid(column=3, row=2)
        self.entry114 = Entry(self.frame6, width=15, textvariable=self.login5)
        self.entry114.grid(column=4, row=2)
        label11 = Label(self.frame6, text="Password:", font=("Times new roman", 12), width=15)
        label11.grid(column=3, row=3)
        self.entry225 = Entry(self.frame6, width=15, textvariable=self.pass5)
        self.entry225.grid(column=4, row=3)
        button1 = Button(self.frame6, text="Login", bg="darkgrey", command=self.framesJ)
        button1.grid(column=4, row=4, pady=10, ipadx=40)
        self.frame7 = Frame(window)
        self.frame7.pack()
        label1 = Label(self.frame7, text="Hospital Record Management System", font=("Times new roman", 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.frame7, text="               ")
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.frame7, text="Admin", bg="darkgrey", command=self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.frame7, text="Patient", bg="darkgrey", command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.frame7, text="Doctor", bg="darkgrey", command=self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.frame7, text="Nurse", bg="darkgrey", command=self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.frame7, text="Laboratorist", bg="darkgrey", command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.frame7, text="Pharmacist", bg="lightgrey", command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.frame7, text="Accountant", bg="darkgrey", command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button8 = Button(self.frame7, text="Home", bg="#444343", command=self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        self.login6 = StringVar()
        self.pass6 = StringVar()
        label10 = Label(self.frame7, text="Pharmacist Id:", font=("Times new roman", 12), width=15)
        label10.grid(column=3, row=2)
        self.entry115 = Entry(self.frame7, width=15, textvariable=self.login6)
        self.entry115.grid(column=4, row=2)
        label11 = Label(self.frame7, text="Password:", font=("Times new roman", 12), width=15)
        label11.grid(column=3, row=3)
        self.entry226 = Entry(self.frame7, width=15, textvariable=self.pass6)
        self.entry226.grid(column=4, row=3)
        button1 = Button(self.frame7, text="Login", bg="darkgrey", command=self.framesJ)
        button1.grid(column=4, row=4, pady=10, ipadx=40)
        self.frame8 = Frame(window)
        self.frame8.pack()
        label1 = Label(self.frame8, text="Hospital Record Management System", font=("Times new roman", 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.frame8, text="               ")
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.frame8, text="Admin", bg="darkgrey", command=self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.frame8, text="Patient", bg="darkgrey", command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.frame8, text="Doctor", bg="darkgrey", command=self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.frame8, text="Nurse", bg="darkgrey", command=self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.frame8, text="Laboratorist", bg="darkgrey", command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.frame8, text="Pharmacist", bg="darkgrey", command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.frame8, text="Accountant", bg="lightgrey", command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button8 = Button(self.frame8, text="Home", bg="#444343", command=self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        self.login7 = StringVar()
        self.pass7 = StringVar()
        label10 = Label(self.frame8, text="Accountant Id:", font=("Times new roman", 12), width=15)
        label10.grid(column=3, row=2)
        self.entry116 = Entry(self.frame8, width=15, textvariable=self.login7)
        self.entry116.grid(column=4, row=2)
        label11 = Label(self.frame8, text="Password:", font=("Times new roman", 12), width=15)
        label11.grid(column=3, row=3)
        self.entry227 = Entry(self.frame8, width=15, textvariable=self.pass7)
        self.entry227.grid(column=4, row=3)
        button1 = Button(self.frame8, text="Login", bg="darkgrey", command=self.framesJ)
        button1.grid(column=4, row=4, pady=10, ipadx=40)
        self.framea = Frame(window)
        self.framea.pack()
        label1 = Label(self.framea, text="Hospital Record Management System", font=("Times new roman", 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.framea, text="               ")
        label2.grid(column=0, row=0, pady=50)
        labela = Label(self.framea, text="Admin", bg="#60a1f0")
        labela.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.framea, text="Patient", bg="darkgrey", command=self.framesb)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.framea, text="Doctor", bg="lightgrey", command=self.framesa)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.framea, text="Nurse", bg="darkgrey", command=self.framesc)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.framea, text="Laboratorist", bg="darkgrey", command=self.framesd)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.framea, text="Pharmacist", bg="darkgrey", command=self.framese)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.framea, text="Accountant", bg="darkgrey", command=self.framesf)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button7 = Button(self.framea, text="Appointments", bg="darkgrey", command=self.appoint)
        button7.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framea, text="Surgeries", bg="darkgrey", command=self.surg)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framea, text="Payments", bg="darkgrey", command=self.pay)
        button7.grid(column=3, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framea, text="Medicines", bg="darkgrey", command=self.medec)
        button7.grid(column=4, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framea, text="Birth report", bg="darkgrey", command=self.birthd)
        button7.grid(column=5, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framea, text="Death report", bg="darkgrey", command=self.deathd)
        button7.grid(column=6, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framea, text="Change Password", bg="darkgrey", command=self.framespass)
        button7.grid(column=7, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.framea, text="Home", bg="#444343", command=self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        label12 = Label(self.framea, text="1. Name:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=1)
        label12 = Label(self.framea, text="2. Doc Id:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=2)
        label12 = Label(self.framea, text="3. Age:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=3)
        label12 = Label(self.framea, text="4. Sex:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=4)
        label12 = Label(self.framea, text="5. Qualificatn:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=5)
        label12 = Label(self.framea, text="6. Speciality:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=6)
        label12 = Label(self.framea, text="7. Blood Type:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=7)
        label12 = Label(self.framea, text="8. Address:", font=("Times new roman", 12), width=10)
        label12.grid(column=4, row=1)
        label12 = Label(self.framea, text="9. Phone num:", font=("Times new roman", 12), width=15)
        label12.grid(column=4, row=2)
        label12 = Label(self.framea, text="10. Date of birth:", font=("Times new roman", 12), width=15)
        label12.grid(column=4, row=3)
        label12 = Label(self.framea, text="11. Date of join:", font=("Times new roman", 12), width=15)
        label12.grid(column=4, row=4)
        label12 = Label(self.framea, text="12. Salary:", font=("Times new roman", 12), width=10)
        label12.grid(column=4, row=5)
        label12 = Label(self.framea, text="13. Working days:", font=("Times new roman", 12), width=10)
        label12.grid(column=4, row=6)
        label12 = Label(self.framea, text="14. Timings:", font=("Times new roman", 12), width=10)
        label12.grid(column=4, row=7)
        label12 = Label(self.framea, text="15. Office num:", font=("Times new roman", 12), width=10)
        label12.grid(column=6, row=1)
        label12 = Label(self.framea, text="16. Password:", font=("Times new roman", 12), width=10)
        label12.grid(column=6, row=2)
        self.name1 = StringVar()
        self.id1 = StringVar()
        self.age1 = StringVar()
        self.sex1 = StringVar()
        self.quality1 = StringVar()
        self.special1 = StringVar()
        self.bloodtype1 = StringVar()
        self.address1 = StringVar()
        self.phonenum1 = StringVar()
        self.dateb1 = StringVar()
        self.datej1 = StringVar()
        self.salary1 = StringVar()
        self.work1 = StringVar()
        self.time1 = StringVar()
        self.office1 = StringVar()
        self.password1 = StringVar()
        self.entry29 = Entry(self.framea, textvariable=self.name1)
        self.entry29.grid(column=3, row=1)
        self.entry30 = Entry(self.framea, textvariable=self.id1)
        self.entry30.grid(column=3, row=2)
        self.entry31 = Entry(self.framea, textvariable=self.age1)
        self.entry31.grid(column=3, row=3)
        self.entry32 = Entry(self.framea, textvariable=self.sex1)
        self.entry32.grid(column=3, row=4)
        self.entry33 = Entry(self.framea, textvariable=self.quality1)
        self.entry33.grid(column=3, row=5)
        self.entry34 = Entry(self.framea, textvariable=self.special1)
        self.entry34.grid(column=3, row=6)
        self.entry35 = Entry(self.framea, textvariable=self.bloodtype1)
        self.entry35.grid(column=3, row=7)
        self.entry36 = Entry(self.framea, textvariable=self.address1)
        self.entry36.grid(column=5, row=1)
        self.entry37 = Entry(self.framea, textvariable=self.phonenum1)
        self.entry37.grid(column=5, row=2)
        self.entry38 = Entry(self.framea, textvariable=self.dateb1)
        self.entry38.grid(column=5, row=3)
        self.entry39 = Entry(self.framea, textvariable=self.datej1)
        self.entry39.grid(column=5, row=4)
        self.entry40 = Entry(self.framea, textvariable=self.salary1)
        self.entry40.grid(column=5, row=5)
        self.entry41 = Entry(self.framea, textvariable=self.work1)
        self.entry41.grid(column=5, row=6)
        self.entry42 = Entry(self.framea, textvariable=self.time1)
        self.entry42.grid(column=5, row=7)
        self.entry43 = Entry(self.framea, textvariable=self.office1)
        self.entry43.grid(column=7, row=1)
        self.entry44 = Entry(self.framea, textvariable=self.password1)
        self.entry44.grid(column=7, row=2)
        button11 = Button(self.framea, text="Add Doctor", width=15, bg="darkgrey", command=self.doctor)
        button11.grid(column=6, row=3)
        button12 = Button(self.framea, text="View Doctor List", width=15, bg="darkgrey", command=self.framesI)
        button12.grid(column=6, row=4)
        self.frameb = Frame(window)
        self.frameb.pack()
        label1 = Label(self.frameb, text="Hospital Record Management System", font=("Times new roman", 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.frameb, text="               ")
        label2.grid(column=0, row=0, pady=50)
        labela = Label(self.frameb, text="Admin", bg="#60a1f0")
        labela.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.frameb, text="Patient", bg="lightgrey", command=self.framesb)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.frameb, text="Doctor", bg="darkgrey", command=self.framesa)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.frameb, text="Nurse", bg="darkgrey", command=self.framesc)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.frameb, text="Laboratorist", bg="darkgrey", command=self.framesd)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.frameb, text="Pharmacist", bg="darkgrey", command=self.framese)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.frameb, text="Accountant", bg="darkgrey", command=self.framesf)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button7 = Button(self.frameb, text="Appointments", bg="darkgrey", command=self.appoint)
        button7.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.frameb, text="Surgeries", bg="darkgrey", command=self.surg)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.frameb, text="Payments", bg="darkgrey", command=self.pay)
        button7.grid(column=3, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.frameb, text="Medicines", bg="darkgrey", command=self.medec)
        button7.grid(column=4, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.frameb, text="Birth report", bg="darkgrey", command=self.birthd)
        button7.grid(column=5, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.frameb, text="Death report", bg="darkgrey", command=self.deathd)
        button7.grid(column=6, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.frameb, text="Change Password", bg="darkgrey", command=self.framespass)
        button7.grid(column=7, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.frameb, text="Home", bg="#444343", command=self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        label12 = Label(self.frameb, text="1. Name:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=1)
        label12 = Label(self.frameb, text="2. Patient Id:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=2)
        label12 = Label(self.frameb, text="3. Age:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=3)
        label12 = Label(self.frameb, text="4. Sex:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=4)
        label12 = Label(self.frameb, text="5. Blood Type:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=5)
        label12 = Label(self.frameb, text="6. Problem:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=6)
        label12 = Label(self.frameb, text="7. Address:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=7)
        label12 = Label(self.frameb, text="8. Phone num:", font=("Times new roman", 12), width=15)
        label12.grid(column=4, row=1)
        label12 = Label(self.frameb, text="9. Date of join:", font=("Times new roman", 12), width=15)
        label12.grid(column=4, row=2)
        label12 = Label(self.frameb, text="10. Password:", font=("Times new roman", 12), width=15)
        label12.grid(column=4, row=3)
        self.name2 = StringVar()
        self.id2 = StringVar()
        self.age2 = StringVar()
        self.sex2 = StringVar()
        self.bloodtype2 = StringVar()
        self.problem2 = StringVar()
        self.address2 = StringVar()
        self.phonenum2 = StringVar()
        self.datej2 = StringVar()
        self.password2 = StringVar()
        self.entry19 = Entry(self.frameb, textvariable=self.name2)
        self.entry19.grid(column=3, row=1)
        self.entry20 = Entry(self.frameb, textvariable=self.id2)
        self.entry20.grid(column=3, row=2)
        self.entry21 = Entry(self.frameb, textvariable=self.age2)
        self.entry21.grid(column=3, row=3)
        self.entry22 = Entry(self.frameb, textvariable=self.sex2)
        self.entry22.grid(column=3, row=4)
        self.entry23 = Entry(self.frameb, textvariable=self.bloodtype2)
        self.entry23.grid(column=3, row=5)
        self.entry24 = Entry(self.frameb, textvariable=self.problem2)
        self.entry24.grid(column=3, row=6)
        self.entry25 = Entry(self.frameb, textvariable=self.address2)
        self.entry25.grid(column=3, row=7)
        self.entry26 = Entry(self.frameb, textvariable=self.phonenum2)
        self.entry26.grid(column=5, row=1)
        self.entry27 = Entry(self.frameb, textvariable=self.datej2)
        self.entry27.grid(column=5, row=2)
        self.entry28 = Entry(self.frameb, textvariable=self.password2)
        self.entry28.grid(column=5, row=3)
        button9 = Button(self.frameb,text="Add Patient", width=15, bg="darkgrey", command=self.patient)
        button9.grid(column=4, row=4)
        button10 = Button(self.frameb,text="View Patient List", width=15, bg="darkgrey", command=self.framesI)
        button10.grid(column=4, row=5)
        self.framec = Frame(window)
        self.framec.pack()
        label1 = Label(self.framec, text="Hospital Record Management System", font=("Times new roman", 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.framec, text="               ")
        label2.grid(column=0, row=0, pady=50)
        labela = Label(self.framec, text="Admin", bg="#60a1f0")
        labela.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.framec, text="Patient", bg="darkgrey", command=self.framesb)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.framec, text="Doctor", bg="darkgrey", command=self.framesa)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.framec, text="Nurse", bg="lightgrey", command=self.framesc)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.framec, text="Laboratorist", bg="darkgrey", command=self.framesd)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.framec, text="Pharmacist", bg="darkgrey", command=self.framese)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.framec, text="Accountant", bg="darkgrey", command=self.framesf)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button7 = Button(self.framec, text="Appointments", bg="darkgrey", command=self.appoint)
        button7.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framec, text="Surgeries", bg="darkgrey", command=self.surg)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framec, text="Payments", bg="darkgrey", command=self.pay)
        button7.grid(column=3, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framec, text="Medicines", bg="darkgrey", command=self.medec)
        button7.grid(column=4, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framec, text="Birth report", bg="darkgrey", command=self.birthd)
        button7.grid(column=5, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framec, text="Death report", bg="darkgrey", command=self.deathd)
        button7.grid(column=6, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framec, text="Change Password", bg="darkgrey", command=self.framespass)
        button7.grid(column=7, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.framec, text="Home", bg="#444343", command=self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        label12 = Label(self.framec, text="1. Name:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=1)
        label12 = Label(self.framec, text="2. Nurse Id:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=2)
        label12 = Label(self.framec, text="3. Age:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=3)
        label12 = Label(self.framec, text="4. Sex:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=4)
        label12 = Label(self.framec, text="5. Blood Type:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=5)
        label12 = Label(self.framec, text="6. Address:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=6)
        label12 = Label(self.framec, text="7. Phone num:", font=("Times new roman", 12), width=15)
        label12.grid(column=2, row=7)
        label12 = Label(self.framec, text="8. Date of join:", font=("Times new roman", 12), width=15)
        label12.grid(column=4, row=1)
        label12 = Label(self.framec, text="9. Password:", font=("Times new roman", 12), width=15)
        label12.grid(column=4, row=2)
        self.name3 = StringVar()
        self.id3 = StringVar()
        self.age3 = StringVar()
        self.sex3 = StringVar()
        self.bloodtype3 = StringVar()
        self.address3 = StringVar()
        self.phonenum3 = StringVar()
        self.datej3 = StringVar()
        self.password3 = StringVar()
        entry45 = Entry(self.framec, textvariable=self.name3)
        entry45.grid(column=3, row=1)
        entry46 = Entry(self.framec, textvariable=self.id3)
        entry46.grid(column=3, row=2)
        entry47 = Entry(self.framec, textvariable=self.age3)
        entry47.grid(column=3, row=3)
        entry48 = Entry(self.framec, textvariable=self.sex3)
        entry48.grid(column=3, row=4)
        entry49 = Entry(self.framec, textvariable=self.bloodtype3)
        entry49.grid(column=3, row=5)
        entry50 = Entry(self.framec, textvariable=self.address3)
        entry50.grid(column=3, row=6)
        entry51 = Entry(self.framec, textvariable=self.phonenum3)
        entry51.grid(column=3, row=7)
        entry52 = Entry(self.framec, textvariable=self.datej3)
        entry52.grid(column=5, row=1)
        entry53 = Entry(self.framec, textvariable=self.password3)
        entry53.grid(column=5, row=2)
        button9 = Button(self.framec, text="Add Nurse", width=15, bg="darkgrey", command = self.nurse)
        button9.grid(column=4, row=3)
        button10 = Button(self.framec, text="View Nurse List", width=15, bg="darkgrey", command=self.framesI)
        button10.grid(column=4, row=4)
        self.framed = Frame(window)
        self.framed.pack()
        label1 = Label(self.framed, text="Hospital Record Management System", font=("Times new roman", 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.framed, text="               ")
        label2.grid(column=0, row=0, pady=50)
        labela = Label(self.framed, text="Admin", bg="#60a1f0")
        labela.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.framed, text="Patient", bg="darkgrey", command=self.framesb)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.framed, text="Doctor", bg="darkgrey", command=self.framesa)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.framed, text="Nurse", bg="darkgrey", command=self.framesc)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.framed, text="Laboratorist", bg="lightgrey", command=self.framesd)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.framed, text="Pharmacist", bg="darkgrey", command=self.framese)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.framed, text="Accountant", bg="darkgrey", command=self.framesf)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button7 = Button(self.framed, text="Appointments", bg="darkgrey", command=self.appoint)
        button7.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framed, text="Surgeries", bg="darkgrey", command=self.surg)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framed, text="Payments", bg="darkgrey", command=self.pay)
        button7.grid(column=3, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framed, text="Medicines", bg="darkgrey", command=self.medec)
        button7.grid(column=4, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framed, text="Birth report", bg="darkgrey", command=self.birthd)
        button7.grid(column=5, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framed, text="Death report", bg="darkgrey", command=self.deathd)
        button7.grid(column=6, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framed, text="Change Password", bg="darkgrey", command=self.framespass)
        button7.grid(column=7, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.framed, text="Home", bg="#444343", command=self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        label12 = Label(self.framed, text="1. Name:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=1)
        label12 = Label(self.framed, text="2. Laboratorist Id:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=2)
        label12 = Label(self.framed, text="3. Age:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=3)
        label12 = Label(self.framed, text="4. Sex:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=4)
        label12 = Label(self.framed, text="5. Blood Type:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=5)
        label12 = Label(self.framed, text="6. Address:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=6)
        label12 = Label(self.framed, text="7. Phone num:", font=("Times new roman", 12), width=15)
        label12.grid(column=2, row=7)
        label12 = Label(self.framed, text="8. Date of join:", font=("Times new roman", 12), width=15)
        label12.grid(column=4, row=1)
        label12 = Label(self.framed, text="9. Password:", font=("Times new roman", 12), width=15)
        label12.grid(column=4, row=2)
        self.name4 = StringVar()
        self.id4 = StringVar()
        self.age4 = StringVar()
        self.sex4 = StringVar()
        self.bloodtype4 = StringVar()
        self.address4 = StringVar()
        self.phonenum4 = StringVar()
        self.datej4 = StringVar()
        self.password4 = StringVar()
        entry54 = Entry(self.framed, textvariable=self.name4)
        entry54.grid(column=3, row=1)
        entry55 = Entry(self.framed, textvariable=self.id4)
        entry55.grid(column=3, row=2)
        entry56 = Entry(self.framed, textvariable=self.age4)
        entry56.grid(column=3, row=3)
        entry57 = Entry(self.framed, textvariable=self.sex4)
        entry57.grid(column=3, row=4)
        entry58 = Entry(self.framed, textvariable=self.bloodtype4)
        entry58.grid(column=3, row=5)
        entry59 = Entry(self.framed, textvariable=self.address4)
        entry59.grid(column=3, row=6)
        entry60 = Entry(self.framed, textvariable=self.phonenum4)
        entry60.grid(column=3, row=7)
        entry61 = Entry(self.framed, textvariable=self.datej4)
        entry61.grid(column=5, row=1)
        entry62 = Entry(self.framed, textvariable=self.password4)
        entry62.grid(column=5, row=2)
        button9 = Button(self.framed, text="Add Lab.st", width=15, bg="darkgrey", command = self.laboratorist)
        button9.grid(column=4, row=3)
        button10 = Button(self.framed, text="View Lab.st List", width=15, bg="darkgrey", command=self.framesI)
        button10.grid(column=4, row=4)
        self.framee = Frame(window)
        self.framee.pack()
        label1 = Label(self.framee, text="Hospital Record Management System", font=("Times new roman", 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.framee, text="               ")
        label2.grid(column=0, row=0, pady=50)
        labela = Label(self.framee, text="Admin", bg="#60a1f0")
        labela.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.framee, text="Patient", bg="darkgrey", command=self.framesb)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.framee, text="Doctor", bg="darkgrey", command=self.framesa)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.framee, text="Nurse", bg="darkgrey", command=self.framesc)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.framee, text="Laboratorist", bg="darkgrey", command=self.framesd)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.framee, text="Pharmacist", bg="lightgrey", command=self.framese)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.framee, text="Accountant", bg="darkgrey", command=self.framesf)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button7 = Button(self.framee, text="Appointments", bg="darkgrey", command=self.appoint)
        button7.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framee, text="Surgeries", bg="darkgrey", command=self.surg)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framee, text="Payments", bg="darkgrey", command=self.pay)
        button7.grid(column=3, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framee, text="Medicines", bg="darkgrey", command=self.medec)
        button7.grid(column=4, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framee, text="Birth report", bg="darkgrey", command=self.birthd)
        button7.grid(column=5, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framee, text="Death report", bg="darkgrey", command=self.deathd)
        button7.grid(column=6, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framee, text="Change Password", bg="darkgrey", command=self.framespass)
        button7.grid(column=7, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.framee, text="Home", bg="#444343", command=self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        label12 = Label(self.framee, text="1. Name:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=1)
        label12 = Label(self.framee, text="2. Pharmacist Id:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=2)
        label12 = Label(self.framee, text="3. Age:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=3)
        label12 = Label(self.framee, text="4. Sex:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=4)
        label12 = Label(self.framee, text="5. Blood Type:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=5)
        label12 = Label(self.framee, text="6. Address:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=6)
        label12 = Label(self.framee, text="7. Phone num:", font=("Times new roman", 12), width=15)
        label12.grid(column=2, row=7)
        label12 = Label(self.framee, text="8. Date of join:", font=("Times new roman", 12), width=15)
        label12.grid(column=4, row=1)
        label12 = Label(self.framee, text="9. Password:", font=("Times new roman", 12), width=15)
        label12.grid(column=4, row=2)
        self.name5 = StringVar()
        self.id5 = StringVar()
        self.age5 = StringVar()
        self.sex5 = StringVar()
        self.bloodtype5 = StringVar()
        self.address5 = StringVar()
        self.phonenum5 = StringVar()
        self.datej5 = StringVar()
        self.password5 = StringVar()
        entry63 = Entry(self.framee, textvariable=self.name5)
        entry63.grid(column=3, row=1)
        entry64 = Entry(self.framee, textvariable=self.id5)
        entry64.grid(column=3, row=2)
        entry65 = Entry(self.framee, textvariable=self.age5)
        entry65.grid(column=3, row=3)
        entry66 = Entry(self.framee, textvariable=self.sex5)
        entry66.grid(column=3, row=4)
        entry67 = Entry(self.framee, textvariable=self.bloodtype5)
        entry67.grid(column=3, row=5)
        entry68 = Entry(self.framee, textvariable=self.address5)
        entry68.grid(column=3, row=6)
        entry69 = Entry(self.framee, textvariable=self.phonenum5)
        entry69.grid(column=3, row=7)
        entry70 = Entry(self.framee, textvariable=self.datej5)
        entry70.grid(column=5, row=1)
        entry71 = Entry(self.framee, textvariable=self.password5)
        entry71.grid(column=5, row=2)
        button9 = Button(self.framee, text="Add Pharm.st", width=15, bg="darkgrey", command = self.pharmacist)
        button9.grid(column=4, row=3)
        button10 = Button(self.framee, text="View Pharm.st List", width=15, bg="darkgrey", command=self.framesI)
        button10.grid(column=4, row=4)
        self.framef = Frame(window)
        self.framef.pack()
        label1 = Label(self.framef, text="Hospital Record Management System", font=("Times new roman", 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.framef, text="               ")
        label2.grid(column=0, row=0, pady=50)
        labela = Label(self.framef, text="Admin", bg="#60a1f0")
        labela.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.framef, text="Patient", bg="darkgrey", command=self.framesb)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.framef, text="Doctor", bg="darkgrey", command=self.framesa)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.framef, text="Nurse", bg="darkgrey", command=self.framesc)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.framef, text="Laboratorist", bg="darkgrey", command=self.framesd)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.framef, text="Pharmacist", bg="darkgrey", command=self.framese)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.framef, text="Accountant", bg="lightgrey", command=self.framesf)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button7 = Button(self.framef, text="Appointments", bg="darkgrey", command=self.appoint)
        button7.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framef, text="Surgeries", bg="darkgrey", command=self.surg)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framef, text="Payments", bg="darkgrey", command=self.pay)
        button7.grid(column=3, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framef, text="Medicines", bg="darkgrey", command=self.medec)
        button7.grid(column=4, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framef, text="Birth report", bg="darkgrey", command=self.birthd)
        button7.grid(column=5, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framef, text="Death report", bg="darkgrey", command=self.deathd)
        button7.grid(column=6, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framef, text="Change Password", bg="darkgrey", command=self.framespass)
        button7.grid(column=7, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.framef, text="Home", bg="#444343", command=self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        label12 = Label(self.framef, text="1. Name:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=1)
        label12 = Label(self.framef, text="2. Accountant Id:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=2)
        label12 = Label(self.framef, text="3. Age:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=3)
        label12 = Label(self.framef, text="4. Sex:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=4)
        label12 = Label(self.framef, text="5. Blood Type:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=5)
        label12 = Label(self.framef, text="6. Address:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=6)
        label12 = Label(self.framef, text="7. Phone num:", font=("Times new roman", 12), width=15)
        label12.grid(column=2, row=7)
        label12 = Label(self.framef, text="8. Date of join:", font=("Times new roman", 12), width=15)
        label12.grid(column=4, row=1)
        label12 = Label(self.framef, text="9. Password:", font=("Times new roman", 12), width=15)
        label12.grid(column=4, row=2)
        self.name6 = StringVar()
        self.id6 = StringVar()
        self.age6 = StringVar()
        self.sex6 = StringVar()
        self.bloodtype6 = StringVar()
        self.address6 = StringVar()
        self.phonenum6 = StringVar()
        self.datej6 = StringVar()
        self.password6 = StringVar()
        entry72 = Entry(self.framef, textvariable=self.name6)
        entry72.grid(column=3, row=1)
        entry73 = Entry(self.framef, textvariable=self.id6)
        entry73.grid(column=3, row=2)
        entry74 = Entry(self.framef, textvariable=self.age6)
        entry74.grid(column=3, row=3)
        entry75 = Entry(self.framef, textvariable=self.sex6)
        entry75.grid(column=3, row=4)
        entry76 = Entry(self.framef, textvariable=self.bloodtype6)
        entry76.grid(column=3, row=5)
        entry77 = Entry(self.framef, textvariable=self.address6)
        entry77.grid(column=3, row=6)
        entry78 = Entry(self.framef, textvariable=self.phonenum6)
        entry78.grid(column=3, row=7)
        entry79 = Entry(self.framef, textvariable=self.datej6)
        entry79.grid(column=5, row=1)
        entry80 = Entry(self.framef, textvariable=self.password6)
        entry80.grid(column=5, row=2)
        button9 = Button(self.framef, text="Add Account.t", width=15, bg="darkgrey", command = self.accountant)
        button9.grid(column=4, row=3)
        button10 = Button(self.framef, text="View Account.t List", width=15, bg="darkgrey", command=self.framesI)
        button10.grid(column=4, row=4)
        self.frameI = Frame(window)
        self.frameI.pack()
        label1 = Label(self.frameI, text="Hospital Record Management System", font=("Times new roman", 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.frameI, text="               ")
        label2.grid(column=0, row=0, pady=50)
        labela = Label(self.frameI, text="Admin", bg="#60a1f0")
        labela.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.frameI, text="Patient", bg="darkgrey", command=self.framesb)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.frameI, text="Doctor", bg="darkgrey", command=self.framesa)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.frameI, text="Nurse", bg="darkgrey", command=self.framesc)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.frameI, text="Laboratorist", bg="darkgrey", command=self.framesd)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.frameI, text="Pharmacist", bg="darkgrey", command=self.framese)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.frameI, text="Accountant", bg="darkgrey", command=self.framesf)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button7 = Button(self.frameI, text="Appointments", bg="darkgrey", command=self.appoint)
        button7.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.frameI, text="Surgeries", bg="darkgrey", command=self.surg)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.frameI, text="Payments", bg="darkgrey", command=self.pay)
        button7.grid(column=3, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.frameI, text="Medicines", bg="darkgrey", command=self.medec)
        button7.grid(column=4, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.frameI, text="Birth report", bg="darkgrey", command=self.birthd)
        button7.grid(column=5, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.frameI, text="Death report", bg="darkgrey", command=self.deathd)
        button7.grid(column=6, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.frameI, text="Change Password", bg="darkgrey", command=self.framespass)
        button7.grid(column=7, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.frameI, text="Home", bg="#444343", command=self.framespass)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        self.text1 = Text(self.frameI,height=20, width=193, font=("Times new roman", 9), bg = "lightgrey")
        self.text1.grid(column=1, row=1, columnspan=8, rowspan=7)
        self.framedoc1 = Frame(window)
        self.framedoc1.pack()
        label1 = Label(self.framedoc1, text="Hospital Record Management System", font=("Times new roman", 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.framedoc1, text="               ")
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.framedoc1, text="Admin", bg="darkgrey", command=self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.framedoc1, text="Patient", bg="darkgrey", command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.framedoc1, text="Doctor", bg="darkgrey", command=self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.framedoc1, text="Nurse", bg="darkgrey", command=self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.framedoc1, text="Laboratorist", bg="darkgrey", command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.framedoc1, text="Pharmacist", bg="darkgrey", command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.framedoc1, text="Accountant", bg="darkgrey", command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button8 = Button(self.framedoc1, text="Appointments", bg="lightgrey", command=self.framesdoc1)
        button8.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framedoc1, text="Surgeries", bg="darkgrey", command=self.framesdoc2)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framedoc1, text="Medicines", bg="darkgrey", command=self.framesdoc3)
        button7.grid(column=3, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framedoc1, text="Add Appointment", bg="darkgrey", command=self.appointment)
        button7.grid(column=4, row=3, padx=10, pady=10, ipadx=30, columnspan=2)
        button7 = Button(self.framedoc1, text="View Appointments", bg="darkgrey", command=self.appoint1)
        button7.grid(column=4, row=4, padx=10, pady=10, ipadx=30, columnspan=2)
        button7 = Button(self.framedoc1, text="Change Password", bg="darkgrey", command=self.framespass)
        button7.grid(column=4, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.framedoc1, text="Home", bg="#444343", command=self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        label12 = Label(self.framedoc1, text="1. Patient Name:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=1)
        label12 = Label(self.framedoc1, text="2. Patient Id:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=2)
        label12 = Label(self.framedoc1, text="3. problem:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=3)
        label12 = Label(self.framedoc1, text="4. day:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=4)
        label12 = Label(self.framedoc1, text="5. Time:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=5)
        label12 = Label(self.framedoc1, text="6. Status:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=6)
        label12 = Label(self.framedoc1, text="7. Doctor Ic:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=7)
        self.app1 = StringVar()
        self.app2 = StringVar()
        self.app3 = StringVar()
        self.app4 = StringVar()
        self.app5 = StringVar()
        self.app6 = StringVar()
        self.app7 = StringVar()
        entry45 = Entry(self.framedoc1, textvariable=self.app1)
        entry45.grid(column=3, row=1)
        entry46 = Entry(self.framedoc1, textvariable=self.app2)
        entry46.grid(column=3, row=2)
        entry47 = Entry(self.framedoc1, textvariable=self.app3)
        entry47.grid(column=3, row=3)
        entry48 = Entry(self.framedoc1, textvariable=self.app4)
        entry48.grid(column=3, row=4)
        entry49 = Entry(self.framedoc1, textvariable=self.app5)
        entry49.grid(column=3, row=5)
        entry50 = Entry(self.framedoc1, textvariable=self.app6)
        entry50.grid(column=3, row=6)
        entry51 = Entry(self.framedoc1, textvariable=self.app7)
        entry51.grid(column=3, row=7)

        self.framedoc2 = Frame(window)
        self.framedoc2.pack()
        label1 = Label(self.framedoc2, text="Hospital Record Management System", font=("Times new roman", 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.framedoc2, text="               ")
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.framedoc2, text="Admin", bg="darkgrey", command=self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.framedoc2, text="Patient", bg="darkgrey", command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.framedoc2, text="Doctor", bg="darkgrey", command=self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.framedoc2, text="Nurse", bg="darkgrey", command=self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.framedoc2, text="Laboratorist", bg="darkgrey", command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.framedoc2, text="Pharmacist", bg="darkgrey", command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.framedoc2, text="Accountant", bg="darkgrey", command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button8 = Button(self.framedoc2, text="Appointments", bg="darkgrey", command=self.framesdoc1)
        button8.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framedoc2, text="Surgeries", bg="lightgrey", command=self.framesdoc2)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framedoc2, text="Medicines", bg="darkgrey", command=self.framesdoc3)
        button7.grid(column=3, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framedoc2, text="Add Operations", bg="darkgrey", command=self.surg1)
        button7.grid(column=4, row=3, padx=10, pady=10, ipadx=30, columnspan=2)
        button7 = Button(self.framedoc2, text="View Operations", bg="darkgrey", command=self.framesda)
        button7.grid(column=4, row=4, padx=10, pady=10, ipadx=30, columnspan=2)
        button7 = Button(self.framedoc2, text="Change Password", bg="darkgrey", command=self.framespass)
        button7.grid(column=4, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.framedoc2, text="Home", bg="#444343", command=self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        label12 = Label(self.framedoc2, text="1. Operation Name:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=1)
        label12 = Label(self.framedoc2, text="2. Patient Id:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=2)
        label12 = Label(self.framedoc2, text="3. Date:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=3)
        label12 = Label(self.framedoc2, text="4. Cost:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=4)
        label12 = Label(self.framedoc2, text="5. Doctor Id:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=5)
        self.sur1 = StringVar()
        self.sur2 = StringVar()
        self.sur3 = StringVar()
        self.sur4 = StringVar()
        self.sur5 = StringVar()
        self.sur6 = StringVar()
        self.sur7 = StringVar()
        entry45 = Entry(self.framedoc2, textvariable=self.sur1)
        entry45.grid(column=3, row=1)
        entry46 = Entry(self.framedoc2, textvariable=self.sur2)
        entry46.grid(column=3, row=2)
        entry47 = Entry(self.framedoc2, textvariable=self.sur3)
        entry47.grid(column=3, row=3)
        entry48 = Entry(self.framedoc2, textvariable=self.sur4)
        entry48.grid(column=3, row=4)
        entry49 = Entry(self.framedoc2, textvariable=self.sur5)
        entry49.grid(column=3, row=5)

        self.framedoc3 = Frame(window)
        self.framedoc3.pack()
        label1 = Label(self.framedoc3, text="Hospital Record Management System", font=("Times new roman", 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.framedoc3, text="               ")
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.framedoc3, text="Admin", bg="darkgrey", command=self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.framedoc3, text="Patient", bg="darkgrey", command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.framedoc3, text="Doctor", bg="darkgrey", command=self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.framedoc3, text="Nurse", bg="darkgrey", command=self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.framedoc3, text="Laboratorist", bg="darkgrey", command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.framedoc3, text="Pharmacist", bg="darkgrey", command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.framedoc3, text="Accountant", bg="darkgrey", command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button8 = Button(self.framedoc3, text="Appointments", bg="darkgrey", command=self.framesdoc1)
        button8.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framedoc3, text="Surgeries", bg="darkgrey", command=self.framesdoc2)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framedoc3, text="Medicines", bg="lightgrey", command=self.framesdoc3)
        button7.grid(column=3, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framedoc3, text="Add Prescription", bg="darkgrey", command=self.medicine)
        button7.grid(column=4, row=3, padx=10, pady=10, ipadx=30, columnspan=2)
        button7 = Button(self.framedoc3, text="View Prescriptions", bg="darkgrey", command=self.medec1)
        button7.grid(column=4, row=4, padx=10, pady=10, ipadx=30, columnspan=2)
        button7 = Button(self.framedoc3, text="Change Password", bg="darkgrey", command=self.frames1)
        button7.grid(column=4, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.framedoc3, text="Home", bg="#444343", command=self.framespass)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        label12 = Label(self.framedoc3, text="1. Patient Id:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=1)
        label12 = Label(self.framedoc3, text="2. Problem:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=2)
        label12 = Label(self.framedoc3, text="3. Prescription:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=3)
        label12 = Label(self.framedoc3, text="4. Cost:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=4)
        label12 = Label(self.framedoc3, text="5. Doctor Id:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=5)
        self.med1 = StringVar()
        self.med2 = StringVar()
        self.med3 = StringVar()
        self.med4 = StringVar()
        self.med5 = StringVar()
        entry45 = Entry(self.framedoc3, textvariable=self.med1)
        entry45.grid(column=3, row=1)
        entry46 = Entry(self.framedoc3, textvariable=self.med2)
        entry46.grid(column=3, row=2)
        entry47 = Entry(self.framedoc3, textvariable=self.med3)
        entry47.grid(column=3, row=3)
        entry48 = Entry(self.framedoc3, textvariable=self.med4)
        entry48.grid(column=3, row=4)
        entry49 = Entry(self.framedoc3, textvariable=self.med5)
        entry49.grid(column=3, row=5)
        self.frameacc = Frame(window)
        self.frameacc.pack()
        label1 = Label(self.frameacc, text="Hospital Record Management System", font=("Times new roman", 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.frameacc, text="               ")
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.frameacc, text="Admin", bg="darkgrey", command=self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.frameacc, text="Patient", bg="darkgrey", command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.frameacc, text="accor", bg="darkgrey", command=self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.frameacc, text="Nurse", bg="darkgrey", command=self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.frameacc, text="Laboratorist", bg="darkgrey", command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.frameacc, text="Pharmacist", bg="darkgrey", command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.frameacc, text="Accountant", bg="darkgrey", command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button7 = Button(self.frameacc, text="Payments", bg="lightgrey", command=self.framesacc)
        button7.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.frameacc, text="Add Payment", bg="darkgrey", command=self.payment)
        button7.grid(column=4, row=3, padx=10, pady=10, ipadx=30, columnspan=2)
        button7 = Button(self.frameacc, text="View Payments", bg="darkgrey", command=self.pay1)
        button7.grid(column=4, row=4, padx=10, pady=10, ipadx=30, columnspan=2)
        button7 = Button(self.frameacc, text="Change Password", bg="darkgrey", command=self.framespass)
        button7.grid(column=4, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.frameacc, text="Home", bg="#444343", command=self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        label12 = Label(self.frameacc, text="1. Patient Id:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=1)
        label12 = Label(self.frameacc, text="2. Doctor fee:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=2)
        label12 = Label(self.frameacc, text="3. Operation fee:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=3)
        label12 = Label(self.frameacc, text="4. Bed fee:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=4)
        label12 = Label(self.frameacc, text="5. Medicine fee:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=5)
        label12 = Label(self.frameacc, text="6. Food fee:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=6)
        label12 = Label(self.frameacc, text="7. Blood fee:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=7)
        self.acc1 = StringVar()
        self.acc2 = StringVar()
        self.acc3 = StringVar()
        self.acc4 = StringVar()
        self.acc5 = StringVar()
        self.acc6 = StringVar()
        self.acc7 = StringVar()
        entry45 = Entry(self.frameacc, textvariable=self.acc1)
        entry45.grid(column=3, row=1)
        entry46 = Entry(self.frameacc, textvariable=self.acc2)
        entry46.grid(column=3, row=2)
        entry47 = Entry(self.frameacc, textvariable=self.acc3)
        entry47.grid(column=3, row=3)
        entry48 = Entry(self.frameacc, textvariable=self.acc4)
        entry48.grid(column=3, row=4)
        entry49 = Entry(self.frameacc, textvariable=self.acc5)
        entry49.grid(column=3, row=5)
        entry49 = Entry(self.frameacc, textvariable=self.acc6)
        entry49.grid(column=3, row=6)
        entry49 = Entry(self.frameacc, textvariable=self.acc7)
        entry49.grid(column=3, row=7)
        self.framepharm = Frame(window)
        self.framepharm.pack()
        label1 = Label(self.framepharm, text="Hospital Record Management System", font=("Times new roman", 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.framepharm, text="               ")
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.framepharm, text="Admin", bg="darkgrey", command=self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.framepharm, text="Patient", bg="darkgrey", command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.framepharm, text="accor", bg="darkgrey", command=self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.framepharm, text="Nurse", bg="darkgrey", command=self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.framepharm, text="Laboratorist", bg="darkgrey", command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.framepharm, text="Pharmacist", bg="darkgrey", command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.framepharm, text="Accountant", bg="darkgrey", command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button7 = Button(self.framepharm, text="Medicines", bg="lightgrey", command=self.framespharm)
        button7.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framepharm, text="Add Prescriptions", bg="darkgrey", command=self.medicine)
        button7.grid(column=4, row=3, padx=10, pady=10, ipadx=30, columnspan=2)
        button7 = Button(self.framepharm, text="View Prescriptions", bg="darkgrey", command=self.medec2)
        button7.grid(column=4, row=4, padx=10, pady=10, ipadx=30, columnspan=2)
        button7 = Button(self.framepharm, text="Change Password", bg="darkgrey", command=self.framespass)
        button7.grid(column=4, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.framepharm, text="Home", bg="#444343", command=self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        label12 = Label(self.framepharm, text="1. Patient Id:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=1)
        label12 = Label(self.framepharm, text="2. Problem:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=2)
        label12 = Label(self.framepharm, text="3. Prescription:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=3)
        label12 = Label(self.framepharm, text="4. Cost:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=4)
        label12 = Label(self.framepharm, text="5. Doctor Id:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=5)
        self.med1 = StringVar()
        self.med2 = StringVar()
        self.med3 = StringVar()
        self.med4 = StringVar()
        self.med5 = StringVar()
        entry45 = Entry(self.framepharm, textvariable=self.med1)
        entry45.grid(column=3, row=1)
        entry46 = Entry(self.framepharm, textvariable=self.med2)
        entry46.grid(column=3, row=2)
        entry47 = Entry(self.framepharm, textvariable=self.med3)
        entry47.grid(column=3, row=3)
        entry48 = Entry(self.framepharm, textvariable=self.med4)
        entry48.grid(column=3, row=4)
        entry49 = Entry(self.framepharm, textvariable=self.med5)
        entry49.grid(column=3, row=5)
        self.framenur1 = Frame(window)
        self.framenur1.pack()
        label1 = Label(self.framenur1, text="Hospital Record Management System", font=("Times new roman", 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.framenur1, text="               ")
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.framenur1, text="Admin", bg="darkgrey", command=self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.framenur1, text="Patient", bg="darkgrey", command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.framenur1, text="Doctor", bg="darkgrey", command=self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.framenur1, text="Nurse", bg="darkgrey", command=self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.framenur1, text="Laboratorist", bg="darkgrey", command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.framenur1, text="Pharmacist", bg="darkgrey", command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.framenur1, text="Accountant", bg="darkgrey", command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button8 = Button(self.framenur1, text="Birth report", bg="lightgrey", command=self.framesnur1)
        button8.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framenur1, text="Death report", bg="darkgrey", command=self.framesnur2)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framenur1, text="Add Birth report", bg="darkgrey", command=self.birthreport)
        button7.grid(column=4, row=3, padx=10, pady=10, ipadx=30, columnspan=2)
        button7 = Button(self.framenur1, text="View Birth report", bg="darkgrey", command=self.birth1)
        button7.grid(column=4, row=4, padx=10, pady=10, ipadx=30, columnspan=2)
        button7 = Button(self.framenur1, text="Change Password", bg="darkgrey", command=self.framespass)
        button7.grid(column=4, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.framenur1, text="Home", bg="#444343", command=self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        label12 = Label(self.framenur1, text="1. Date of birth:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=1)
        label12 = Label(self.framenur1, text="2. Time of Birth:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=2)
        label12 = Label(self.framenur1, text="3. Father name:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=3)
        label12 = Label(self.framenur1, text="4. Mother name:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=4)
        label12 = Label(self.framenur1, text="5. Parent Ph. Num:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=5)
        label12 = Label(self.framenur1, text="6. Sex:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=6)
        self.nur1 = StringVar()
        self.nur2 = StringVar()
        self.nur3 = StringVar()
        self.nur4 = StringVar()
        self.nur5 = StringVar()
        self.nur6 = StringVar()
        entry45 = Entry(self.framenur1, textvariable=self.nur1)
        entry45.grid(column=3, row=1)
        entry46 = Entry(self.framenur1, textvariable=self.nur2)
        entry46.grid(column=3, row=2)
        entry47 = Entry(self.framenur1, textvariable=self.nur3)
        entry47.grid(column=3, row=3)
        entry48 = Entry(self.framenur1, textvariable=self.nur4)
        entry48.grid(column=3, row=4)
        entry49 = Entry(self.framenur1, textvariable=self.nur5)
        entry49.grid(column=3, row=5)
        entry49 = Entry(self.framenur1, textvariable=self.nur6)
        entry49.grid(column=3, row=6)
        self.framenur2 = Frame(window)
        self.framenur2.pack()
        label1 = Label(self.framenur2, text="Hospital Record Management System", font=("Times new roman", 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.framenur2, text="               ")
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.framenur2, text="Admin", bg="darkgrey", command=self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.framenur2, text="Patient", bg="darkgrey", command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.framenur2, text="Doctor", bg="darkgrey", command=self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.framenur2, text="Nurse", bg="darkgrey", command=self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.framenur2, text="Laboratorist", bg="darkgrey", command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.framenur2, text="Pharmacist", bg="darkgrey", command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.framenur2, text="Accountant", bg="darkgrey", command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button8 = Button(self.framenur2, text="Birth report", bg="darkgrey", command=self.framesnur1)
        button8.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framenur2, text="Death report", bg="lightgrey", command=self.framesnur2)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framenur2, text="Add Death report", bg="darkgrey", command=self.deathreport)
        button7.grid(column=4, row=3, padx=10, pady=10, ipadx=30, columnspan=2)
        button7 = Button(self.framenur2, text="View Death report", bg="darkgrey", command=self.death1)
        button7.grid(column=4, row=4, padx=10, pady=10, ipadx=30, columnspan=2)
        button7 = Button(self.framenur2, text="Change Password", bg="darkgrey", command=self.framespass)
        button7.grid(column=4, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.framenur2, text="Home", bg="#444343", command=self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        label12 = Label(self.framenur2, text="1. Victim's Name:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=1)
        label12 = Label(self.framenur2, text="2. Date of birth:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=2)
        label12 = Label(self.framenur2, text="3. Date of Death:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=3)
        label12 = Label(self.framenur2, text="4. Time of Death:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=4)
        label12 = Label(self.framenur2, text="5. Parent Ph. Num:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=5)
        label12 = Label(self.framenur2, text="6. Sex:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=6)
        self.dea1 = StringVar()
        self.dea2 = StringVar()
        self.dea3 = StringVar()
        self.dea4 = StringVar()
        self.dea5 = StringVar()
        self.dea6 = StringVar()
        entry45 = Entry(self.framenur2, textvariable=self.dea1)
        entry45.grid(column=3, row=1)
        entry46 = Entry(self.framenur2, textvariable=self.dea2)
        entry46.grid(column=3, row=2)
        entry47 = Entry(self.framenur2, textvariable=self.dea3)
        entry47.grid(column=3, row=3)
        entry48 = Entry(self.framenur2, textvariable=self.dea4)
        entry48.grid(column=3, row=4)
        entry49 = Entry(self.framenur2, textvariable=self.dea5)
        entry49.grid(column=3, row=5)
        entry49 = Entry(self.framenur2, textvariable=self.dea6)
        entry49.grid(column=3, row=6)
        self.framepass = Frame(window)
        self.framepass.pack()
        label1 = Label(self.framepass, text="Hospital Record Management System", font=("Times new roman", 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.framepass, text="               ")
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.framepass, text="Admin", bg="darkgrey", command=self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.framepass, text="Patient", bg="darkgrey", command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.framepass, text="Doctor", bg="darkgrey", command=self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.framepass, text="Nurse", bg="darkgrey", command=self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.framepass, text="Laboratorist", bg="darkgrey", command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.framepass, text="Pharmacist", bg="darkgrey", command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.framepass, text="Accountant", bg="darkgrey", command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button8 = Button(self.framepass, text="Home", bg="#444343", command=self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        button7 = Button(self.framepass, text="Submit", bg="darkgrey", command=self.activate)
        button7.grid(column=4, row=4, padx=10, pady=10, ipadx=37.5)
        self.passs = StringVar()
        label11 = Label(self.framepass, text="Enter new password:", font=("Times new roman", 12), width=15)
        label11.grid(column=1, row=4, columnspan=2)
        self.entry333 = Entry(self.framepass, width=15, textvariable=self.passs)
        self.entry333.grid(column=3, row=4)
        self.frameda = Frame(window)
        self.frameda.pack()
        label1 = Label(self.frameda, text="Hospital Record Management System", font=("Times new roman", 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.frameda, text="               ")
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.frameda, text="Admin", bg="darkgrey", command=self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.frameda, text="Patient", bg="darkgrey", command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.frameda, text="Doctor", bg="darkgrey", command=self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.frameda, text="Nurse", bg="darkgrey", command=self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.frameda, text="Laboratorist", bg="darkgrey", command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.frameda, text="Pharmacist", bg="darkgrey", command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.frameda, text="Accountant", bg="darkgrey", command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button7 = Button(self.frameda, text="Appointments", bg="darkgrey", command=self.appoint1)
        button7.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.frameda, text="Surgeries", bg="darkgrey", command=self.surg1)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.frameda, text="Medicines", bg="darkgrey", command=self.medec1)
        button7.grid(column=3, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.frameda, text="Back", bg="darkgrey", command=self.framesdoc1)
        button7.grid(column=4, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.frameda, text="Home", bg="#444343", command=self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        self.text2 = Text(self.frameda, height=20, width=193, font=("Times new roman", 9), bg="lightgrey")
        self.text2.grid(column=1, row=1, columnspan=8, rowspan=7)
        self.framedb = Frame(window)
        self.framedb.pack()
        label1 = Label(self.framedb, text="Hospital Record Management System", font=("Times new roman", 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.framedb, text="               ")
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.framedb, text="Admin", bg="darkgrey", command=self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.framedb, text="Patient", bg="darkgrey", command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.framedb, text="Doctor", bg="darkgrey", command=self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.framedb, text="Nurse", bg="darkgrey", command=self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.framedb, text="Laboratorist", bg="darkgrey", command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.framedb, text="Pharmacist", bg="darkgrey", command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.framedb, text="Accountant", bg="darkgrey", command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button7 = Button(self.framedb, text="Birth report", bg="darkgrey", command=self.birth1)
        button7.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framedb, text="Death report", bg="darkgrey", command=self.death1)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framedb, text="Back", bg="darkgrey", command=self.framesnur1)
        button7.grid(column=3, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.framedb, text="Home", bg="#444343", command=self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        self.text3 = Text(self.framedb, height=20, width=193, font=("Times new roman", 9), bg="lightgrey")
        self.text3.grid(column=1, row=1, columnspan=8, rowspan=7)
        self.framedc = Frame(window)
        self.framedc.pack()
        label1 = Label(self.framedc, text="Hospital Record Management System", font=("Times new roman", 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.framedc, text="               ")
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.framedc, text="Admin", bg="darkgrey", command=self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.framedc, text="Patient", bg="darkgrey", command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.framedc, text="Doctor", bg="darkgrey", command=self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.framedc, text="Nurse", bg="darkgrey", command=self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.framedc, text="Laboratorist", bg="darkgrey", command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.framedc, text="Pharmacist", bg="darkgrey", command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.framedc, text="Accountant", bg="darkgrey", command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button7 = Button(self.framedc, text="Payment", bg="lightgrey", command=self.pay1)
        button7.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framedc, text="Back", bg="darkgrey", command=self.framesacc)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.framedc, text="Home", bg="#444343", command=self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        self.text4 = Text(self.framedc, height=20, width=193, font=("Times new roman", 9), bg="lightgrey")
        self.text4.grid(column=1, row=1, columnspan=8, rowspan=7)
        self.framedd = Frame(window)
        self.framedd.pack()
        label1 = Label(self.framedd, text="Hospital Record Management System", font=("Times new roman", 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.framedd, text="               ")
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.framedd, text="Admin", bg="darkgrey", command=self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.framedd, text="Patient", bg="darkgrey", command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.framedd, text="Doctor", bg="darkgrey", command=self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.framedd, text="Nurse", bg="darkgrey", command=self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.framedd, text="Laboratorist", bg="darkgrey", command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.framedd, text="Pharmacist", bg="darkgrey", command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.framedd, text="Accountant", bg="darkgrey", command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button7 = Button(self.framedd, text="Medicine", bg="lightgrey", command=self.medec2)
        button7.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framedd, text="Back", bg="darkgrey", command=self.framespharm)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.framedd, text="Home", bg="#444343", command=self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        self.text5 = Text(self.framedd, height=20, width=193, font=("Times new roman", 9), bg="lightgrey")
        self.text5.grid(column=1, row=1, columnspan=8, rowspan=7)
        self.framede = Frame(window)
        self.framede.pack()
        label1 = Label(self.framede, text="Hospital Record Management System", font=("Times new roman", 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.framede, text="               ")
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.framede, text="Admin", bg="darkgrey", command=self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.framede, text="Patient", bg="darkgrey", command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.framede, text="Doctor", bg="darkgrey", command=self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.framede, text="Nurse", bg="darkgrey", command=self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.framede, text="Laboratorist", bg="darkgrey", command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.framede, text="Pharmacist", bg="darkgrey", command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.framede, text="Accountant", bg="darkgrey", command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button7 = Button(self.framede, text="Appointments", bg="lightgrey", command=self.a1)
        button7.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framede, text="Surgeries", bg="lightgrey", command=self.a2)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framede, text="Payments", bg="lightgrey", command=self.a4)
        button7.grid(column=3, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framede, text="Medicines", bg="lightgrey", command=self.a3)
        button7.grid(column=4, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framede, text="Change password", bg="darkgrey", command=self.framespass)
        button7.grid(column=5, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.framede, text="Home", bg="#444343", command=self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        self.text6 = Text(self.framede, height=20, width=193, font=("Times new roman", 9), bg="lightgrey")
        self.text6.grid(column=1, row=1, columnspan=8, rowspan=7)
        window.mainloop()
    def framesde(self):
        self.frame1.pack_forget()
        self.frame2.pack_forget()
        self.frame3.pack_forget()
        self.frame4.pack_forget()
        self.frame5.pack_forget()
        self.frame6.pack_forget()
        self.frame7.pack_forget()
        self.frame8.pack_forget()
        self.framede.pack()
    def a1(self):
        self.framesde()
        self.text6.delete(1.0, END)
        self.list1 = []
        self.list2 = []
        for i in range(1, self.appointment3.max_row + 1):
            for j in range(1, self.appointment3.max_column + 1):
                k = len(str(self.appointment3.cell(row=i, column=j).value))
                y = str(self.appointment3.cell(row=i, column=j).value) + " " * (12 - k)
                self.list1.append(y)
            for k in range(1, self.appointment3.max_column + 1):
                z = str(self.appointment3.cell(row=i, column=j).value)
                self.list2.append(z)
            if str(self.login2.get()) in self.list2:
                self.text6.insert(END, self.list1)
                self.text6.insert(END, "\n")
            self.list2 = []
            self.list1 = []
    def a2(self):
        self.framesde()
        self.text6.delete(1.0, END)
        self.list1 = []
        self.list2 = []
        for i in range(1, self.surgery3.max_row + 1):
            for j in range(1, self.surgery3.max_column + 1):
                k = len(str(self.surgery3.cell(row=i, column=j).value))
                y = str(self.surgery3.cell(row=i, column=j).value) + " " * (12 - k)
                self.list1.append(y)
            for k in range(1, self.surgery3.max_column + 1):
                z = str(self.surgery3.cell(row=i, column=j).value)
                self.list2.append(z)
            if str(self.login2.get()) in self.list2:
                self.text6.insert(END, self.list1)
                self.text6.insert(END, "\n")
            self.list2 = []
            self.list1 = []
    def a3(self):
        self.framesde()
        self.text6.delete(1.0, END)
        self.list1 = []
        self.list2 = []
        for i in range(1, self.medicine3.max_row + 1):
            for j in range(1, self.medicine3.max_column + 1):
                k = len(str(self.medicine3.cell(row=i, column=j).value))
                y = str(self.medicine3.cell(row=i, column=j).value) + " " * (12 - k)
                self.list1.append(y)
            for k in range(1, self.medicine3.max_column + 1):
                z = str(self.medicine3.cell(row=i, column=j).value)
                self.list2.append(z)
            if str(self.login2.get()) in self.list2:
                self.text6.insert(END, self.list1)
                self.text6.insert(END, "\n")
            self.list2 = []
            self.list1 = []
    def a4(self):
        self.framesde()
        self.text6.delete(1.0, END)
        self.list1 = []
        self.list2 = []
        for i in range(1, self.payment3.max_row + 1):
            for j in range(1, self.payment3.max_column + 1):
                k = len(str(self.payment3.cell(row=i, column=j).value))
                y = str(self.payment3.cell(row=i, column=j).value) + " " * (12 - k)
                self.list1.append(y)
            for k in range(1, self.payment3.max_column + 1):
                z = str(self.payment3.cell(row=i, column=j).value)
                self.list2.append(z)
            if str(self.login2.get()) in self.list2:
                self.text6.insert(END, self.list1)
                self.text6.insert(END, "\n")
            self.list2 = []
            self.list1 = []
    def framesdd(self):
        self.framepharm.pack_forget()
        self.framedd.pack()
    def medec2(self):
        self.framesdd()
        self.text5.delete(1.0, END)
        self.list1 = []
        for i in range(1, self.medicine3.max_row + 1):
            for j in range(1, self.medicine3.max_column + 1):
                k = len(str(self.medicine3.cell(row=i, column=j).value))
                y = str(self.medicine3.cell(row=i, column=j).value) + " " * (12 - k)
                self.list1.append(y)
            self.text5.insert(END, self.list1)
            self.text5.insert(END, "\n")
            self.list1 = []
    def framesdc(self):
        self.frameacc.pack_forget()
        self.framedc.pack()
    def pay1(self):
        self.framesdc()
        self.text4.delete(1.0, END)
        self.list1 = []
        for i in range(1, self.payment3.max_row + 1):
            for j in range(1, self.payment3.max_column + 1):
                k = len(str(self.payment3.cell(row=i, column=j).value))
                y = str(self.payment3.cell(row=i, column=j).value) + " " * (12 - k)
                self.list1.append(y)
            self.text4.insert(END, self.list1)
            self.text4.insert(END, "\n")
            self.list1 = []
    def framesdb(self):
        self.framenur1.pack_forget()
        self.framenur2.pack_forget()
        self.framedb.pack()
    def birth1(self):
        self.framesdb()
        self.text3.delete(1.0, END)
        self.list1 = []
        for i in range(1, self.birth3.max_row + 1):
            for j in range(1, self.birth3.max_column + 1):
                k = len(str(self.birth3.cell(row=i, column=j).value))
                y = str(self.birth3.cell(row=i, column=j).value) + " " * (12 - k)
                self.list1.append(y)
            self.text3.insert(END, self.list1)
            self.text3.insert(END, "\n")
            self.list1 = []
    def death1(self):
        self.framesdb()
        self.text3.delete(1.0, END)
        self.list1 = []
        for i in range(1, self.death3.max_row + 1):
            for j in range(1, self.death3.max_column + 1):
                k = len(str(self.death3.cell(row=i, column=j).value))
                y = str(self.death3.cell(row=i, column=j).value) + " " * (12 - k)
                self.list1.append(y)
            self.text3.insert(END, self.list1)
            self.text3.insert(END, "\n")
            self.list1 = []
    def framesda(self):
        self.framedoc1.pack_forget()
        self.framedoc2.pack_forget()
        self.framedoc3.pack_forget()
        self.frameda.pack()
    def deathreport(self):
        self.list1 = [self.dea1.get(), self.dea2.get(), self.dea3.get(), self.dea4.get(), self.dea5.get(),
                      self.dea6.get()]
        self.a = 1
        self.b = self.death3.max_row + 1
        for i in self.list1:
            self.death3.cell(row=self.b, column=self.a).value = i
            self.a += 1
        self.wb3.save("HRMS.xlsx")
    def birthreport(self):
        self.list1 = [self.nur1.get(), self.nur2.get(), self.nur3.get(), self.nur4.get(), self.nur5.get(),
                      self.nur6.get()]
        self.a = 1
        self.b = self.birth3.max_row + 1
        for i in self.list1:
            self.birth3.cell(row=self.b, column=self.a).value = i
            self.a += 1
        self.wb3.save("HRMS.xlsx")
    def payment(self):
        self.list1 = [self.acc1.get(), self.acc2.get(), self.acc3.get(), self.acc4.get(), self.acc5.get(), self.acc6.get(), self.acc7.get()]
        self.a = 1
        self.b = self.payment3.max_row + 1
        for i in self.list1:
            self.payment3.cell(row=self.b, column=self.a).value = i
            self.a += 1
        self.wb3.save("HRMS.xlsx")
    def medicine(self):
        self.list1 = [self.med1.get(), self.med2.get(), self.med3.get(), self.med4.get(), self.med5.get()]
        self.a = 1
        self.b = self.medicine3.max_row + 1
        for i in self.list1:
            self.medicine3.cell(row=self.b, column=self.a).value = i
            self.a += 1
        self.wb3.save("HRMS.xlsx")
    def surgery(self):
        self.list1 = [self.sur1.get(), self.sur2.get(), self.sur3.get(), self.sur4.get(), self.sur5.get()]
        self.a = 1
        self.b = self.surgery3.max_row + 1
        for i in self.list1:
            self.surgery3.cell(row=self.b, column=self.a).value = i
            self.a += 1
        self.wb3.save("HRMS.xlsx")
    def appointment(self):
        self.list1 = [self.app1.get(), self.app2.get(), self.app3.get(), self.app4.get(), self.app5.get(),
                      self.app6.get(), self.app7.get()]
        self.a = 1
        self.b = self.appointment3.max_row + 1
        for i in self.list1:
            self.appointment3.cell(row=self.b, column=self.a).value = i
            self.a += 1
        self.wb3.save("HRMS.xlsx")
    def doctor(self):
        self.list1 = [self.name1.get(), self.id1.get(), self.age1.get(), self.sex1.get(),self.quality1.get(),self.special1.get(), self.bloodtype1.get(),
                      self.address1.get(), self.phonenum1.get(), self.dateb1.get(), self.datej1.get(), self.salary1.get(), self.work1.get(), self.time1.get(), self.office1.get(), self.password1.get()]
        self.a = 1
        self.b = self.doctor3.max_row + 1
        for i in self.list1:
            self.doctor3.cell(row=self.b, column=self.a).value = i
            self.a += 1
        self.wb3.save("HRMS.xlsx")
        self.report()
        self.entry29.delete(0, END)
        self.entry30.delete(0, END)
        self.entry31.delete(0, END)
        self.entry32.delete(0, END)
        self.entry33.delete(0, END)
        self.entry34.delete(0, END)
        self.entry35.delete(0, END)
        self.entry36.delete(0, END)
        self.entry37.delete(0, END)
        self.entry38.delete(0, END)
        self.entry39.delete(0, END)
        self.entry40.delete(0, END)
        self.entry41.delete(0, END)
        self.entry42.delete(0, END)
        self.entry43.delete(0, END)
        self.entry44.delete(0, END)
    def patient(self):
        self.list1 = [self.name2.get(), self.id2.get(), self.age2.get(), self.sex2.get(), self.bloodtype2.get(), self.problem2.get(), self.address2.get(), self.phonenum2.get(), self.datej2.get(), self.password2.get()]
        self.a = 1
        self.b = self.patient3.max_row + 1
        for i in self.list1:
            self.patient3.cell(row=self.b, column=self.a).value = i
            self.a += 1
        self.wb3.save("HRMS.xlsx")
        self.report()
        self.entry19.delete(0, END)
        self.entry20.delete(0, END)
        self.entry21.delete(0, END)
        self.entry22.delete(0, END)
        self.entry23.delete(0, END)
        self.entry24.delete(0, END)
        self.entry25.delete(0, END)
        self.entry26.delete(0, END)
        self.entry27.delete(0, END)
        self.entry28.delete(0, END)
    def nurse(self):
        self.list1 = [self.name3.get(), self.id3.get(), self.age3.get(), self.sex3.get(), self.bloodtype3.get(), self.address3.get(), self.phonenum3.get(), self.datej3.get(), self.password3.get()]
        self.a = 1
        self.b = self.nurse3.max_row + 1
        for i in self.list1:
            self.nurse3.cell(row=self.b, column=self.a).value = i
            self.a += 1
        self.wb3.save("HRMS.xlsx")
        self.report()
        self.entry45.delete(0, END)
        self.entry46.delete(0, END)
        self.entry47.delete(0, END)
        self.entry48.delete(0, END)
        self.entry49.delete(0, END)
        self.entry50.delete(0, END)
        self.entry51.delete(0, END)
        self.entry52.delete(0, END)
        self.entry53.delete(0, END)
    def laboratorist(self):
        self.list1 = [self.name4.get(), self.id4.get(), self.age4.get(), self.sex4.get(), self.bloodtype4.get(), self.address4.get(), self.phonenum4.get(), self.datej4.get(), self.password4.get()]
        self.a = 1
        self.b  = self.laboratorist3.max_row + 1
        for i in self.list1:
            self.laboratorist3.cell(row=self.b, column=self.a).value = i
            self.a += 1
        self.wb3.save("HRMS.xlsx")
        self.report()
        self.entry54.delete(0, END)
        self.entry55.delete(0, END)
        self.entry56.delete(0, END)
        self.entry57.delete(0, END)
        self.entry58.delete(0, END)
        self.entry59.delete(0, END)
        self.entry60.delete(0, END)
        self.entry61.delete(0, END)
        self.entry62.delete(0, END)
    def pharmacist(self):
        self.list1 = [self.name5.get(), self.id5.get(), self.age5.get(), self.sex5.get(), self.bloodtype5.get(), self.address5.get(), self.phonenum5.get(), self.datej5.get(), self.password5.get()]
        self.a = 1
        self.b = self.pharmacist3.max_row + 1
        for i in self.list1:
            self.pharmacist3.cell(row=self.b, column=self.a).value = i
            self.a += 1
        self.wb3.save("HRMS.xlsx")
        self.report()
        self.entry63.delete(0, END)
        self.entry64.delete(0, END)
        self.entry65.delete(0, END)
        self.entry66.delete(0, END)
        self.entry67.delete(0, END)
        self.entry68.delete(0, END)
        self.entry69.delete(0, END)
        self.entry70.delete(0, END)
        self.entry71.delete(0, END)
    def accountant(self):
        self.list1 = [self.name6.get(), self.id6.get(), self.age6.get(), self.sex6.get(), self.bloodtype6.get(), self.address6.get(), self.phonenum6.get(), self.datej6.get(), self.password6.get()]
        self.a = 1
        self.b = self.accountant3.max_row + 1
        for i in self.list1:
            self.accountant3.cell(row=self.b, column=self.a).value = i
            self.a += 1
        self.wb3.save("HRMS.xlsx")
        self.report()
        self.entry72.delete(0, END)
        self.entry73.delete(0, END)
        self.entry74.delete(0, END)
        self.entry75.delete(0, END)
        self.entry76.delete(0, END)
        self.entry77.delete(0, END)
        self.entry78.delete(0, END)
        self.entry79.delete(0, END)
        self.entry80.delete(0, END)
    def frames11(self):
        self.frame1.pack_forget()
        self.frame3.pack_forget()
        self.frame4.pack_forget()
        self.frame5.pack_forget()
        self.frame6.pack_forget()
        self.frame7.pack_forget()
        self.frame8.pack_forget()
        self.framea.pack_forget()
        self.frameb.pack_forget()
        self.framec.pack_forget()
        self.framed.pack_forget()
        self.framee.pack_forget()
        self.framef.pack_forget()
        self.frameI.pack_forget()
        self.frameacc.pack_forget()
        self.framedoc1.pack_forget()
        self.framedoc2.pack_forget()
        self.framedoc3.pack_forget()
        self.framenur1.pack_forget()
        self.framenur2.pack_forget()
        self.framepharm.pack_forget()
        self.framepass.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.frame2.pack()
    def frames12(self):
        self.I = True
        self.II = False
        self.III = False
        self.IIII = False
        self.IIIII = False
        self.IIIIII = False
        self.frame1.pack_forget()
        self.frame2.pack_forget()
        self.frame4.pack_forget()
        self.frame5.pack_forget()
        self.frame6.pack_forget()
        self.frame7.pack_forget()
        self.frame8.pack_forget()
        self.framea.pack_forget()
        self.frameb.pack_forget()
        self.framec.pack_forget()
        self.framed.pack_forget()
        self.framee.pack_forget()
        self.framef.pack_forget()
        self.frameI.pack_forget()
        self.frameacc.pack_forget()
        self.framedoc1.pack_forget()
        self.framedoc2.pack_forget()
        self.framedoc3.pack_forget()
        self.framenur1.pack_forget()
        self.framenur2.pack_forget()
        self.framepharm.pack_forget()
        self.framepass.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.frame3.pack()
    def frames13(self):
        self.I = False
        self.II = True
        self.III = False
        self.IIII = False
        self.IIIII = False
        self.IIIIII = False
        self.frame1.pack_forget()
        self.frame2.pack_forget()
        self.frame3.pack_forget()
        self.frame5.pack_forget()
        self.frame6.pack_forget()
        self.frame7.pack_forget()
        self.frame8.pack_forget()
        self.framea.pack_forget()
        self.frameb.pack_forget()
        self.framec.pack_forget()
        self.framed.pack_forget()
        self.framee.pack_forget()
        self.framef.pack_forget()
        self.frameI.pack_forget()
        self.frameacc.pack_forget()
        self.framedoc1.pack_forget()
        self.framedoc2.pack_forget()
        self.framedoc3.pack_forget()
        self.framenur1.pack_forget()
        self.framenur2.pack_forget()
        self.framepharm.pack_forget()
        self.framepass.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.frame4.pack()
    def frames14(self):
        self.I = False
        self.II = False
        self.III = True
        self.IIII = False
        self.IIIII = False
        self.IIIIII = False
        self.frame1.pack_forget()
        self.frame2.pack_forget()
        self.frame3.pack_forget()
        self.frame4.pack_forget()
        self.frame6.pack_forget()
        self.frame7.pack_forget()
        self.frame8.pack_forget()
        self.framea.pack_forget()
        self.frameb.pack_forget()
        self.framec.pack_forget()
        self.framed.pack_forget()
        self.framee.pack_forget()
        self.framef.pack_forget()
        self.frameI.pack_forget()
        self.frameacc.pack_forget()
        self.framedoc1.pack_forget()
        self.framedoc2.pack_forget()
        self.framedoc3.pack_forget()
        self.framenur1.pack_forget()
        self.framenur2.pack_forget()
        self.framepharm.pack_forget()
        self.framepass.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.frame5.pack()
    def frames15(self):
        self.I = False
        self.II = False
        self.III = False
        self.IIII = True
        self.IIIII = False
        self.IIIIII = False
        self.frame1.pack_forget()
        self.frame2.pack_forget()
        self.frame3.pack_forget()
        self.frame4.pack_forget()
        self.frame5.pack_forget()
        self.frame7.pack_forget()
        self.frame8.pack_forget()
        self.framea.pack_forget()
        self.frameb.pack_forget()
        self.framec.pack_forget()
        self.framed.pack_forget()
        self.framee.pack_forget()
        self.framef.pack_forget()
        self.frameI.pack_forget()
        self.frameacc.pack_forget()
        self.framedoc1.pack_forget()
        self.framedoc2.pack_forget()
        self.framedoc3.pack_forget()
        self.framenur1.pack_forget()
        self.framenur2.pack_forget()
        self.framepharm.pack_forget()
        self.framepass.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.frame6.pack()
    def frames16(self):
        self.I = False
        self.II = False
        self.III = False
        self.IIII = False
        self.IIIII = True
        self.IIIIII = False
        self.frame1.pack_forget()
        self.frame2.pack_forget()
        self.frame3.pack_forget()
        self.frame4.pack_forget()
        self.frame5.pack_forget()
        self.frame6.pack_forget()
        self.frame8.pack_forget()
        self.framea.pack_forget()
        self.frameb.pack_forget()
        self.framec.pack_forget()
        self.framed.pack_forget()
        self.framee.pack_forget()
        self.framef.pack_forget()
        self.frameI.pack_forget()
        self.frameacc.pack_forget()
        self.framedoc1.pack_forget()
        self.framedoc2.pack_forget()
        self.framedoc3.pack_forget()
        self.framenur1.pack_forget()
        self.framenur2.pack_forget()
        self.framepharm.pack_forget()
        self.framepass.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.frame7.pack()
    def frames17(self):
        self.I = False
        self.II = False
        self.III = False
        self.IIII = False
        self.IIIII = False
        self.IIIIII = True
        self.frame1.pack_forget()
        self.frame2.pack_forget()
        self.frame3.pack_forget()
        self.frame4.pack_forget()
        self.frame5.pack_forget()
        self.frame6.pack_forget()
        self.frame7.pack_forget()
        self.framea.pack_forget()
        self.frameb.pack_forget()
        self.framec.pack_forget()
        self.framed.pack_forget()
        self.framee.pack_forget()
        self.framef.pack_forget()
        self.frameI.pack_forget()
        self.frameacc.pack_forget()
        self.framedoc1.pack_forget()
        self.framedoc2.pack_forget()
        self.framedoc3.pack_forget()
        self.framenur1.pack_forget()
        self.framenur2.pack_forget()
        self.framepharm.pack_forget()
        self.framepass.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.frame8.pack()
    def framesa(self):
        self.I = False
        self.II = True
        self.III = False
        self.IIII = False
        self.IIIII = False
        self.IIIIII = False
        self.frameb.pack_forget()
        self.framec.pack_forget()
        self.framed.pack_forget()
        self.framee.pack_forget()
        self.framef.pack_forget()
        self.frameI.pack_forget()
        self.frameda.pack_forget()
        self.frameacc.pack_forget()
        self.framedoc1.pack_forget()
        self.framedoc2.pack_forget()
        self.framedoc3.pack_forget()
        self.framepass.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.framea.pack()
    def framesb(self):
        self.I = True
        self.II = False
        self.III = False
        self.IIII = False
        self.IIIII = False
        self.IIIIII = False
        if self.login1.get()==str(self.security3.cell(row=1,column=1).value) and self.pass1.get()==str(self.security3.cell(row=1, column=2).value):
            self.J = True
            self.JJ = False
            self.JJJ = False
            self.JJJJ = False
            self.JJJJJ = False
            self.JJJJJJ = False
            self.JJJJJJJ = False
            self.frame2.pack_forget()
            self.framea.pack_forget()
            self.framec.pack_forget()
            self.framed.pack_forget()
            self.framee.pack_forget()
            self.framef.pack_forget()
            self.frameI.pack_forget()
            self.frameacc.pack_forget()
            self.framedoc1.pack_forget()
            self.framedoc2.pack_forget()
            self.framedoc3.pack_forget()
            self.frameda.pack_forget()
            self.framedb.pack_forget()
            self.framedc.pack_forget()
            self.framedd.pack_forget()
            self.framede.pack_forget()
            self.frameb.pack()
            self.entry1.delete(0, END)
            self.entry2.delete(0, END)
        else:
            tkinter.messagebox.showerror("showerror", "Incorrect Password")
    def framesc(self):
        self.I = False
        self.II = False
        self.III = True
        self.IIII = False
        self.IIIII = False
        self.IIIIII = False
        self.framea.pack_forget()
        self.frameb.pack_forget()
        self.framed.pack_forget()
        self.framee.pack_forget()
        self.framef.pack_forget()
        self.frameI.pack_forget()
        self.frameacc.pack_forget()
        self.framedoc1.pack_forget()
        self.framedoc2.pack_forget()
        self.framedoc3.pack_forget()
        self.framepass.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.framec.pack()
    def framesd(self):
        self.I = False
        self.II = False
        self.III = False
        self.IIII = True
        self.IIIII = False
        self.IIIIII = False
        self.framea.pack_forget()
        self.frameb.pack_forget()
        self.framec.pack_forget()
        self.framee.pack_forget()
        self.framef.pack_forget()
        self.frameI.pack_forget()
        self.frameacc.pack_forget()
        self.framedoc1.pack_forget()
        self.framedoc2.pack_forget()
        self.framedoc3.pack_forget()
        self.framepass.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.framed.pack()
    def framese(self):
        self.I = False
        self.II = False
        self.III = False
        self.IIII = False
        self.IIIII = True
        self.IIIIII = False
        self.framea.pack_forget()
        self.frameb.pack_forget()
        self.framec.pack_forget()
        self.framed.pack_forget()
        self.framef.pack_forget()
        self.frameI.pack_forget()
        self.frameacc.pack_forget()
        self.framedoc1.pack_forget()
        self.framedoc2.pack_forget()
        self.framedoc3.pack_forget()
        self.framepass.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.framee.pack()
    def framesf(self):
        self.I = False
        self.II = False
        self.III = False
        self.IIII = False
        self.IIIII = False
        self.IIIIII = True
        self.framea.pack_forget()
        self.frameb.pack_forget()
        self.framec.pack_forget()
        self.framed.pack_forget()
        self.framee.pack_forget()
        self.frameI.pack_forget()
        self.frameacc.pack_forget()
        self.framedoc1.pack_forget()
        self.framedoc2.pack_forget()
        self.framedoc3.pack_forget()
        self.framepass.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.framef.pack()
    def framesh(self):
        self.framea.pack_forget()
        self.frameb.pack_forget()
        self.framec.pack_forget()
        self.framed.pack_forget()
        self.framee.pack_forget()
        self.framef.pack_forget()
        self.frameacc.pack_forget()
        self.framedoc1.pack_forget()
        self.framedoc2.pack_forget()
        self.framedoc3.pack_forget()
        self.framenur1.pack_forget()
        self.framenur2.pack_forget()
        self.framepharm.pack_forget()
        self.framepass.pack_forget()
        self.frameda.pack_forget()
        self.frameI.pack()
    def framesl(self):
        self.framea.pack_forget()
        self.frameb.pack_forget()
        self.framec.pack_forget()
        self.framed.pack_forget()
        self.framee.pack_forget()
        self.framef.pack_forget()
        self.frameacc.pack_forget()
        self.framedoc1.pack_forget()
        self.framedoc2.pack_forget()
        self.framedoc3.pack_forget()
        self.framenur1.pack_forget()
        self.framenur2.pack_forget()
        self.framepharm.pack_forget()
        self.framepass.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.frameI.pack_forget()
        self.frameda.pack()
    def appoint1(self):
        self.framesl()
        self.text2.delete(1.0, END)
        self.list1 = []
        self.list2 = []
        for i in range(1, self.appointment3.max_row + 1):
            for j in range(1, self.appointment3.max_column + 1):
                k = len(str(self.appointment3.cell(row=i, column=j).value))
                y = str(self.appointment3.cell(row=i, column=j).value) + " " * (12 - k)
                self.list1.append(y)
            for k in range(1, self.appointment3.max_column + 1):
                z = str(self.appointment3.cell(row=i, column=j).value)
                self.list2.append(z)
            if str(self.login3.get()) in self.list2:
                self.text2.insert(END, self.list1)
                self.text2.insert(END, "\n")
            self.list2 = []
            self.list1 = []
    def surg1(self):
        self.framesl()
        self.text2.delete(1.0, END)
        self.list1 = []
        self.list2 = []
        for i in range(1, self.surgery3.max_row + 1):
            for j in range(1, self.surgery3.max_column + 1):
                k = len(str(self.surgery3.cell(row=i, column=j).value))
                y = str(self.surgery3.cell(row=i, column=j).value) + " " * (12 - k)
                self.list1.append(y)
            for k in range(1, self.surgery3.max_column + 1):
                z = str(self.surgery3.cell(row=i, column=j).value)
                self.list2.append(z)
            if str(self.login3.get()) in self.list2:
                self.text2.insert(END, self.list1)
                self.text2.insert(END, "\n")
            self.list2 = []
            self.list1 = []
    def medec1(self):
        self.framesl()
        self.text2.delete(1.0, END)
        self.list1 = []
        self.list12 = []
        for i in range(1, self.medicine3.max_row + 1):
            for j in range(1, self.medicine3.max_column + 1):
                k = len(str(self.medicine3.cell(row=i, column=j).value))
                y = str(self.medicine3.cell(row=i, column=j).value) + " " * (12 - k)
                self.list1.append(y)
            for k in range(1, self.medicine3.max_column + 1):
                z = str(self.medicine3.cell(row=i, column=j).value)
                self.list2.append(z)
            if str(self.login3.get()) in self.list2:
                self.text2.insert(END, self.list1)
                self.text2.insert(END, "\n")
            self.list2 = []
            self.list1 = []
    def appoint(self):
        self.framesh()
        self.text1.delete(1.0, END)
        self.list1 = []
        for i in range(1, self.appointment3.max_row + 1):
            for j in range(1, self.appointment3.max_column + 1):
                k = len(str(self.appointment3.cell(row=i, column=j).value))
                y = str(self.appointment3.cell(row=i, column=j).value) + " " * (12 - k)
                self.list1.append(y)
            self.text1.insert(END, self.list1)
            self.text1.insert(END, "\n")
            self.list1 = []
    def surg(self):
        self.framesh()
        self.text1.delete(1.0, END)
        self.list1 = []
        for i in range(1, self.surgery3.max_row + 1):
            for j in range(1, self.surgery3.max_column + 1):
                k = len(str(self.surgery3.cell(row=i, column=j).value))
                y = str(self.surgery3.cell(row=i, column=j).value) + " " * (12 - k)
                self.list1.append(y)
            self.text1.insert(END, self.list1)
            self.text1.insert(END, "\n")
            self.list1 = []
    def medec(self):
        self.framesh()
        self.text1.delete(1.0, END)
        self.list1 = []
        for i in range(1, self.medicine3.max_row + 1):
            for j in range(1, self.medicine3.max_column + 1):
                k = len(str(self.medicine3.cell(row=i, column=j).value))
                y = str(self.medicine3.cell(row=i, column=j).value) + " " * (12 - k)
                self.list1.append(y)
            self.text1.insert(END, self.list1)
            self.text1.insert(END, "\n")
            self.list1 = []
    def pay(self):
        self.framesh()
        self.text1.delete(1.0, END)
        self.list1 = []
        for i in range(1, self.payment3.max_row + 1):
            for j in range(1, self.payment3.max_column + 1):
                k = len(str(self.payment3.cell(row=i, column=j).value))
                y = str(self.payment3.cell(row=i, column=j).value) + " " * (12 - k)
                self.list1.append(y)
            self.text1.insert(END, self.list1)
            self.text1.insert(END, "\n")
            self.list1 = []
    def birthd(self):
        self.framesh()
        self.text1.delete(1.0, END)
        self.list1 = []
        for i in range(1, self.birth3.max_row + 1):
            for j in range(1, self.birth3.max_column + 1):
                k = len(str(self.birth3.cell(row=i, column=j).value))
                y = str(self.birth3.cell(row=i, column=j).value) + " " * (12 - k)
                self.list1.append(y)
            self.text1.insert(END, self.list1)
            self.text1.insert(END, "\n")
            self.list1 = []
    def deathd(self):
        self.framesh()
        self.text1.delete(1.0, END)
        self.list1 = []
        for i in range(1, self.death3.max_row + 1):
            for j in range(1, self.death3.max_column + 1):
                k = len(str(self.death3.cell(row=i, column=j).value))
                y = str(self.death3.cell(row=i, column=j).value) + " " * (12 - k)
                self.list1.append(y)
            self.text1.insert(END, self.list1)
            self.text1.insert(END, "\n")
            self.list1 = []
    def framesI(self):
        if self.II == True:
            self.framesh()
            self.text1.delete(1.0, END)
            self.list1 = []
            for i in range(1,self.doctor3.max_row + 1):
                for j in range(1, self.doctor3.max_column + 1):
                    k = len(str(self.doctor3.cell(row = i, column = j).value))
                    y = str(self.doctor3.cell(row = i, column = j).value) + " " * (12 - k)
                    self.list1.append(y)
                self.text1.insert(END, self.list1)
                self.text1.insert(END, "\n")
                self.list1 = []
        elif self.I == True:
            self.framesh()
            self.text1.delete(1.0, END)
            self.list1 = []
            for i in range(1,self.patient3.max_row + 1):
                for j in range(1, self.patient3.max_column + 1):
                    k = len(str(self.patient3.cell(row = i, column = j).value))
                    y = str(self.patient3.cell(row = i, column = j).value) + " " * (12 - k)
                    self.list1.append(y)
                self.text1.insert(END, self.list1)
                self.text1.insert(END, "\n")
                self.list1 = []
        elif self.III == True:
            self.framesh()
            self.text1.delete(1.0, END)
            self.list1 = []
            for i in range(1,self.nurse3.max_row + 1):
                for j in range(1, self.nurse3.max_column + 1):
                    k = len(str(self.nurse3.cell(row = i, column = j).value))
                    y = str(self.nurse3.cell(row = i, column = j).value) + " " * (12 - k)
                    self.list1.append(y)
                self.text1.insert(END, self.list1)
                self.text1.insert(END, "\n")
                self.list1 = []
        elif self.IIII == True:
            self.framesh()
            self.text1.delete(1.0, END)
            self.list1 = []
            for i in range(1,self.laboratorist3.max_row + 1):
                for j in range(1, self.laboratorist3.max_column + 1):
                    k = len(str(self.laboratorist3.cell(row = i, column = j).value))
                    y = str(self.laboratorist3.cell(row = i, column = j).value) + " " * (12 - k)
                    self.list1.append(y)
                self.text1.insert(END, self.list1)
                self.text1.insert(END, "\n")
                self.list1 = []
        elif self.IIIII == True:
            self.framesh()
            self.text1.delete(1.0, END)
            self.list1 = []
            for i in range(1,self.pharmacist3.max_row + 1):
                for j in range(1, self.pharmacist3.max_column + 1):
                    k = len(str(self.pharmacist3.cell(row = i, column = j).value))
                    y = str(self.pharmacist3.cell(row = i, column = j).value) + " " * (12 - k)
                    self.list1.append(y)
                self.text1.insert(END, self.list1)
                self.text1.insert(END, "\n")
                self.list1 = []
        elif self.IIIIII == True:
            self.framesh()
            self.text1.delete(1.0, END)
            self.list1 = []
            for i in range(1,self.accountant3.max_row + 1):
                for j in range(1, self.accountant3.max_column + 1):
                    k = len(str(self.accountant3.cell(row = i, column = j).value))
                    y = str(self.accountant3.cell(row = i, column = j).value) + " " * (12 - k)
                    self.list1.append(y)
                self.text1.insert(END, self.list1)
                self.text1.insert(END, "\n")
                self.list1 = []
        elif self.II == True:
            self.framesh()
            self.text1.delete(1.0, END)
            self.list1 = []
            for i in range(1,self.doctor3.max_row + 1):
                for j in range(1, self.doctor3.max_column + 1):
                    k = len(str(self.doctor3.cell(row = i, column = j).value))
                    y = str(self.doctor3.cell(row = i, column = j).value) + " " * (12 - k)
                    self.list1.append(y)
                self.text1.insert(END, self.list1)
                self.text1.insert(END, "\n")
                self.list1 = []
        elif self.I == True:
            self.framesh()
            self.text1.delete(1.0, END)
            self.list1 = []
            for i in range(1,self.patient3.max_row + 1):
                for j in range(1, self.patient3.max_column + 1):
                    k = len(str(self.patient3.cell(row = i, column = j).value))
                    y = str(self.patient3.cell(row = i, column = j).value) + " " * (12 - k)
                    self.list1.append(y)
                self.text1.insert(END, self.list1)
                self.text1.insert(END, "\n")
                self.list1 = []
        elif self.III == True:
            self.framesh()
            self.text1.delete(1.0, END)
            self.list1 = []
            for i in range(1,self.nurse3.max_row + 1):
                for j in range(1, self.nurse3.max_column + 1):
                    k = len(str(self.nurse3.cell(row = i, column = j).value))
                    y = str(self.nurse3.cell(row = i, column = j).value) + " " * (12 - k)
                    self.list1.append(y)
                self.text1.insert(END, self.list1)
                self.text1.insert(END, "\n")
                self.list1 = []
        elif self.IIII == True:
            self.framesh()
            self.text1.delete(1.0, END)
            self.list1 = []
            for i in range(1,self.laboratorist3.max_row + 1):
                for j in range(1, self.laboratorist3.max_column + 1):
                    k = len(str(self.laboratorist3.cell(row = i, column = j).value))
                    y = str(self.laboratorist3.cell(row = i, column = j).value) + " " * (12 - k)
                    self.list1.append(y)
                self.text1.insert(END, self.list1)
                self.text1.insert(END, "\n")
                self.list1 = []
        elif self.IIIII == True:
            self.framesh()
            self.text1.delete(1.0, END)
            self.list1 = []
            for i in range(1,self.pharmacist3.max_row + 1):
                for j in range(1, self.pharmacist3.max_column + 1):
                    k = len(str(self.pharmacist3.cell(row = i, column = j).value))
                    y = str(self.pharmacist3.cell(row = i, column = j).value) + " " * (12 - k)
                    self.list1.append(y)
                self.text1.insert(END, self.list1)
                self.text1.insert(END, "\n")
                self.list1 = []
        elif self.IIIIII == True:
            self.framesh()
            self.text1.delete(1.0, END)
            self.list1 = []
            for i in range(1,self.accountant3.max_row + 1):
                for j in range(1, self.accountant3.max_column + 1):
                    k = len(str(self.accountant3.cell(row = i, column = j).value))
                    y = str(self.accountant3.cell(row = i, column = j).value) + " " * (12 - k)
                    self.list1.append(y)
                self.text1.insert(END, self.list1)
                self.text1.insert(END, "\n")
                self.list1 = []
    def framesdoc1(self):
        self.frame1.pack_forget()
        self.frame2.pack_forget()
        self.frame3.pack_forget()
        self.frame4.pack_forget()
        self.frame5.pack_forget()
        self.frame6.pack_forget()
        self.frame7.pack_forget()
        self.frame8.pack_forget()
        self.frameacc.pack_forget()
        self.framedoc2.pack_forget()
        self.framedoc3.pack_forget()
        self.framenur1.pack_forget()
        self.framenur2.pack_forget()
        self.framepharm.pack_forget()
        self.framepass.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.framedoc1.pack()
    def framesdoc2(self):
        self.frame1.pack_forget()
        self.frame2.pack_forget()
        self.frame3.pack_forget()
        self.frame4.pack_forget()
        self.frame5.pack_forget()
        self.frame6.pack_forget()
        self.frame7.pack_forget()
        self.frame8.pack_forget()
        self.frameacc.pack_forget()
        self.framedoc1.pack_forget()
        self.framedoc3.pack_forget()
        self.framenur1.pack_forget()
        self.framenur2.pack_forget()
        self.framepharm.pack_forget()
        self.framepass.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.framedoc2.pack()
    def framesdoc3(self):
        self.frame1.pack_forget()
        self.frame2.pack_forget()
        self.frame3.pack_forget()
        self.frame4.pack_forget()
        self.frame6.pack_forget()
        self.frame5.pack_forget()
        self.frame7.pack_forget()
        self.frame8.pack_forget()
        self.frameacc.pack_forget()
        self.framedoc1.pack_forget()
        self.framedoc2.pack_forget()
        self.framenur1.pack_forget()
        self.framenur2.pack_forget()
        self.framepharm.pack_forget()
        self.framepass.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.framedoc3.pack()
    def framesacc(self):
        self.frame1.pack_forget()
        self.frame2.pack_forget()
        self.frame3.pack_forget()
        self.frame4.pack_forget()
        self.frame5.pack_forget()
        self.frame6.pack_forget()
        self.frame7.pack_forget()
        self.frame8.pack_forget()
        self.framedoc1.pack_forget()
        self.framedoc2.pack_forget()
        self.framedoc3.pack_forget()
        self.framenur1.pack_forget()
        self.framenur2.pack_forget()
        self.framepharm.pack_forget()
        self.framepass.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.frameacc.pack()
    def framespharm(self):
        self.frame1.pack_forget()
        self.frame2.pack_forget()
        self.frame3.pack_forget()
        self.frame4.pack_forget()
        self.frame5.pack_forget()
        self.frame6.pack_forget()
        self.frame7.pack_forget()
        self.frame8.pack_forget()
        self.framedoc1.pack_forget()
        self.framedoc2.pack_forget()
        self.framedoc3.pack_forget()
        self.frameacc.pack_forget()
        self.framenur1.pack_forget()
        self.framenur2.pack_forget()
        self.framepass.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.framepharm.pack()
    def framesnur1(self):
        self.frame1.pack_forget()
        self.frame2.pack_forget()
        self.frame3.pack_forget()
        self.frame4.pack_forget()
        self.frame5.pack_forget()
        self.frame6.pack_forget()
        self.frame7.pack_forget()
        self.frame8.pack_forget()
        self.framedoc1.pack_forget()
        self.framedoc2.pack_forget()
        self.framedoc3.pack_forget()
        self.frameacc.pack_forget()
        self.framenur2.pack_forget()
        self.framepharm.pack_forget()
        self.framepass.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.framenur1.pack()
    def framesnur2(self):
        self.frame1.pack_forget()
        self.frame2.pack_forget()
        self.frame3.pack_forget()
        self.frame4.pack_forget()
        self.frame5.pack_forget()
        self.frame6.pack_forget()
        self.frame7.pack_forget()
        self.frame8.pack_forget()
        self.framedoc1.pack_forget()
        self.framedoc2.pack_forget()
        self.framedoc3.pack_forget()
        self.frameacc.pack_forget()
        self.framenur1.pack_forget()
        self.framepharm.pack_forget()
        self.framepass.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.framenur2.pack()
    def framesJ(self):
        if self.II == True:
            self.list1 = []
            for i in range(1, self.doctor3.max_row + 1):
                self.list1.append(str(self.doctor3.cell(row=i, column=2).value))
            if self.login3.get() in self.list1:
                self.f = self.list1.index(self.login3.get()) + 1
                if str(self.doctor3.cell(row=self.f, column=16).value) == self.pass3.get():
                    self.J = False
                    self.JJ = True
                    self.JJJ = False
                    self.JJJJ = False
                    self.JJJJJ = False
                    self.JJJJJJ = False
                    self.JJJJJJJ = False
                    self.framesdoc1()
                    self.entry112.delete(0, END)
                    self.entry223.delete(0, END)
                else:
                    tkinter.messagebox.showerror("showerror", "Incorrect Password")
            else:
                tkinter.messagebox.showerror("showerror", "Incorrect Password")
        elif self.I == True:
            self.list1 = []
            for i in range(1, self.patient3.max_row + 1):
                self.list1.append(str(self.patient3.cell(row=i, column=2).value))
            if self.login2.get() in self.list1:
                self.f = self.list1.index(self.login2.get()) + 1
                if str(self.patient3.cell(row=self.f, column=10).value) == self.pass2.get():
                    self.J = False
                    self.JJ = False
                    self.JJJ = True
                    self.JJJJ = False
                    self.JJJJJ = False
                    self.JJJJJJ = False
                    self.JJJJJJJ = False
                    self.a1()
                    self.entry111.delete(0, END)
                    self.entry222.delete(0, END)
                else:
                    tkinter.messagebox.showerror("showerror", "Incorrect Password")
            else:
                tkinter.messagebox.showerror("showerror", "Incorrect Password")
        elif self.III == True:
            self.list1 = []
            for i in range(1, self.nurse3.max_row + 1):
                self.list1.append(str(self.nurse3.cell(row=i, column=2).value))
            if self.login4.get() in self.list1:
                self.f = self.list1.index(self.login4.get()) + 1
                if str(self.nurse3.cell(row=self.f, column=9).value) == self.pass4.get():
                    self.J = False
                    self.JJ = False
                    self.JJJ = False
                    self.JJJJ = True
                    self.JJJJJ = False
                    self.JJJJJJ = False
                    self.JJJJJJJ = False
                    self.framesnur1()
                    self.entry113.delete(0, END)
                    self.entry224.delete(0, END)
                else:
                    tkinter.messagebox.showerror("showerror", "Incorrect Password")
            else:
                tkinter.messagebox.showerror("showerror", "Incorrect Password")
        elif self.IIII == True:
            self.list1 = []
            for i in range(1, self.laboratorist3.max_row + 1):
                self.list1.append(str(self.laboratorist3.cell(row=i, column=2).value))
            if self.login5.get() in self.list1:
                self.f = self.list1.index(self.login5.get()) + 1
                if str(self.laboratorist3.cell(row=self.f, column=9).value) == self.pass5.get():
                    self.J = False
                    self.JJ = False
                    self.JJJ = False
                    self.JJJJ = False
                    self.JJJJJ = True
                    self.JJJJJJ = False
                    self.JJJJJJJ = False
                    self.entry114.delete(0, END)
                    self.entry225.delete(0, END)
                    pass
                else:
                    tkinter.messagebox.showerror("showerror", "Incorrect Password")
            else:
                tkinter.messagebox.showerror("showerror", "Incorrect Password")
        elif self.IIIII == True:
            self.list1 = []
            for i in range(1, self.pharmacist3.max_row + 1):
                self.list1.append(str(self.pharmacist3.cell(row=i, column=2).value))
            if self.login6.get() in self.list1:
                self.f = self.list1.index(self.login6.get()) + 1
                if str(self.pharmacist3.cell(row=self.f, column=9).value) == self.pass6.get():
                    self.J = False
                    self.JJ = False
                    self.JJJ = False
                    self.JJJJ = False
                    self.JJJJJ = False
                    self.JJJJJJ = True
                    self.JJJJJJJ = False
                    self.framespharm()
                    self.entry115.delete(0, END)
                    self.entry226.delete(0, END)
                else:
                    tkinter.messagebox.showerror("showerror", "Incorrect Password")
            else:
                tkinter.messagebox.showerror("showerror", "Incorrect Password")
        elif self.IIIIII == True:
            self.list1 = []
            for i in range(1, self.accountant3.max_row + 1):
                self.list1.append(str(self.accountant3.cell(row=i, column=2).value))
            if self.login7.get() in self.list1:
                self.f = self.list1.index(self.login7.get()) + 1
                if str(self.accountant3.cell(row=self.f, column=9).value) == self.pass7.get():
                    self.J = False
                    self.JJ = False
                    self.JJJ = False
                    self.JJJJ = False
                    self.JJJJJ = False
                    self.JJJJJJ = False
                    self.JJJJJJJ = True
                    self.framesacc()
                    self.entry116.delete(0, END)
                    self.entry227.delete(0, END)
                else:
                    tkinter.messagebox.showerror("showerror", "Incorrect Password")
            else:
                tkinter.messagebox.showerror("showerror", "Incorrect Password")
    def activate(self):
        if self.J == True:
            self.security3.cell(row=1, column=2).value = self.passs.get()
            self.wb3.save("HRMS.xlsx")
        elif self.JJ == True:
            self.list1 = []
            for i in range(1, self.doctor3.max_row + 1):
                self.list1.append(str(self.doctor3.cell(row=i, column=2).value))
            self.f = self.list1.index(self.login3.get()) + 1
            self.doctor3.cell(row=self.f, column=16).value = self.passs.get()
            self.wb3.save("HRMS.xlsx")
        elif self.JJJ == True:
            self.list1 = []
            for i in range(1, self.patient3.max_row + 1):
                self.list1.append(str(self.patient3.cell(row=i, column=2).value))
            self.f = self.list1.index(self.login2.get()) + 1
            self.patient3.cell(row=self.f, column=10).value = self.passs.get()
            self.wb3.save("HRMS.xlsx")
        elif self.JJJJ == True:
            self.list1 = []
            for i in range(1, self.nurse3.max_row + 1):
                self.list1.append(str(self.nurse3.cell(row=i, column=2).value))
            self.f = self.list1.index(self.login3.get()) + 1
            self.nurse3.cell(row=self.f, column=9).value = self.passs.get()
            self.wb3.save("HRMS.xlsx")
        elif self.JJJJJ == True:
            self.list1 = []
            for i in range(1, self.laboratorist3.max_row + 1):
                self.list1.append(str(self.laboratorist3.cell(row=i, column=2).value))
            self.f = self.list1.index(self.login3.get()) + 1
            self.laboratorist3.cell(row=self.f, column=9).value = self.passs.get()
            self.wb3.save("HRMS.xlsx")
        elif self.JJJJJJ == True:
            self.list1 = []
            for i in range(1, self.pharmacist3.max_row + 1):
                self.list1.append(str(self.pharmacist3.cell(row=i, column=2).value))
            self.f = self.list1.index(self.login3.get()) + 1
            self.pharmacist3.cell(row=self.f, column=9).value = self.passs.get()
            self.wb3.save("HRMS.xlsx")
        elif self.JJJJJJJ == True:
            self.list1 = []
            for i in range(1, self.accountant3.max_row + 1):
                self.list1.append(str(self.accountant3.cell(row=i, column=2).value))
            self.f = self.list1.index(self.login3.get()) + 1
            self.accountant3.cell(row=self.f, column=9).value = self.passs.get()
            self.wb3.save("HRMS.xlsx")
        self.frames1()
        self.entry333.delete(0, END)
    def frames1(self):
        self.framedoc1.pack_forget()
        self.framedoc2.pack_forget()
        self.framedoc3.pack_forget()
        self.framenur1.pack_forget()
        self.framenur2.pack_forget()
        self.frameacc.pack_forget()
        self.framepharm.pack_forget()
        self.frame1.pack_forget()
        self.frame2.pack_forget()
        self.frame3.pack_forget()
        self.frame4.pack_forget()
        self.frame5.pack_forget()
        self.frame6.pack_forget()
        self.frame7.pack_forget()
        self.frame8.pack_forget()
        self.framea.pack_forget()
        self.frameb.pack_forget()
        self.framec.pack_forget()
        self.framed.pack_forget()
        self.framee.pack_forget()
        self.framef.pack_forget()
        self.frameI.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.framepass.pack_forget()
        self.frame1.pack()
        self.entry1.delete(0, END)
        self.entry2.delete(0, END)
        self.report()
    def framespass(self):
        self.framedoc1.pack_forget()
        self.framedoc2.pack_forget()
        self.framedoc3.pack_forget()
        self.framenur1.pack_forget()
        self.framenur2.pack_forget()
        self.frameacc.pack_forget()
        self.framepharm.pack_forget()
        self.frame1.pack_forget()
        self.frame2.pack_forget()
        self.frame3.pack_forget()
        self.frame4.pack_forget()
        self.frame5.pack_forget()
        self.frame6.pack_forget()
        self.frame7.pack_forget()
        self.frame8.pack_forget()
        self.framea.pack_forget()
        self.frameb.pack_forget()
        self.framec.pack_forget()
        self.framed.pack_forget()
        self.framee.pack_forget()
        self.framef.pack_forget()
        self.frameI.pack_forget()
        self.frame1.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.framepass.pack()
    def report(self):
        self.report3.cell(row=2, column=2).value = self.patient3.max_row - 1
        self.report3.cell(row=3, column=2).value = self.doctor3.max_row - 1
        self.report3.cell(row=4, column=2).value = self.nurse3.max_row - 1
        self.report3.cell(row=5, column=2).value = self.laboratorist3.max_row - 1
        self.report3.cell(row=6, column=2).value = self.pharmacist3.max_row - 1
        self.report3.cell(row=7, column=2).value = self.accountant3.max_row - 1
        self.wb3.save("HRMS.xlsx")
Hrms()
d1e6c91b44708dc2c6fc3b1dd05b7a5aa83b84da
<mask token>


class Hrms:

    def __init__(self):
        self.wb3 = openpyxl.load_workbook('HRMS.xlsx')
        self.patient3 = self.wb3.active
        self.patient3 = self.wb3['Patient']
        self.doctor3 = self.wb3['Doctor']
        self.nurse3 = self.wb3['Nurse']
        self.laboratorist3 = self.wb3['Laboratorist']
        self.pharmacist3 = self.wb3['Pharmacist']
        self.accountant3 = self.wb3['Accountant']
        self.appointment3 = self.wb3['Appointment']
        self.surgery3 = self.wb3['Surgeries']
        self.payment3 = self.wb3['Payments']
        self.medicine3 = self.wb3['Medicines']
        self.birth3 = self.wb3['Birth report']
        self.death3 = self.wb3['Death report']
        self.security3 = self.wb3['Security']
        self.report3 = self.wb3['Report']
        window = Tk()
        window.title('Hospital Record Management System')
        window.geometry('1350x490')
        window.resizable(0, 0)
        self.I = False
        self.II = False
        self.III = False
        self.IIII = False
        self.IIIII = False
        self.IIIIII = False
        self.J = False
        self.JJ = False
        self.JJJ = False
        self.JJJJ = False
        self.JJJJJ = False
        self.JJJJJJ = False
        self.frame1 = Frame(window)
        self.frame1.pack()
        label1 = Label(self.frame1, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=0, row=0, columnspan=3)
        label2 = Label(self.frame1, text='')
        label2.grid(column=4, row=0, pady=50)
        button1 = Button(self.frame1, text='Admin', bg='darkgrey', command=
            self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.frame1, text='Patient', bg='darkgrey',
            command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.frame1, text='Doctor', bg='darkgrey', command
            =self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.frame1, text='Nurse', bg='darkgrey', command=
            self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.frame1, text='Laboratorist', bg='darkgrey',
            command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.frame1, text='Pharmacist', bg='darkgrey',
            command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.frame1, text='Accountant', bg='darkgrey',
            command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button8 = Button(self.frame1, text='Home', bg='#444343', command=
            self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        self.frame2 = Frame(window)
        self.frame2.pack()
        label1 = Label(self.frame2, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.frame2, text='               ')
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.frame2, text='Admin', bg='lightgrey', command
            =self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.frame2, text='Patient', bg='darkgrey',
            command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.frame2, text='Doctor', bg='darkgrey', command
            =self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.frame2, text='Nurse', bg='darkgrey', command=
            self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.frame2, text='Laboratorist', bg='darkgrey',
            command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.frame2, text='Pharmacist', bg='darkgrey',
            command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.frame2, text='Accountant', bg='darkgrey',
            command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button8 = Button(self.frame2, text='Home', bg='#444343', command=
            self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        self.login1 = StringVar()
        self.pass1 = StringVar()
        label10 = Label(self.frame2, text='Username:', font=(
            'Times new roman', 12), width=10)
        label10.grid(column=3, row=2)
        self.entry1 = Entry(self.frame2, textvariable=self.login1)
        self.entry1.grid(column=4, row=2)
        label11 = Label(self.frame2, text='Password:', font=(
            'Times new roman', 12))
        label11.grid(column=3, row=3)
        self.entry2 = Entry(self.frame2, textvariable=self.pass1)
        self.entry2.grid(column=4, row=3)
        button8 = Button(self.frame2, text='Login ', bg='darkgrey', command
            =self.framesb)
        button8.grid(column=4, row=4, pady=10, ipadx=40)
        self.frame3 = Frame(window)
        self.frame3.pack()
        label1 = Label(self.frame3, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.frame3, text='               ')
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.frame3, text='Admin', bg='darkgrey', command=
            self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.frame3, text='Patient', bg='lightgrey',
            command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.frame3, text='Doctor', bg='darkgrey', command
            =self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.frame3, text='Nurse', bg='darkgrey', command=
            self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.frame3, text='Laboratorist', bg='darkgrey',
            command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.frame3, text='Pharmacist', bg='darkgrey',
            command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.frame3, text='Accountant', bg='darkgrey',
            command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button8 = Button(self.frame3, text='Home', bg='#444343', command=
            self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        self.login2 = StringVar()
        self.pass2 = StringVar()
        label10 = Label(self.frame3, text='Patient Id:', font=(
            'Times new roman', 12), width=15)
        label10.grid(column=3, row=2)
        self.entry111 = Entry(self.frame3, width=15, textvariable=self.login2)
        self.entry111.grid(column=4, row=2)
        label11 = Label(self.frame3, text='Password:', font=(
            'Times new roman', 12), width=15)
        label11.grid(column=3, row=3)
        self.entry222 = Entry(self.frame3, width=15, textvariable=self.pass2)
        self.entry222.grid(column=4, row=3)
        button1 = Button(self.frame3, text='Login', bg='darkgrey', command=
            self.framesJ)
        button1.grid(column=4, row=4, pady=10, ipadx=40)
        self.frame4 = Frame(window)
        self.frame4.pack()
        label1 = Label(self.frame4, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.frame4, text='               ')
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.frame4, text='Admin', bg='darkgrey', command=
            self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.frame4, text='Patient', bg='darkgrey',
            command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.frame4, text='Doctor', bg='lightgrey',
            command=self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.frame4, text='Nurse', bg='darkgrey', command=
            self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.frame4, text='Laboratorist', bg='darkgrey',
            command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.frame4, text='Pharmacist', bg='darkgrey',
            command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.frame4, text='Accountant', bg='darkgrey',
            command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button8 = Button(self.frame4, text='Home', bg='#444343', command=
            self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        self.login3 = StringVar()
        self.pass3 = StringVar()
        label10 = Label(self.frame4, text='Doctor Id:', font=(
            'Times new roman', 12), width=15)
        label10.grid(column=3, row=2)
        self.entry112 = Entry(self.frame4, width=15, textvariable=self.login3)
        self.entry112.grid(column=4, row=2)
        label11 = Label(self.frame4, text='Password:', font=(
            'Times new roman', 12), width=15)
        label11.grid(column=3, row=3)
        self.entry223 = Entry(self.frame4, width=15, textvariable=self.pass3)
        self.entry223.grid(column=4, row=3)
        button1 = Button(self.frame4, text='Login', bg='darkgrey', command=
            self.framesJ)
        button1.grid(column=4, row=4, pady=10, ipadx=40)
        self.frame5 = Frame(window)
        self.frame5.pack()
        label1 = Label(self.frame5, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.frame5, text='               ')
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.frame5, text='Admin', bg='darkgrey', command=
            self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.frame5, text='Patient', bg='darkgrey',
            command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.frame5, text='Doctor', bg='darkgrey', command
            =self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.frame5, text='Nurse', bg='lightgrey', command
            =self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.frame5, text='Laboratorist', bg='darkgrey',
            command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.frame5, text='Pharmacist', bg='darkgrey',
            command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.frame5, text='Accountant', bg='darkgrey',
            command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button8 = Button(self.frame5, text='Home', bg='#444343', command=
            self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        self.login4 = StringVar()
        self.pass4 = StringVar()
        label10 = Label(self.frame5, text='Nurse Id:', font=(
            'Times new roman', 12), width=15)
        label10.grid(column=3, row=2)
        self.entry113 = Entry(self.frame5, width=15, textvariable=self.login4)
        self.entry113.grid(column=4, row=2)
        label11 = Label(self.frame5, text='Password:', font=(
            'Times new roman', 12), width=15)
        label11.grid(column=3, row=3)
        self.entry224 = Entry(self.frame5, width=15, textvariable=self.pass4)
        self.entry224.grid(column=4, row=3)
        button1 = Button(self.frame5, text='Login', bg='darkgrey', command=
            self.framesJ)
        button1.grid(column=4, row=4, pady=10, ipadx=40)
        self.frame6 = Frame(window)
        self.frame6.pack()
        label1 = Label(self.frame6, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.frame6, text='               ')
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.frame6, text='Admin', bg='darkgrey', command=
            self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.frame6, text='Patient', bg='darkgrey',
            command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.frame6, text='Doctor', bg='darkgrey', command
            =self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.frame6, text='Nurse', bg='darkgrey', command=
            self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.frame6, text='Laboratorist', bg='lightgrey',
            command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.frame6, text='Pharmacist', bg='darkgrey',
            command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.frame6, text='Accountant', bg='darkgrey',
            command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button8 = Button(self.frame6, text='Home', bg='#444343', command=
            self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        self.login5 = StringVar()
        self.pass5 = StringVar()
        label10 = Label(self.frame6, text='Laboratorist Id:', font=(
            'Times new roman', 12), width=15)
        label10.grid(column=3, row=2)
        self.entry114 = Entry(self.frame6, width=15, textvariable=self.login5)
        self.entry114.grid(column=4, row=2)
        label11 = Label(self.frame6, text='Password:', font=(
            'Times new roman', 12), width=15)
        label11.grid(column=3, row=3)
        self.entry225 = Entry(self.frame6, width=15, textvariable=self.pass5)
        self.entry225.grid(column=4, row=3)
        button1 = Button(self.frame6, text='Login', bg='darkgrey', command=
            self.framesJ)
        button1.grid(column=4, row=4, pady=10, ipadx=40)
        self.frame7 = Frame(window)
        self.frame7.pack()
        label1 = Label(self.frame7, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.frame7, text='               ')
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.frame7, text='Admin', bg='darkgrey', command=
            self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.frame7, text='Patient', bg='darkgrey',
            command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.frame7, text='Doctor', bg='darkgrey', command
            =self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.frame7, text='Nurse', bg='darkgrey', command=
            self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.frame7, text='Laboratorist', bg='darkgrey',
            command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.frame7, text='Pharmacist', bg='lightgrey',
            command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.frame7, text='Accountant', bg='darkgrey',
            command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button8 = Button(self.frame7, text='Home', bg='#444343', command=
            self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        self.login6 = StringVar()
        self.pass6 = StringVar()
        label10 = Label(self.frame7, text='Pharmacist Id:', font=(
            'Times new roman', 12), width=15)
        label10.grid(column=3, row=2)
        self.entry115 = Entry(self.frame7, width=15, textvariable=self.login6)
        self.entry115.grid(column=4, row=2)
        label11 = Label(self.frame7, text='Password:', font=(
            'Times new roman', 12), width=15)
        label11.grid(column=3, row=3)
        self.entry226 = Entry(self.frame7, width=15, textvariable=self.pass6)
        self.entry226.grid(column=4, row=3)
        button1 = Button(self.frame7, text='Login', bg='darkgrey', command=
            self.framesJ)
        button1.grid(column=4, row=4, pady=10, ipadx=40)
        self.frame8 = Frame(window)
        self.frame8.pack()
        label1 = Label(self.frame8, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.frame8, text='               ')
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.frame8, text='Admin', bg='darkgrey', command=
            self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.frame8, text='Patient', bg='darkgrey',
            command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.frame8, text='Doctor', bg='darkgrey', command
            =self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.frame8, text='Nurse', bg='darkgrey', command=
            self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.frame8, text='Laboratorist', bg='darkgrey',
            command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.frame8, text='Pharmacist', bg='darkgrey',
            command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.frame8, text='Accountant', bg='lightgrey',
            command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button8 = Button(self.frame8, text='Home', bg='#444343', command=
            self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        self.login7 = StringVar()
        self.pass7 = StringVar()
        label10 = Label(self.frame8, text='Accountant Id:', font=(
            'Times new roman', 12), width=15)
        label10.grid(column=3, row=2)
        self.entry116 = Entry(self.frame8, width=15, textvariable=self.login7)
        self.entry116.grid(column=4, row=2)
        label11 = Label(self.frame8, text='Password:', font=(
            'Times new roman', 12), width=15)
        label11.grid(column=3, row=3)
        self.entry227 = Entry(self.frame8, width=15, textvariable=self.pass7)
        self.entry227.grid(column=4, row=3)
        button1 = Button(self.frame8, text='Login', bg='darkgrey', command=
            self.framesJ)
        button1.grid(column=4, row=4, pady=10, ipadx=40)
        self.framea = Frame(window)
        self.framea.pack()
        label1 = Label(self.framea, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.framea, text='               ')
        label2.grid(column=0, row=0, pady=50)
        labela = Label(self.framea, text='Admin', bg='#60a1f0')
        labela.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.framea, text='Patient', bg='darkgrey',
            command=self.framesb)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.framea, text='Doctor', bg='lightgrey',
            command=self.framesa)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.framea, text='Nurse', bg='darkgrey', command=
            self.framesc)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.framea, text='Laboratorist', bg='darkgrey',
            command=self.framesd)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.framea, text='Pharmacist', bg='darkgrey',
            command=self.framese)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.framea, text='Accountant', bg='darkgrey',
            command=self.framesf)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button7 = Button(self.framea, text='Appointments', bg='darkgrey',
            command=self.appoint)
        button7.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framea, text='Surgeries', bg='darkgrey',
            command=self.surg)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framea, text='Payments', bg='darkgrey',
            command=self.pay)
        button7.grid(column=3, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framea, text='Medicines', bg='darkgrey',
            command=self.medec)
        button7.grid(column=4, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framea, text='Birth report', bg='darkgrey',
            command=self.birthd)
        button7.grid(column=5, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framea, text='Death report', bg='darkgrey',
            command=self.deathd)
        button7.grid(column=6, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framea, text='Change Password', bg='darkgrey',
            command=self.framespass)
        button7.grid(column=7, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.framea, text='Home', bg='#444343', command=
            self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        label12 = Label(self.framea, text='1. Name:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=1)
        label12 = Label(self.framea, text='2. Doc Id:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=2)
        label12 = Label(self.framea, text='3. Age:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=3)
        label12 = Label(self.framea, text='4. Sex:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=4)
        label12 = Label(self.framea, text='5. Qualificatn:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=5)
        label12 = Label(self.framea, text='6. Speciality:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=6)
        label12 = Label(self.framea, text='7. Blood Type:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=7)
        label12 = Label(self.framea, text='8. Address:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=4, row=1)
        label12 = Label(self.framea, text='9. Phone num:', font=(
            'Times new roman', 12), width=15)
        label12.grid(column=4, row=2)
        label12 = Label(self.framea, text='10. Date of birth:', font=(
            'Times new roman', 12), width=15)
        label12.grid(column=4, row=3)
        label12 = Label(self.framea, text='11. Date of join:', font=(
            'Times new roman', 12), width=15)
        label12.grid(column=4, row=4)
        label12 = Label(self.framea, text='12. Salary:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=4, row=5)
        label12 = Label(self.framea, text='13. Working days:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=4, row=6)
        label12 = Label(self.framea, text='14. Timings:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=4, row=7)
        label12 = Label(self.framea, text='15. Office num:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=6, row=1)
        label12 = Label(self.framea, text='16. Password:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=6, row=2)
        self.name1 = StringVar()
        self.id1 = StringVar()
        self.age1 = StringVar()
        self.sex1 = StringVar()
        self.quality1 = StringVar()
        self.special1 = StringVar()
        self.bloodtype1 = StringVar()
        self.address1 = StringVar()
        self.phonenum1 = StringVar()
        self.dateb1 = StringVar()
        self.datej1 = StringVar()
        self.salary1 = StringVar()
        self.work1 = StringVar()
        self.time1 = StringVar()
        self.office1 = StringVar()
        self.password1 = StringVar()
        self.entry29 = Entry(self.framea, textvariable=self.name1)
        self.entry29.grid(column=3, row=1)
        self.entry30 = Entry(self.framea, textvariable=self.id1)
        self.entry30.grid(column=3, row=2)
        self.entry31 = Entry(self.framea, textvariable=self.age1)
        self.entry31.grid(column=3, row=3)
        self.entry32 = Entry(self.framea, textvariable=self.sex1)
        self.entry32.grid(column=3, row=4)
        self.entry33 = Entry(self.framea, textvariable=self.quality1)
        self.entry33.grid(column=3, row=5)
        self.entry34 = Entry(self.framea, textvariable=self.special1)
        self.entry34.grid(column=3, row=6)
        self.entry35 = Entry(self.framea, textvariable=self.bloodtype1)
        self.entry35.grid(column=3, row=7)
        self.entry36 = Entry(self.framea, textvariable=self.address1)
        self.entry36.grid(column=5, row=1)
        self.entry37 = Entry(self.framea, textvariable=self.phonenum1)
        self.entry37.grid(column=5, row=2)
        self.entry38 = Entry(self.framea, textvariable=self.dateb1)
        self.entry38.grid(column=5, row=3)
        self.entry39 = Entry(self.framea, textvariable=self.datej1)
        self.entry39.grid(column=5, row=4)
        self.entry40 = Entry(self.framea, textvariable=self.salary1)
        self.entry40.grid(column=5, row=5)
        self.entry41 = Entry(self.framea, textvariable=self.work1)
        self.entry41.grid(column=5, row=6)
        self.entry42 = Entry(self.framea, textvariable=self.time1)
        self.entry42.grid(column=5, row=7)
        self.entry43 = Entry(self.framea, textvariable=self.office1)
        self.entry43.grid(column=7, row=1)
        self.entry44 = Entry(self.framea, textvariable=self.password1)
        self.entry44.grid(column=7, row=2)
        button11 = Button(self.framea, text='Add Doctor', width=15, bg=
            'darkgrey', command=self.doctor)
        button11.grid(column=6, row=3)
        button12 = Button(self.framea, text='View Doctor List', width=15,
            bg='darkgrey', command=self.framesI)
        button12.grid(column=6, row=4)
        self.frameb = Frame(window)
        self.frameb.pack()
        label1 = Label(self.frameb, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.frameb, text='               ')
        label2.grid(column=0, row=0, pady=50)
        labela = Label(self.frameb, text='Admin', bg='#60a1f0')
        labela.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.frameb, text='Patient', bg='lightgrey',
            command=self.framesb)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.frameb, text='Doctor', bg='darkgrey', command
            =self.framesa)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.frameb, text='Nurse', bg='darkgrey', command=
            self.framesc)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.frameb, text='Laboratorist', bg='darkgrey',
            command=self.framesd)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.frameb, text='Pharmacist', bg='darkgrey',
            command=self.framese)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.frameb, text='Accountant', bg='darkgrey',
            command=self.framesf)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button7 = Button(self.frameb, text='Appointments', bg='darkgrey',
            command=self.appoint)
        button7.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.frameb, text='Surgeries', bg='darkgrey',
            command=self.surg)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.frameb, text='Payments', bg='darkgrey',
            command=self.pay)
        button7.grid(column=3, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.frameb, text='Medicines', bg='darkgrey',
            command=self.medec)
        button7.grid(column=4, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.frameb, text='Birth report', bg='darkgrey',
            command=self.birthd)
        button7.grid(column=5, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.frameb, text='Death report', bg='darkgrey',
            command=self.deathd)
        button7.grid(column=6, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.frameb, text='Change Password', bg='darkgrey',
            command=self.framespass)
        button7.grid(column=7, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.frameb, text='Home', bg='#444343', command=
            self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        label12 = Label(self.frameb, text='1. Name:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=1)
        label12 = Label(self.frameb, text='2. Patient Id:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=2)
        label12 = Label(self.frameb, text='3. Age:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=3)
        label12 = Label(self.frameb, text='4. Sex:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=4)
        label12 = Label(self.frameb, text='5. Blood Type:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=5)
        label12 = Label(self.frameb, text='6. Problem:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=6)
        label12 = Label(self.frameb, text='7. Address:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=7)
        label12 = Label(self.frameb, text='8. Phone num:', font=(
            'Times new roman', 12), width=15)
        label12.grid(column=4, row=1)
        label12 = Label(self.frameb, text='9. Date of join:', font=(
            'Times new roman', 12), width=15)
        label12.grid(column=4, row=2)
        label12 = Label(self.frameb, text='10. Password:', font=(
            'Times new roman', 12), width=15)
        label12.grid(column=4, row=3)
        self.name2 = StringVar()
        self.id2 = StringVar()
        self.age2 = StringVar()
        self.sex2 = StringVar()
        self.bloodtype2 = StringVar()
        self.problem2 = StringVar()
        self.address2 = StringVar()
        self.phonenum2 = StringVar()
        self.datej2 = StringVar()
        self.password2 = StringVar()
        self.entry19 = Entry(self.frameb, textvariable=self.name2)
        self.entry19.grid(column=3, row=1)
        self.entry20 = Entry(self.frameb, textvariable=self.id2)
        self.entry20.grid(column=3, row=2)
        self.entry21 = Entry(self.frameb, textvariable=self.age2)
        self.entry21.grid(column=3, row=3)
        self.entry22 = Entry(self.frameb, textvariable=self.sex2)
        self.entry22.grid(column=3, row=4)
        self.entry23 = Entry(self.frameb, textvariable=self.bloodtype2)
        self.entry23.grid(column=3, row=5)
        self.entry24 = Entry(self.frameb, textvariable=self.problem2)
        self.entry24.grid(column=3, row=6)
        self.entry25 = Entry(self.frameb, textvariable=self.address2)
        self.entry25.grid(column=3, row=7)
        self.entry26 = Entry(self.frameb, textvariable=self.phonenum2)
        self.entry26.grid(column=5, row=1)
        self.entry27 = Entry(self.frameb, textvariable=self.datej2)
        self.entry27.grid(column=5, row=2)
        self.entry28 = Entry(self.frameb, textvariable=self.password2)
        self.entry28.grid(column=5, row=3)
        button9 = Button(self.frameb, text='Add Patient', width=15, bg=
            'darkgrey', command=self.patient)
        button9.grid(column=4, row=4)
        button10 = Button(self.frameb, text='View Patient List', width=15,
            bg='darkgrey', command=self.framesI)
        button10.grid(column=4, row=5)
        self.framec = Frame(window)
        self.framec.pack()
        label1 = Label(self.framec, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.framec, text='               ')
        label2.grid(column=0, row=0, pady=50)
        labela = Label(self.framec, text='Admin', bg='#60a1f0')
        labela.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.framec, text='Patient', bg='darkgrey',
            command=self.framesb)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.framec, text='Doctor', bg='darkgrey', command
            =self.framesa)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.framec, text='Nurse', bg='lightgrey', command
            =self.framesc)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.framec, text='Laboratorist', bg='darkgrey',
            command=self.framesd)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.framec, text='Pharmacist', bg='darkgrey',
            command=self.framese)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.framec, text='Accountant', bg='darkgrey',
            command=self.framesf)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button7 = Button(self.framec, text='Appointments', bg='darkgrey',
            command=self.appoint)
        button7.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framec, text='Surgeries', bg='darkgrey',
            command=self.surg)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framec, text='Payments', bg='darkgrey',
            command=self.pay)
        button7.grid(column=3, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framec, text='Medicines', bg='darkgrey',
            command=self.medec)
        button7.grid(column=4, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framec, text='Birth report', bg='darkgrey',
            command=self.birthd)
        button7.grid(column=5, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framec, text='Death report', bg='darkgrey',
            command=self.deathd)
        button7.grid(column=6, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framec, text='Change Password', bg='darkgrey',
            command=self.framespass)
        button7.grid(column=7, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.framec, text='Home', bg='#444343', command=
            self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        label12 = Label(self.framec, text='1. Name:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=1)
        label12 = Label(self.framec, text='2. Nurse Id:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=2)
        label12 = Label(self.framec, text='3. Age:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=3)
        label12 = Label(self.framec, text='4. Sex:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=4)
        label12 = Label(self.framec, text='5. Blood Type:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=5)
        label12 = Label(self.framec, text='6. Address:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=6)
        label12 = Label(self.framec, text='7. Phone num:', font=(
            'Times new roman', 12), width=15)
        label12.grid(column=2, row=7)
        label12 = Label(self.framec, text='8. Date of join:', font=(
            'Times new roman', 12), width=15)
        label12.grid(column=4, row=1)
        label12 = Label(self.framec, text='9. Password:', font=(
            'Times new roman', 12), width=15)
        label12.grid(column=4, row=2)
        self.name3 = StringVar()
        self.id3 = StringVar()
        self.age3 = StringVar()
        self.sex3 = StringVar()
        self.bloodtype3 = StringVar()
        self.address3 = StringVar()
        self.phonenum3 = StringVar()
        self.datej3 = StringVar()
        self.password3 = StringVar()
        entry45 = Entry(self.framec, textvariable=self.name3)
        entry45.grid(column=3, row=1)
        entry46 = Entry(self.framec, textvariable=self.id3)
        entry46.grid(column=3, row=2)
        entry47 = Entry(self.framec, textvariable=self.age3)
        entry47.grid(column=3, row=3)
        entry48 = Entry(self.framec, textvariable=self.sex3)
        entry48.grid(column=3, row=4)
        entry49 = Entry(self.framec, textvariable=self.bloodtype3)
        entry49.grid(column=3, row=5)
        entry50 = Entry(self.framec, textvariable=self.address3)
        entry50.grid(column=3, row=6)
        entry51 = Entry(self.framec, textvariable=self.phonenum3)
        entry51.grid(column=3, row=7)
        entry52 = Entry(self.framec, textvariable=self.datej3)
        entry52.grid(column=5, row=1)
        entry53 = Entry(self.framec, textvariable=self.password3)
        entry53.grid(column=5, row=2)
        button9 = Button(self.framec, text='Add Nurse', width=15, bg=
            'darkgrey', command=self.nurse)
        button9.grid(column=4, row=3)
        button10 = Button(self.framec, text='View Nurse List', width=15, bg
            ='darkgrey', command=self.framesI)
        button10.grid(column=4, row=4)
        self.framed = Frame(window)
        self.framed.pack()
        label1 = Label(self.framed, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.framed, text='               ')
        label2.grid(column=0, row=0, pady=50)
        labela = Label(self.framed, text='Admin', bg='#60a1f0')
        labela.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.framed, text='Patient', bg='darkgrey',
            command=self.framesb)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.framed, text='Doctor', bg='darkgrey', command
            =self.framesa)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.framed, text='Nurse', bg='darkgrey', command=
            self.framesc)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.framed, text='Laboratorist', bg='lightgrey',
            command=self.framesd)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.framed, text='Pharmacist', bg='darkgrey',
            command=self.framese)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.framed, text='Accountant', bg='darkgrey',
            command=self.framesf)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button7 = Button(self.framed, text='Appointments', bg='darkgrey',
            command=self.appoint)
        button7.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framed, text='Surgeries', bg='darkgrey',
            command=self.surg)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framed, text='Payments', bg='darkgrey',
            command=self.pay)
        button7.grid(column=3, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framed, text='Medicines', bg='darkgrey',
            command=self.medec)
        button7.grid(column=4, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framed, text='Birth report', bg='darkgrey',
            command=self.birthd)
        button7.grid(column=5, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framed, text='Death report', bg='darkgrey',
            command=self.deathd)
        button7.grid(column=6, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framed, text='Change Password', bg='darkgrey',
            command=self.framespass)
        button7.grid(column=7, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.framed, text='Home', bg='#444343', command=
            self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        label12 = Label(self.framed, text='1. Name:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=1)
        label12 = Label(self.framed, text='2. Laboratorist Id:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=2)
        label12 = Label(self.framed, text='3. Age:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=3)
        label12 = Label(self.framed, text='4. Sex:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=4)
        label12 = Label(self.framed, text='5. Blood Type:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=5)
        label12 = Label(self.framed, text='6. Address:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=6)
        label12 = Label(self.framed, text='7. Phone num:', font=(
            'Times new roman', 12), width=15)
        label12.grid(column=2, row=7)
        label12 = Label(self.framed, text='8. Date of join:', font=(
            'Times new roman', 12), width=15)
        label12.grid(column=4, row=1)
        label12 = Label(self.framed, text='9. Password:', font=(
            'Times new roman', 12), width=15)
        label12.grid(column=4, row=2)
        self.name4 = StringVar()
        self.id4 = StringVar()
        self.age4 = StringVar()
        self.sex4 = StringVar()
        self.bloodtype4 = StringVar()
        self.address4 = StringVar()
        self.phonenum4 = StringVar()
        self.datej4 = StringVar()
        self.password4 = StringVar()
        entry54 = Entry(self.framed, textvariable=self.name4)
        entry54.grid(column=3, row=1)
        entry55 = Entry(self.framed, textvariable=self.id4)
        entry55.grid(column=3, row=2)
        entry56 = Entry(self.framed, textvariable=self.age4)
        entry56.grid(column=3, row=3)
        entry57 = Entry(self.framed, textvariable=self.sex4)
        entry57.grid(column=3, row=4)
        entry58 = Entry(self.framed, textvariable=self.bloodtype4)
        entry58.grid(column=3, row=5)
        entry59 = Entry(self.framed, textvariable=self.address4)
        entry59.grid(column=3, row=6)
        entry60 = Entry(self.framed, textvariable=self.phonenum4)
        entry60.grid(column=3, row=7)
        entry61 = Entry(self.framed, textvariable=self.datej4)
        entry61.grid(column=5, row=1)
        entry62 = Entry(self.framed, textvariable=self.password4)
        entry62.grid(column=5, row=2)
        button9 = Button(self.framed, text='Add Lab.st', width=15, bg=
            'darkgrey', command=self.laboratorist)
        button9.grid(column=4, row=3)
        button10 = Button(self.framed, text='View Lab.st List', width=15,
            bg='darkgrey', command=self.framesI)
        button10.grid(column=4, row=4)
        self.framee = Frame(window)
        self.framee.pack()
        label1 = Label(self.framee, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.framee, text='               ')
        label2.grid(column=0, row=0, pady=50)
        labela = Label(self.framee, text='Admin', bg='#60a1f0')
        labela.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.framee, text='Patient', bg='darkgrey',
            command=self.framesb)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.framee, text='Doctor', bg='darkgrey', command
            =self.framesa)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.framee, text='Nurse', bg='darkgrey', command=
            self.framesc)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.framee, text='Laboratorist', bg='darkgrey',
            command=self.framesd)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.framee, text='Pharmacist', bg='lightgrey',
            command=self.framese)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.framee, text='Accountant', bg='darkgrey',
            command=self.framesf)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button7 = Button(self.framee, text='Appointments', bg='darkgrey',
            command=self.appoint)
        button7.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framee, text='Surgeries', bg='darkgrey',
            command=self.surg)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framee, text='Payments', bg='darkgrey',
            command=self.pay)
        button7.grid(column=3, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framee, text='Medicines', bg='darkgrey',
            command=self.medec)
        button7.grid(column=4, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framee, text='Birth report', bg='darkgrey',
            command=self.birthd)
        button7.grid(column=5, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framee, text='Death report', bg='darkgrey',
            command=self.deathd)
        button7.grid(column=6, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framee, text='Change Password', bg='darkgrey',
            command=self.framespass)
        button7.grid(column=7, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.framee, text='Home', bg='#444343', command=
            self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        label12 = Label(self.framee, text='1. Name:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=1)
        label12 = Label(self.framee, text='2. Pharmacist Id:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=2)
        label12 = Label(self.framee, text='3. Age:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=3)
        label12 = Label(self.framee, text='4. Sex:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=4)
        label12 = Label(self.framee, text='5. Blood Type:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=5)
        label12 = Label(self.framee, text='6. Address:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=6)
        label12 = Label(self.framee, text='7. Phone num:', font=(
            'Times new roman', 12), width=15)
        label12.grid(column=2, row=7)
        label12 = Label(self.framee, text='8. Date of join:', font=(
            'Times new roman', 12), width=15)
        label12.grid(column=4, row=1)
        label12 = Label(self.framee, text='9. Password:', font=(
            'Times new roman', 12), width=15)
        label12.grid(column=4, row=2)
        self.name5 = StringVar()
        self.id5 = StringVar()
        self.age5 = StringVar()
        self.sex5 = StringVar()
        self.bloodtype5 = StringVar()
        self.address5 = StringVar()
        self.phonenum5 = StringVar()
        self.datej5 = StringVar()
        self.password5 = StringVar()
        entry63 = Entry(self.framee, textvariable=self.name5)
        entry63.grid(column=3, row=1)
        entry64 = Entry(self.framee, textvariable=self.id5)
        entry64.grid(column=3, row=2)
        entry65 = Entry(self.framee, textvariable=self.age5)
        entry65.grid(column=3, row=3)
        entry66 = Entry(self.framee, textvariable=self.sex5)
        entry66.grid(column=3, row=4)
        entry67 = Entry(self.framee, textvariable=self.bloodtype5)
        entry67.grid(column=3, row=5)
        entry68 = Entry(self.framee, textvariable=self.address5)
        entry68.grid(column=3, row=6)
        entry69 = Entry(self.framee, textvariable=self.phonenum5)
        entry69.grid(column=3, row=7)
        entry70 = Entry(self.framee, textvariable=self.datej5)
        entry70.grid(column=5, row=1)
        entry71 = Entry(self.framee, textvariable=self.password5)
        entry71.grid(column=5, row=2)
        button9 = Button(self.framee, text='Add Pharm.st', width=15, bg=
            'darkgrey', command=self.pharmacist)
        button9.grid(column=4, row=3)
        button10 = Button(self.framee, text='View Pharm.st List', width=15,
            bg='darkgrey', command=self.framesI)
        button10.grid(column=4, row=4)
        self.framef = Frame(window)
        self.framef.pack()
        label1 = Label(self.framef, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.framef, text='               ')
        label2.grid(column=0, row=0, pady=50)
        labela = Label(self.framef, text='Admin', bg='#60a1f0')
        labela.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.framef, text='Patient', bg='darkgrey',
            command=self.framesb)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.framef, text='Doctor', bg='darkgrey', command
            =self.framesa)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.framef, text='Nurse', bg='darkgrey', command=
            self.framesc)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.framef, text='Laboratorist', bg='darkgrey',
            command=self.framesd)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.framef, text='Pharmacist', bg='darkgrey',
            command=self.framese)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.framef, text='Accountant', bg='lightgrey',
            command=self.framesf)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button7 = Button(self.framef, text='Appointments', bg='darkgrey',
            command=self.appoint)
        button7.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framef, text='Surgeries', bg='darkgrey',
            command=self.surg)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framef, text='Payments', bg='darkgrey',
            command=self.pay)
        button7.grid(column=3, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framef, text='Medicines', bg='darkgrey',
            command=self.medec)
        button7.grid(column=4, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framef, text='Birth report', bg='darkgrey',
            command=self.birthd)
        button7.grid(column=5, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framef, text='Death report', bg='darkgrey',
            command=self.deathd)
        button7.grid(column=6, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framef, text='Change Password', bg='darkgrey',
            command=self.framespass)
        button7.grid(column=7, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.framef, text='Home', bg='#444343', command=
            self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        label12 = Label(self.framef, text='1. Name:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=1)
        label12 = Label(self.framef, text='2. Accountant Id:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=2)
        label12 = Label(self.framef, text='3. Age:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=3)
        label12 = Label(self.framef, text='4. Sex:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=4)
        label12 = Label(self.framef, text='5. Blood Type:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=5)
        label12 = Label(self.framef, text='6. Address:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=6)
        label12 = Label(self.framef, text='7. Phone num:', font=(
            'Times new roman', 12), width=15)
        label12.grid(column=2, row=7)
        label12 = Label(self.framef, text='8. Date of join:', font=(
            'Times new roman', 12), width=15)
        label12.grid(column=4, row=1)
        label12 = Label(self.framef, text='9. Password:', font=(
            'Times new roman', 12), width=15)
        label12.grid(column=4, row=2)
        self.name6 = StringVar()
        self.id6 = StringVar()
        self.age6 = StringVar()
        self.sex6 = StringVar()
        self.bloodtype6 = StringVar()
        self.address6 = StringVar()
        self.phonenum6 = StringVar()
        self.datej6 = StringVar()
        self.password6 = StringVar()
        entry72 = Entry(self.framef, textvariable=self.name6)
        entry72.grid(column=3, row=1)
        entry73 = Entry(self.framef, textvariable=self.id6)
        entry73.grid(column=3, row=2)
        entry74 = Entry(self.framef, textvariable=self.age6)
        entry74.grid(column=3, row=3)
        entry75 = Entry(self.framef, textvariable=self.sex6)
        entry75.grid(column=3, row=4)
        entry76 = Entry(self.framef, textvariable=self.bloodtype6)
        entry76.grid(column=3, row=5)
        entry77 = Entry(self.framef, textvariable=self.address6)
        entry77.grid(column=3, row=6)
        entry78 = Entry(self.framef, textvariable=self.phonenum6)
        entry78.grid(column=3, row=7)
        entry79 = Entry(self.framef, textvariable=self.datej6)
        entry79.grid(column=5, row=1)
        entry80 = Entry(self.framef, textvariable=self.password6)
        entry80.grid(column=5, row=2)
        button9 = Button(self.framef, text='Add Account.t', width=15, bg=
            'darkgrey', command=self.accountant)
        button9.grid(column=4, row=3)
        button10 = Button(self.framef, text='View Account.t List', width=15,
            bg='darkgrey', command=self.framesI)
        button10.grid(column=4, row=4)
        self.frameI = Frame(window)
        self.frameI.pack()
        label1 = Label(self.frameI, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.frameI, text='               ')
        label2.grid(column=0, row=0, pady=50)
        labela = Label(self.frameI, text='Admin', bg='#60a1f0')
        labela.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.frameI, text='Patient', bg='darkgrey',
            command=self.framesb)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.frameI, text='Doctor', bg='darkgrey', command
            =self.framesa)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.frameI, text='Nurse', bg='darkgrey', command=
            self.framesc)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.frameI, text='Laboratorist', bg='darkgrey',
            command=self.framesd)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.frameI, text='Pharmacist', bg='darkgrey',
            command=self.framese)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.frameI, text='Accountant', bg='darkgrey',
            command=self.framesf)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button7 = Button(self.frameI, text='Appointments', bg='darkgrey',
            command=self.appoint)
        button7.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.frameI, text='Surgeries', bg='darkgrey',
            command=self.surg)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.frameI, text='Payments', bg='darkgrey',
            command=self.pay)
        button7.grid(column=3, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.frameI, text='Medicines', bg='darkgrey',
            command=self.medec)
        button7.grid(column=4, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.frameI, text='Birth report', bg='darkgrey',
            command=self.birthd)
        button7.grid(column=5, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.frameI, text='Death report', bg='darkgrey',
            command=self.deathd)
        button7.grid(column=6, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.frameI, text='Change Password', bg='darkgrey',
            command=self.framespass)
        button7.grid(column=7, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.frameI, text='Home', bg='#444343', command=
            self.framespass)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        self.text1 = Text(self.frameI, height=20, width=193, font=(
            'Times new roman', 9), bg='lightgrey')
        self.text1.grid(column=1, row=1, columnspan=8, rowspan=7)
        self.framedoc1 = Frame(window)
        self.framedoc1.pack()
        label1 = Label(self.framedoc1, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.framedoc1, text='               ')
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.framedoc1, text='Admin', bg='darkgrey',
            command=self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.framedoc1, text='Patient', bg='darkgrey',
            command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.framedoc1, text='Doctor', bg='darkgrey',
            command=self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.framedoc1, text='Nurse', bg='darkgrey',
            command=self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.framedoc1, text='Laboratorist', bg='darkgrey',
            command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.framedoc1, text='Pharmacist', bg='darkgrey',
            command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.framedoc1, text='Accountant', bg='darkgrey',
            command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button8 = Button(self.framedoc1, text='Appointments', bg=
            'lightgrey', command=self.framesdoc1)
        button8.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framedoc1, text='Surgeries', bg='darkgrey',
            command=self.framesdoc2)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framedoc1, text='Medicines', bg='darkgrey',
            command=self.framesdoc3)
        button7.grid(column=3, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framedoc1, text='Add Appointment', bg=
            'darkgrey', command=self.appointment)
        button7.grid(column=4, row=3, padx=10, pady=10, ipadx=30, columnspan=2)
        button7 = Button(self.framedoc1, text='View Appointments', bg=
            'darkgrey', command=self.appoint1)
        button7.grid(column=4, row=4, padx=10, pady=10, ipadx=30, columnspan=2)
        button7 = Button(self.framedoc1, text='Change Password', bg=
            'darkgrey', command=self.framespass)
        button7.grid(column=4, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.framedoc1, text='Home', bg='#444343', command
            =self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        label12 = Label(self.framedoc1, text='1. Patient Name:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=1)
        label12 = Label(self.framedoc1, text='2. Patient Id:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=2)
        label12 = Label(self.framedoc1, text='3. problem:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=3)
        label12 = Label(self.framedoc1, text='4. day:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=4)
        label12 = Label(self.framedoc1, text='5. Time:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=5)
        label12 = Label(self.framedoc1, text='6. Status:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=6)
        label12 = Label(self.framedoc1, text='7. Doctor Ic:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=7)
        self.app1 = StringVar()
        self.app2 = StringVar()
        self.app3 = StringVar()
        self.app4 = StringVar()
        self.app5 = StringVar()
        self.app6 = StringVar()
        self.app7 = StringVar()
        entry45 = Entry(self.framedoc1, textvariable=self.app1)
        entry45.grid(column=3, row=1)
        entry46 = Entry(self.framedoc1, textvariable=self.app2)
        entry46.grid(column=3, row=2)
        entry47 = Entry(self.framedoc1, textvariable=self.app3)
        entry47.grid(column=3, row=3)
        entry48 = Entry(self.framedoc1, textvariable=self.app4)
        entry48.grid(column=3, row=4)
        entry49 = Entry(self.framedoc1, textvariable=self.app5)
        entry49.grid(column=3, row=5)
        entry50 = Entry(self.framedoc1, textvariable=self.app6)
        entry50.grid(column=3, row=6)
        entry51 = Entry(self.framedoc1, textvariable=self.app7)
        entry51.grid(column=3, row=7)
        self.framedoc2 = Frame(window)
        self.framedoc2.pack()
        label1 = Label(self.framedoc2, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.framedoc2, text='               ')
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.framedoc2, text='Admin', bg='darkgrey',
            command=self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.framedoc2, text='Patient', bg='darkgrey',
            command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.framedoc2, text='Doctor', bg='darkgrey',
            command=self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.framedoc2, text='Nurse', bg='darkgrey',
            command=self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.framedoc2, text='Laboratorist', bg='darkgrey',
            command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.framedoc2, text='Pharmacist', bg='darkgrey',
            command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.framedoc2, text='Accountant', bg='darkgrey',
            command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button8 = Button(self.framedoc2, text='Appointments', bg='darkgrey',
            command=self.framesdoc1)
        button8.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framedoc2, text='Surgeries', bg='lightgrey',
            command=self.framesdoc2)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framedoc2, text='Medicines', bg='darkgrey',
            command=self.framesdoc3)
        button7.grid(column=3, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framedoc2, text='Add Operations', bg=
            'darkgrey', command=self.surg1)
        button7.grid(column=4, row=3, padx=10, pady=10, ipadx=30, columnspan=2)
        button7 = Button(self.framedoc2, text='View Operations', bg=
            'darkgrey', command=self.framesda)
        button7.grid(column=4, row=4, padx=10, pady=10, ipadx=30, columnspan=2)
        button7 = Button(self.framedoc2, text='Change Password', bg=
            'darkgrey', command=self.framespass)
        button7.grid(column=4, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.framedoc2, text='Home', bg='#444343', command
            =self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        label12 = Label(self.framedoc2, text='1. Operation Name:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=1)
        label12 = Label(self.framedoc2, text='2. Patient Id:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=2)
        label12 = Label(self.framedoc2, text='3. Date:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=3)
        label12 = Label(self.framedoc2, text='4. Cost:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=4)
        label12 = Label(self.framedoc2, text='5. Doctor Id:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=5)
        self.sur1 = StringVar()
        self.sur2 = StringVar()
        self.sur3 = StringVar()
        self.sur4 = StringVar()
        self.sur5 = StringVar()
        self.sur6 = StringVar()
        self.sur7 = StringVar()
        entry45 = Entry(self.framedoc2, textvariable=self.sur1)
        entry45.grid(column=3, row=1)
        entry46 = Entry(self.framedoc2, textvariable=self.sur2)
        entry46.grid(column=3, row=2)
        entry47 = Entry(self.framedoc2, textvariable=self.sur3)
        entry47.grid(column=3, row=3)
        entry48 = Entry(self.framedoc2, textvariable=self.sur4)
        entry48.grid(column=3, row=4)
        entry49 = Entry(self.framedoc2, textvariable=self.sur5)
        entry49.grid(column=3, row=5)
        self.framedoc3 = Frame(window)
        self.framedoc3.pack()
        label1 = Label(self.framedoc3, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.framedoc3, text='               ')
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.framedoc3, text='Admin', bg='darkgrey',
            command=self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.framedoc3, text='Patient', bg='darkgrey',
            command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.framedoc3, text='Doctor', bg='darkgrey',
            command=self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.framedoc3, text='Nurse', bg='darkgrey',
            command=self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.framedoc3, text='Laboratorist', bg='darkgrey',
            command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.framedoc3, text='Pharmacist', bg='darkgrey',
            command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.framedoc3, text='Accountant', bg='darkgrey',
            command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button8 = Button(self.framedoc3, text='Appointments', bg='darkgrey',
            command=self.framesdoc1)
        button8.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framedoc3, text='Surgeries', bg='darkgrey',
            command=self.framesdoc2)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framedoc3, text='Medicines', bg='lightgrey',
            command=self.framesdoc3)
        button7.grid(column=3, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framedoc3, text='Add Prescription', bg=
            'darkgrey', command=self.medicine)
        button7.grid(column=4, row=3, padx=10, pady=10, ipadx=30, columnspan=2)
        button7 = Button(self.framedoc3, text='View Prescriptions', bg=
            'darkgrey', command=self.medec1)
        button7.grid(column=4, row=4, padx=10, pady=10, ipadx=30, columnspan=2)
        button7 = Button(self.framedoc3, text='Change Password', bg=
            'darkgrey', command=self.frames1)
        button7.grid(column=4, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.framedoc3, text='Home', bg='#444343', command
            =self.framespass)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        label12 = Label(self.framedoc3, text='1. Patient Id:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=1)
        label12 = Label(self.framedoc3, text='2. Problem:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=2)
        label12 = Label(self.framedoc3, text='3. Prescription:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=3)
        label12 = Label(self.framedoc3, text='4. Cost:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=4)
        label12 = Label(self.framedoc3, text='5. Doctor Id:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=5)
        self.med1 = StringVar()
        self.med2 = StringVar()
        self.med3 = StringVar()
        self.med4 = StringVar()
        self.med5 = StringVar()
        entry45 = Entry(self.framedoc3, textvariable=self.med1)
        entry45.grid(column=3, row=1)
        entry46 = Entry(self.framedoc3, textvariable=self.med2)
        entry46.grid(column=3, row=2)
        entry47 = Entry(self.framedoc3, textvariable=self.med3)
        entry47.grid(column=3, row=3)
        entry48 = Entry(self.framedoc3, textvariable=self.med4)
        entry48.grid(column=3, row=4)
        entry49 = Entry(self.framedoc3, textvariable=self.med5)
        entry49.grid(column=3, row=5)
        self.frameacc = Frame(window)
        self.frameacc.pack()
        label1 = Label(self.frameacc, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.frameacc, text='               ')
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.frameacc, text='Admin', bg='darkgrey',
            command=self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.frameacc, text='Patient', bg='darkgrey',
            command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.frameacc, text='accor', bg='darkgrey',
            command=self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.frameacc, text='Nurse', bg='darkgrey',
            command=self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.frameacc, text='Laboratorist', bg='darkgrey',
            command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.frameacc, text='Pharmacist', bg='darkgrey',
            command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.frameacc, text='Accountant', bg='darkgrey',
            command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button7 = Button(self.frameacc, text='Payments', bg='lightgrey',
            command=self.framesacc)
        button7.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.frameacc, text='Add Payment', bg='darkgrey',
            command=self.payment)
        button7.grid(column=4, row=3, padx=10, pady=10, ipadx=30, columnspan=2)
        button7 = Button(self.frameacc, text='View Payments', bg='darkgrey',
            command=self.pay1)
        button7.grid(column=4, row=4, padx=10, pady=10, ipadx=30, columnspan=2)
        button7 = Button(self.frameacc, text='Change Password', bg=
            'darkgrey', command=self.framespass)
        button7.grid(column=4, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.frameacc, text='Home', bg='#444343', command=
            self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        label12 = Label(self.frameacc, text='1. Patient Id:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=1)
        label12 = Label(self.frameacc, text='2. Doctor fee:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=2)
        label12 = Label(self.frameacc, text='3. Operation fee:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=3)
        label12 = Label(self.frameacc, text='4. Bed fee:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=4)
        label12 = Label(self.frameacc, text='5. Medicine fee:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=5)
        label12 = Label(self.frameacc, text='6. Food fee:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=6)
        label12 = Label(self.frameacc, text='7. Blood fee:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=7)
        self.acc1 = StringVar()
        self.acc2 = StringVar()
        self.acc3 = StringVar()
        self.acc4 = StringVar()
        self.acc5 = StringVar()
        self.acc6 = StringVar()
        self.acc7 = StringVar()
        entry45 = Entry(self.frameacc, textvariable=self.acc1)
        entry45.grid(column=3, row=1)
        entry46 = Entry(self.frameacc, textvariable=self.acc2)
        entry46.grid(column=3, row=2)
        entry47 = Entry(self.frameacc, textvariable=self.acc3)
        entry47.grid(column=3, row=3)
        entry48 = Entry(self.frameacc, textvariable=self.acc4)
        entry48.grid(column=3, row=4)
        entry49 = Entry(self.frameacc, textvariable=self.acc5)
        entry49.grid(column=3, row=5)
        entry49 = Entry(self.frameacc, textvariable=self.acc6)
        entry49.grid(column=3, row=6)
        entry49 = Entry(self.frameacc, textvariable=self.acc7)
        entry49.grid(column=3, row=7)
        self.framepharm = Frame(window)
        self.framepharm.pack()
        label1 = Label(self.framepharm, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.framepharm, text='               ')
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.framepharm, text='Admin', bg='darkgrey',
            command=self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.framepharm, text='Patient', bg='darkgrey',
            command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.framepharm, text='accor', bg='darkgrey',
            command=self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.framepharm, text='Nurse', bg='darkgrey',
            command=self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.framepharm, text='Laboratorist', bg=
            'darkgrey', command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.framepharm, text='Pharmacist', bg='darkgrey',
            command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.framepharm, text='Accountant', bg='darkgrey',
            command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button7 = Button(self.framepharm, text='Medicines', bg='lightgrey',
            command=self.framespharm)
        button7.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framepharm, text='Add Prescriptions', bg=
            'darkgrey', command=self.medicine)
        button7.grid(column=4, row=3, padx=10, pady=10, ipadx=30, columnspan=2)
        button7 = Button(self.framepharm, text='View Prescriptions', bg=
            'darkgrey', command=self.medec2)
        button7.grid(column=4, row=4, padx=10, pady=10, ipadx=30, columnspan=2)
        button7 = Button(self.framepharm, text='Change Password', bg=
            'darkgrey', command=self.framespass)
        button7.grid(column=4, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.framepharm, text='Home', bg='#444343',
            command=self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        label12 = Label(self.framepharm, text='1. Patient Id:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=1)
        label12 = Label(self.framepharm, text='2. Problem:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=2)
        label12 = Label(self.framepharm, text='3. Prescription:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=3)
        label12 = Label(self.framepharm, text='4. Cost:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=4)
        label12 = Label(self.framepharm, text='5. Doctor Id:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=5)
        self.med1 = StringVar()
        self.med2 = StringVar()
        self.med3 = StringVar()
        self.med4 = StringVar()
        self.med5 = StringVar()
        entry45 = Entry(self.framepharm, textvariable=self.med1)
        entry45.grid(column=3, row=1)
        entry46 = Entry(self.framepharm, textvariable=self.med2)
        entry46.grid(column=3, row=2)
        entry47 = Entry(self.framepharm, textvariable=self.med3)
        entry47.grid(column=3, row=3)
        entry48 = Entry(self.framepharm, textvariable=self.med4)
        entry48.grid(column=3, row=4)
        entry49 = Entry(self.framepharm, textvariable=self.med5)
        entry49.grid(column=3, row=5)
        self.framenur1 = Frame(window)
        self.framenur1.pack()
        label1 = Label(self.framenur1, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.framenur1, text='               ')
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.framenur1, text='Admin', bg='darkgrey',
            command=self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.framenur1, text='Patient', bg='darkgrey',
            command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.framenur1, text='Doctor', bg='darkgrey',
            command=self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.framenur1, text='Nurse', bg='darkgrey',
            command=self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.framenur1, text='Laboratorist', bg='darkgrey',
            command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.framenur1, text='Pharmacist', bg='darkgrey',
            command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.framenur1, text='Accountant', bg='darkgrey',
            command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button8 = Button(self.framenur1, text='Birth report', bg=
            'lightgrey', command=self.framesnur1)
        button8.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framenur1, text='Death report', bg='darkgrey',
            command=self.framesnur2)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framenur1, text='Add Birth report', bg=
            'darkgrey', command=self.birthreport)
        button7.grid(column=4, row=3, padx=10, pady=10, ipadx=30, columnspan=2)
        button7 = Button(self.framenur1, text='View Birth report', bg=
            'darkgrey', command=self.birth1)
        button7.grid(column=4, row=4, padx=10, pady=10, ipadx=30, columnspan=2)
        button7 = Button(self.framenur1, text='Change Password', bg=
            'darkgrey', command=self.framespass)
        button7.grid(column=4, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.framenur1, text='Home', bg='#444343', command
            =self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        label12 = Label(self.framenur1, text='1. Date of birth:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=1)
        label12 = Label(self.framenur1, text='2. Time of Birth:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=2)
        label12 = Label(self.framenur1, text='3. Father name:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=3)
        label12 = Label(self.framenur1, text='4. Mother name:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=4)
        label12 = Label(self.framenur1, text='5. Parent Ph. Num:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=5)
        label12 = Label(self.framenur1, text='6. Sex:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=6)
        self.nur1 = StringVar()
        self.nur2 = StringVar()
        self.nur3 = StringVar()
        self.nur4 = StringVar()
        self.nur5 = StringVar()
        self.nur6 = StringVar()
        entry45 = Entry(self.framenur1, textvariable=self.nur1)
        entry45.grid(column=3, row=1)
        entry46 = Entry(self.framenur1, textvariable=self.nur2)
        entry46.grid(column=3, row=2)
        entry47 = Entry(self.framenur1, textvariable=self.nur3)
        entry47.grid(column=3, row=3)
        entry48 = Entry(self.framenur1, textvariable=self.nur4)
        entry48.grid(column=3, row=4)
        entry49 = Entry(self.framenur1, textvariable=self.nur5)
        entry49.grid(column=3, row=5)
        entry49 = Entry(self.framenur1, textvariable=self.nur6)
        entry49.grid(column=3, row=6)
        self.framenur2 = Frame(window)
        self.framenur2.pack()
        label1 = Label(self.framenur2, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.framenur2, text='               ')
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.framenur2, text='Admin', bg='darkgrey',
            command=self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.framenur2, text='Patient', bg='darkgrey',
            command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.framenur2, text='Doctor', bg='darkgrey',
            command=self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.framenur2, text='Nurse', bg='darkgrey',
            command=self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.framenur2, text='Laboratorist', bg='darkgrey',
            command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.framenur2, text='Pharmacist', bg='darkgrey',
            command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.framenur2, text='Accountant', bg='darkgrey',
            command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button8 = Button(self.framenur2, text='Birth report', bg='darkgrey',
            command=self.framesnur1)
        button8.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framenur2, text='Death report', bg=
            'lightgrey', command=self.framesnur2)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framenur2, text='Add Death report', bg=
            'darkgrey', command=self.deathreport)
        button7.grid(column=4, row=3, padx=10, pady=10, ipadx=30, columnspan=2)
        button7 = Button(self.framenur2, text='View Death report', bg=
            'darkgrey', command=self.death1)
        button7.grid(column=4, row=4, padx=10, pady=10, ipadx=30, columnspan=2)
        button7 = Button(self.framenur2, text='Change Password', bg=
            'darkgrey', command=self.framespass)
        button7.grid(column=4, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.framenur2, text='Home', bg='#444343', command
            =self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        label12 = Label(self.framenur2, text="1. Victim's Name:", font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=1)
        label12 = Label(self.framenur2, text='2. Date of birth:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=2)
        label12 = Label(self.framenur2, text='3. Date of Death:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=3)
        label12 = Label(self.framenur2, text='4. Time of Death:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=4)
        label12 = Label(self.framenur2, text='5. Parent Ph. Num:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=5)
        label12 = Label(self.framenur2, text='6. Sex:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=6)
        self.dea1 = StringVar()
        self.dea2 = StringVar()
        self.dea3 = StringVar()
        self.dea4 = StringVar()
        self.dea5 = StringVar()
        self.dea6 = StringVar()
        entry45 = Entry(self.framenur2, textvariable=self.dea1)
        entry45.grid(column=3, row=1)
        entry46 = Entry(self.framenur2, textvariable=self.dea2)
        entry46.grid(column=3, row=2)
        entry47 = Entry(self.framenur2, textvariable=self.dea3)
        entry47.grid(column=3, row=3)
        entry48 = Entry(self.framenur2, textvariable=self.dea4)
        entry48.grid(column=3, row=4)
        entry49 = Entry(self.framenur2, textvariable=self.dea5)
        entry49.grid(column=3, row=5)
        entry49 = Entry(self.framenur2, textvariable=self.dea6)
        entry49.grid(column=3, row=6)
        self.framepass = Frame(window)
        self.framepass.pack()
        label1 = Label(self.framepass, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.framepass, text='               ')
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.framepass, text='Admin', bg='darkgrey',
            command=self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.framepass, text='Patient', bg='darkgrey',
            command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.framepass, text='Doctor', bg='darkgrey',
            command=self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.framepass, text='Nurse', bg='darkgrey',
            command=self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.framepass, text='Laboratorist', bg='darkgrey',
            command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.framepass, text='Pharmacist', bg='darkgrey',
            command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.framepass, text='Accountant', bg='darkgrey',
            command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button8 = Button(self.framepass, text='Home', bg='#444343', command
            =self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        button7 = Button(self.framepass, text='Submit', bg='darkgrey',
            command=self.activate)
        button7.grid(column=4, row=4, padx=10, pady=10, ipadx=37.5)
        self.passs = StringVar()
        label11 = Label(self.framepass, text='Enter new password:', font=(
            'Times new roman', 12), width=15)
        label11.grid(column=1, row=4, columnspan=2)
        self.entry333 = Entry(self.framepass, width=15, textvariable=self.passs
            )
        self.entry333.grid(column=3, row=4)
        self.frameda = Frame(window)
        self.frameda.pack()
        label1 = Label(self.frameda, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.frameda, text='               ')
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.frameda, text='Admin', bg='darkgrey', command
            =self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.frameda, text='Patient', bg='darkgrey',
            command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.frameda, text='Doctor', bg='darkgrey',
            command=self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.frameda, text='Nurse', bg='darkgrey', command
            =self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.frameda, text='Laboratorist', bg='darkgrey',
            command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.frameda, text='Pharmacist', bg='darkgrey',
            command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.frameda, text='Accountant', bg='darkgrey',
            command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button7 = Button(self.frameda, text='Appointments', bg='darkgrey',
            command=self.appoint1)
        button7.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.frameda, text='Surgeries', bg='darkgrey',
            command=self.surg1)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.frameda, text='Medicines', bg='darkgrey',
            command=self.medec1)
        button7.grid(column=3, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.frameda, text='Back', bg='darkgrey', command=
            self.framesdoc1)
        button7.grid(column=4, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.frameda, text='Home', bg='#444343', command=
            self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        self.text2 = Text(self.frameda, height=20, width=193, font=(
            'Times new roman', 9), bg='lightgrey')
        self.text2.grid(column=1, row=1, columnspan=8, rowspan=7)
        self.framedb = Frame(window)
        self.framedb.pack()
        label1 = Label(self.framedb, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.framedb, text='               ')
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.framedb, text='Admin', bg='darkgrey', command
            =self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.framedb, text='Patient', bg='darkgrey',
            command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.framedb, text='Doctor', bg='darkgrey',
            command=self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.framedb, text='Nurse', bg='darkgrey', command
            =self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.framedb, text='Laboratorist', bg='darkgrey',
            command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.framedb, text='Pharmacist', bg='darkgrey',
            command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.framedb, text='Accountant', bg='darkgrey',
            command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button7 = Button(self.framedb, text='Birth report', bg='darkgrey',
            command=self.birth1)
        button7.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framedb, text='Death report', bg='darkgrey',
            command=self.death1)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framedb, text='Back', bg='darkgrey', command=
            self.framesnur1)
        button7.grid(column=3, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.framedb, text='Home', bg='#444343', command=
            self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        self.text3 = Text(self.framedb, height=20, width=193, font=(
            'Times new roman', 9), bg='lightgrey')
        self.text3.grid(column=1, row=1, columnspan=8, rowspan=7)
        self.framedc = Frame(window)
        self.framedc.pack()
        label1 = Label(self.framedc, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.framedc, text='               ')
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.framedc, text='Admin', bg='darkgrey', command
            =self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.framedc, text='Patient', bg='darkgrey',
            command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.framedc, text='Doctor', bg='darkgrey',
            command=self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.framedc, text='Nurse', bg='darkgrey', command
            =self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.framedc, text='Laboratorist', bg='darkgrey',
            command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.framedc, text='Pharmacist', bg='darkgrey',
            command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.framedc, text='Accountant', bg='darkgrey',
            command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button7 = Button(self.framedc, text='Payment', bg='lightgrey',
            command=self.pay1)
        button7.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framedc, text='Back', bg='darkgrey', command=
            self.framesacc)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.framedc, text='Home', bg='#444343', command=
            self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        self.text4 = Text(self.framedc, height=20, width=193, font=(
            'Times new roman', 9), bg='lightgrey')
        self.text4.grid(column=1, row=1, columnspan=8, rowspan=7)
        self.framedd = Frame(window)
        self.framedd.pack()
        label1 = Label(self.framedd, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.framedd, text='               ')
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.framedd, text='Admin', bg='darkgrey', command
            =self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.framedd, text='Patient', bg='darkgrey',
            command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.framedd, text='Doctor', bg='darkgrey',
            command=self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.framedd, text='Nurse', bg='darkgrey', command
            =self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.framedd, text='Laboratorist', bg='darkgrey',
            command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.framedd, text='Pharmacist', bg='darkgrey',
            command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.framedd, text='Accountant', bg='darkgrey',
            command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button7 = Button(self.framedd, text='Medicine', bg='lightgrey',
            command=self.medec2)
        button7.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framedd, text='Back', bg='darkgrey', command=
            self.framespharm)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.framedd, text='Home', bg='#444343', command=
            self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        self.text5 = Text(self.framedd, height=20, width=193, font=(
            'Times new roman', 9), bg='lightgrey')
        self.text5.grid(column=1, row=1, columnspan=8, rowspan=7)
        self.framede = Frame(window)
        self.framede.pack()
        label1 = Label(self.framede, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.framede, text='               ')
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.framede, text='Admin', bg='darkgrey', command
            =self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.framede, text='Patient', bg='darkgrey',
            command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.framede, text='Doctor', bg='darkgrey',
            command=self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.framede, text='Nurse', bg='darkgrey', command
            =self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.framede, text='Laboratorist', bg='darkgrey',
            command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.framede, text='Pharmacist', bg='darkgrey',
            command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.framede, text='Accountant', bg='darkgrey',
            command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button7 = Button(self.framede, text='Appointments', bg='lightgrey',
            command=self.a1)
        button7.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framede, text='Surgeries', bg='lightgrey',
            command=self.a2)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framede, text='Payments', bg='lightgrey',
            command=self.a4)
        button7.grid(column=3, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framede, text='Medicines', bg='lightgrey',
            command=self.a3)
        button7.grid(column=4, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framede, text='Change password', bg=
            'darkgrey', command=self.framespass)
        button7.grid(column=5, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.framede, text='Home', bg='#444343', command=
            self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        self.text6 = Text(self.framede, height=20, width=193, font=(
            'Times new roman', 9), bg='lightgrey')
        self.text6.grid(column=1, row=1, columnspan=8, rowspan=7)
        window.mainloop()

    def framesde(self):
        self.frame1.pack_forget()
        self.frame2.pack_forget()
        self.frame3.pack_forget()
        self.frame4.pack_forget()
        self.frame5.pack_forget()
        self.frame6.pack_forget()
        self.frame7.pack_forget()
        self.frame8.pack_forget()
        self.framede.pack()

    def a1(self):
        self.framesde()
        self.text6.delete(1.0, END)
        self.list1 = []
        self.list2 = []
        for i in range(1, self.appointment3.max_row + 1):
            for j in range(1, self.appointment3.max_column + 1):
                k = len(str(self.appointment3.cell(row=i, column=j).value))
                y = str(self.appointment3.cell(row=i, column=j).value
                    ) + ' ' * (12 - k)
                self.list1.append(y)
            for k in range(1, self.appointment3.max_column + 1):
                z = str(self.appointment3.cell(row=i, column=j).value)
                self.list2.append(z)
            if str(self.login2.get()) in self.list2:
                self.text6.insert(END, self.list1)
                self.text6.insert(END, '\n')
            self.list2 = []
            self.list1 = []
    <mask token>

    def a3(self):
        self.framesde()
        self.text6.delete(1.0, END)
        self.list1 = []
        self.list2 = []
        for i in range(1, self.medicine3.max_row + 1):
            for j in range(1, self.medicine3.max_column + 1):
                k = len(str(self.medicine3.cell(row=i, column=j).value))
                y = str(self.medicine3.cell(row=i, column=j).value) + ' ' * (
                    12 - k)
                self.list1.append(y)
            for k in range(1, self.medicine3.max_column + 1):
                z = str(self.medicine3.cell(row=i, column=j).value)
                self.list2.append(z)
            if str(self.login2.get()) in self.list2:
                self.text6.insert(END, self.list1)
                self.text6.insert(END, '\n')
            self.list2 = []
            self.list1 = []

    def a4(self):
        self.framesde()
        self.text6.delete(1.0, END)
        self.list1 = []
        self.list2 = []
        for i in range(1, self.payment3.max_row + 1):
            for j in range(1, self.payment3.max_column + 1):
                k = len(str(self.payment3.cell(row=i, column=j).value))
                y = str(self.payment3.cell(row=i, column=j).value) + ' ' * (
                    12 - k)
                self.list1.append(y)
            for k in range(1, self.payment3.max_column + 1):
                z = str(self.payment3.cell(row=i, column=j).value)
                self.list2.append(z)
            if str(self.login2.get()) in self.list2:
                self.text6.insert(END, self.list1)
                self.text6.insert(END, '\n')
            self.list2 = []
            self.list1 = []
    <mask token>
    <mask token>

    def framesdc(self):
        self.frameacc.pack_forget()
        self.framedc.pack()
    <mask token>
    <mask token>
    <mask token>

    def death1(self):
        self.framesdb()
        self.text3.delete(1.0, END)
        self.list1 = []
        for i in range(1, self.death3.max_row + 1):
            for j in range(1, self.death3.max_column + 1):
                k = len(str(self.death3.cell(row=i, column=j).value))
                y = str(self.death3.cell(row=i, column=j).value) + ' ' * (
                    12 - k)
                self.list1.append(y)
            self.text3.insert(END, self.list1)
            self.text3.insert(END, '\n')
            self.list1 = []
    <mask token>
    <mask token>

    def birthreport(self):
        self.list1 = [self.nur1.get(), self.nur2.get(), self.nur3.get(),
            self.nur4.get(), self.nur5.get(), self.nur6.get()]
        self.a = 1
        self.b = self.birth3.max_row + 1
        for i in self.list1:
            self.birth3.cell(row=self.b, column=self.a).value = i
            self.a += 1
        self.wb3.save('HRMS.xlsx')

    def payment(self):
        self.list1 = [self.acc1.get(), self.acc2.get(), self.acc3.get(),
            self.acc4.get(), self.acc5.get(), self.acc6.get(), self.acc7.get()]
        self.a = 1
        self.b = self.payment3.max_row + 1
        for i in self.list1:
            self.payment3.cell(row=self.b, column=self.a).value = i
            self.a += 1
        self.wb3.save('HRMS.xlsx')

    def medicine(self):
        self.list1 = [self.med1.get(), self.med2.get(), self.med3.get(),
            self.med4.get(), self.med5.get()]
        self.a = 1
        self.b = self.medicine3.max_row + 1
        for i in self.list1:
            self.medicine3.cell(row=self.b, column=self.a).value = i
            self.a += 1
        self.wb3.save('HRMS.xlsx')
    <mask token>

    def appointment(self):
        self.list1 = [self.app1.get(), self.app2.get(), self.app3.get(),
            self.app4.get(), self.app5.get(), self.app6.get(), self.app7.get()]
        self.a = 1
        self.b = self.appointment3.max_row + 1
        for i in self.list1:
            self.appointment3.cell(row=self.b, column=self.a).value = i
            self.a += 1
        self.wb3.save('HRMS.xlsx')

    def doctor(self):
        self.list1 = [self.name1.get(), self.id1.get(), self.age1.get(),
            self.sex1.get(), self.quality1.get(), self.special1.get(), self
            .bloodtype1.get(), self.address1.get(), self.phonenum1.get(),
            self.dateb1.get(), self.datej1.get(), self.salary1.get(), self.
            work1.get(), self.time1.get(), self.office1.get(), self.
            password1.get()]
        self.a = 1
        self.b = self.doctor3.max_row + 1
        for i in self.list1:
            self.doctor3.cell(row=self.b, column=self.a).value = i
            self.a += 1
        self.wb3.save('HRMS.xlsx')
        self.report()
        self.entry29.delete(0, END)
        self.entry30.delete(0, END)
        self.entry31.delete(0, END)
        self.entry32.delete(0, END)
        self.entry33.delete(0, END)
        self.entry34.delete(0, END)
        self.entry35.delete(0, END)
        self.entry36.delete(0, END)
        self.entry37.delete(0, END)
        self.entry38.delete(0, END)
        self.entry39.delete(0, END)
        self.entry40.delete(0, END)
        self.entry41.delete(0, END)
        self.entry42.delete(0, END)
        self.entry43.delete(0, END)
        self.entry44.delete(0, END)

    def patient(self):
        self.list1 = [self.name2.get(), self.id2.get(), self.age2.get(),
            self.sex2.get(), self.bloodtype2.get(), self.problem2.get(),
            self.address2.get(), self.phonenum2.get(), self.datej2.get(),
            self.password2.get()]
        self.a = 1
        self.b = self.patient3.max_row + 1
        for i in self.list1:
            self.patient3.cell(row=self.b, column=self.a).value = i
            self.a += 1
        self.wb3.save('HRMS.xlsx')
        self.report()
        self.entry19.delete(0, END)
        self.entry20.delete(0, END)
        self.entry21.delete(0, END)
        self.entry22.delete(0, END)
        self.entry23.delete(0, END)
        self.entry24.delete(0, END)
        self.entry25.delete(0, END)
        self.entry26.delete(0, END)
        self.entry27.delete(0, END)
        self.entry28.delete(0, END)
    <mask token>

    def laboratorist(self):
        self.list1 = [self.name4.get(), self.id4.get(), self.age4.get(),
            self.sex4.get(), self.bloodtype4.get(), self.address4.get(),
            self.phonenum4.get(), self.datej4.get(), self.password4.get()]
        self.a = 1
        self.b = self.laboratorist3.max_row + 1
        for i in self.list1:
            self.laboratorist3.cell(row=self.b, column=self.a).value = i
            self.a += 1
        self.wb3.save('HRMS.xlsx')
        self.report()
        self.entry54.delete(0, END)
        self.entry55.delete(0, END)
        self.entry56.delete(0, END)
        self.entry57.delete(0, END)
        self.entry58.delete(0, END)
        self.entry59.delete(0, END)
        self.entry60.delete(0, END)
        self.entry61.delete(0, END)
        self.entry62.delete(0, END)

    def pharmacist(self):
        self.list1 = [self.name5.get(), self.id5.get(), self.age5.get(),
            self.sex5.get(), self.bloodtype5.get(), self.address5.get(),
            self.phonenum5.get(), self.datej5.get(), self.password5.get()]
        self.a = 1
        self.b = self.pharmacist3.max_row + 1
        for i in self.list1:
            self.pharmacist3.cell(row=self.b, column=self.a).value = i
            self.a += 1
        self.wb3.save('HRMS.xlsx')
        self.report()
        self.entry63.delete(0, END)
        self.entry64.delete(0, END)
        self.entry65.delete(0, END)
        self.entry66.delete(0, END)
        self.entry67.delete(0, END)
        self.entry68.delete(0, END)
        self.entry69.delete(0, END)
        self.entry70.delete(0, END)
        self.entry71.delete(0, END)

    def accountant(self):
        self.list1 = [self.name6.get(), self.id6.get(), self.age6.get(),
            self.sex6.get(), self.bloodtype6.get(), self.address6.get(),
            self.phonenum6.get(), self.datej6.get(), self.password6.get()]
        self.a = 1
        self.b = self.accountant3.max_row + 1
        for i in self.list1:
            self.accountant3.cell(row=self.b, column=self.a).value = i
            self.a += 1
        self.wb3.save('HRMS.xlsx')
        self.report()
        self.entry72.delete(0, END)
        self.entry73.delete(0, END)
        self.entry74.delete(0, END)
        self.entry75.delete(0, END)
        self.entry76.delete(0, END)
        self.entry77.delete(0, END)
        self.entry78.delete(0, END)
        self.entry79.delete(0, END)
        self.entry80.delete(0, END)
    <mask token>
    <mask token>

    def frames13(self):
        self.I = False
        self.II = True
        self.III = False
        self.IIII = False
        self.IIIII = False
        self.IIIIII = False
        self.frame1.pack_forget()
        self.frame2.pack_forget()
        self.frame3.pack_forget()
        self.frame5.pack_forget()
        self.frame6.pack_forget()
        self.frame7.pack_forget()
        self.frame8.pack_forget()
        self.framea.pack_forget()
        self.frameb.pack_forget()
        self.framec.pack_forget()
        self.framed.pack_forget()
        self.framee.pack_forget()
        self.framef.pack_forget()
        self.frameI.pack_forget()
        self.frameacc.pack_forget()
        self.framedoc1.pack_forget()
        self.framedoc2.pack_forget()
        self.framedoc3.pack_forget()
        self.framenur1.pack_forget()
        self.framenur2.pack_forget()
        self.framepharm.pack_forget()
        self.framepass.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.frame4.pack()
    <mask token>
    <mask token>

    def frames16(self):
        self.I = False
        self.II = False
        self.III = False
        self.IIII = False
        self.IIIII = True
        self.IIIIII = False
        self.frame1.pack_forget()
        self.frame2.pack_forget()
        self.frame3.pack_forget()
        self.frame4.pack_forget()
        self.frame5.pack_forget()
        self.frame6.pack_forget()
        self.frame8.pack_forget()
        self.framea.pack_forget()
        self.frameb.pack_forget()
        self.framec.pack_forget()
        self.framed.pack_forget()
        self.framee.pack_forget()
        self.framef.pack_forget()
        self.frameI.pack_forget()
        self.frameacc.pack_forget()
        self.framedoc1.pack_forget()
        self.framedoc2.pack_forget()
        self.framedoc3.pack_forget()
        self.framenur1.pack_forget()
        self.framenur2.pack_forget()
        self.framepharm.pack_forget()
        self.framepass.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.frame7.pack()

    def frames17(self):
        self.I = False
        self.II = False
        self.III = False
        self.IIII = False
        self.IIIII = False
        self.IIIIII = True
        self.frame1.pack_forget()
        self.frame2.pack_forget()
        self.frame3.pack_forget()
        self.frame4.pack_forget()
        self.frame5.pack_forget()
        self.frame6.pack_forget()
        self.frame7.pack_forget()
        self.framea.pack_forget()
        self.frameb.pack_forget()
        self.framec.pack_forget()
        self.framed.pack_forget()
        self.framee.pack_forget()
        self.framef.pack_forget()
        self.frameI.pack_forget()
        self.frameacc.pack_forget()
        self.framedoc1.pack_forget()
        self.framedoc2.pack_forget()
        self.framedoc3.pack_forget()
        self.framenur1.pack_forget()
        self.framenur2.pack_forget()
        self.framepharm.pack_forget()
        self.framepass.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.frame8.pack()
    <mask token>

    def framesb(self):
        self.I = True
        self.II = False
        self.III = False
        self.IIII = False
        self.IIIII = False
        self.IIIIII = False
        if self.login1.get() == str(self.security3.cell(row=1, column=1).value
            ) and self.pass1.get() == str(self.security3.cell(row=1, column
            =2).value):
            self.J = True
            self.JJ = False
            self.JJJ = False
            self.JJJJ = False
            self.JJJJJ = False
            self.JJJJJJ = False
            self.JJJJJJJ = False
            self.frame2.pack_forget()
            self.framea.pack_forget()
            self.framec.pack_forget()
            self.framed.pack_forget()
            self.framee.pack_forget()
            self.framef.pack_forget()
            self.frameI.pack_forget()
            self.frameacc.pack_forget()
            self.framedoc1.pack_forget()
            self.framedoc2.pack_forget()
            self.framedoc3.pack_forget()
            self.frameda.pack_forget()
            self.framedb.pack_forget()
            self.framedc.pack_forget()
            self.framedd.pack_forget()
            self.framede.pack_forget()
            self.frameb.pack()
            self.entry1.delete(0, END)
            self.entry2.delete(0, END)
        else:
            tkinter.messagebox.showerror('showerror', 'Incorrect Password')

    def framesc(self):
        self.I = False
        self.II = False
        self.III = True
        self.IIII = False
        self.IIIII = False
        self.IIIIII = False
        self.framea.pack_forget()
        self.frameb.pack_forget()
        self.framed.pack_forget()
        self.framee.pack_forget()
        self.framef.pack_forget()
        self.frameI.pack_forget()
        self.frameacc.pack_forget()
        self.framedoc1.pack_forget()
        self.framedoc2.pack_forget()
        self.framedoc3.pack_forget()
        self.framepass.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.framec.pack()
    <mask token>
    <mask token>

    def framesf(self):
        self.I = False
        self.II = False
        self.III = False
        self.IIII = False
        self.IIIII = False
        self.IIIIII = True
        self.framea.pack_forget()
        self.frameb.pack_forget()
        self.framec.pack_forget()
        self.framed.pack_forget()
        self.framee.pack_forget()
        self.frameI.pack_forget()
        self.frameacc.pack_forget()
        self.framedoc1.pack_forget()
        self.framedoc2.pack_forget()
        self.framedoc3.pack_forget()
        self.framepass.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.framef.pack()
    <mask token>

    def framesl(self):
        self.framea.pack_forget()
        self.frameb.pack_forget()
        self.framec.pack_forget()
        self.framed.pack_forget()
        self.framee.pack_forget()
        self.framef.pack_forget()
        self.frameacc.pack_forget()
        self.framedoc1.pack_forget()
        self.framedoc2.pack_forget()
        self.framedoc3.pack_forget()
        self.framenur1.pack_forget()
        self.framenur2.pack_forget()
        self.framepharm.pack_forget()
        self.framepass.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.frameI.pack_forget()
        self.frameda.pack()
    <mask token>

    def surg1(self):
        self.framesl()
        self.text2.delete(1.0, END)
        self.list1 = []
        self.list2 = []
        for i in range(1, self.surgery3.max_row + 1):
            for j in range(1, self.surgery3.max_column + 1):
                k = len(str(self.surgery3.cell(row=i, column=j).value))
                y = str(self.surgery3.cell(row=i, column=j).value) + ' ' * (
                    12 - k)
                self.list1.append(y)
            for k in range(1, self.surgery3.max_column + 1):
                z = str(self.surgery3.cell(row=i, column=j).value)
                self.list2.append(z)
            if str(self.login3.get()) in self.list2:
                self.text2.insert(END, self.list1)
                self.text2.insert(END, '\n')
            self.list2 = []
            self.list1 = []

    def medec1(self):
        self.framesl()
        self.text2.delete(1.0, END)
        self.list1 = []
        self.list12 = []
        for i in range(1, self.medicine3.max_row + 1):
            for j in range(1, self.medicine3.max_column + 1):
                k = len(str(self.medicine3.cell(row=i, column=j).value))
                y = str(self.medicine3.cell(row=i, column=j).value) + ' ' * (
                    12 - k)
                self.list1.append(y)
            for k in range(1, self.medicine3.max_column + 1):
                z = str(self.medicine3.cell(row=i, column=j).value)
                self.list2.append(z)
            if str(self.login3.get()) in self.list2:
                self.text2.insert(END, self.list1)
                self.text2.insert(END, '\n')
            self.list2 = []
            self.list1 = []

    def appoint(self):
        self.framesh()
        self.text1.delete(1.0, END)
        self.list1 = []
        for i in range(1, self.appointment3.max_row + 1):
            for j in range(1, self.appointment3.max_column + 1):
                k = len(str(self.appointment3.cell(row=i, column=j).value))
                y = str(self.appointment3.cell(row=i, column=j).value
                    ) + ' ' * (12 - k)
                self.list1.append(y)
            self.text1.insert(END, self.list1)
            self.text1.insert(END, '\n')
            self.list1 = []

    def surg(self):
        self.framesh()
        self.text1.delete(1.0, END)
        self.list1 = []
        for i in range(1, self.surgery3.max_row + 1):
            for j in range(1, self.surgery3.max_column + 1):
                k = len(str(self.surgery3.cell(row=i, column=j).value))
                y = str(self.surgery3.cell(row=i, column=j).value) + ' ' * (
                    12 - k)
                self.list1.append(y)
            self.text1.insert(END, self.list1)
            self.text1.insert(END, '\n')
            self.list1 = []
    <mask token>

    def pay(self):
        self.framesh()
        self.text1.delete(1.0, END)
        self.list1 = []
        for i in range(1, self.payment3.max_row + 1):
            for j in range(1, self.payment3.max_column + 1):
                k = len(str(self.payment3.cell(row=i, column=j).value))
                y = str(self.payment3.cell(row=i, column=j).value) + ' ' * (
                    12 - k)
                self.list1.append(y)
            self.text1.insert(END, self.list1)
            self.text1.insert(END, '\n')
            self.list1 = []
    <mask token>

    def deathd(self):
        self.framesh()
        self.text1.delete(1.0, END)
        self.list1 = []
        for i in range(1, self.death3.max_row + 1):
            for j in range(1, self.death3.max_column + 1):
                k = len(str(self.death3.cell(row=i, column=j).value))
                y = str(self.death3.cell(row=i, column=j).value) + ' ' * (
                    12 - k)
                self.list1.append(y)
            self.text1.insert(END, self.list1)
            self.text1.insert(END, '\n')
            self.list1 = []

    def framesI(self):
        if self.II == True:
            self.framesh()
            self.text1.delete(1.0, END)
            self.list1 = []
            for i in range(1, self.doctor3.max_row + 1):
                for j in range(1, self.doctor3.max_column + 1):
                    k = len(str(self.doctor3.cell(row=i, column=j).value))
                    y = str(self.doctor3.cell(row=i, column=j).value) + ' ' * (
                        12 - k)
                    self.list1.append(y)
                self.text1.insert(END, self.list1)
                self.text1.insert(END, '\n')
                self.list1 = []
        elif self.I == True:
            self.framesh()
            self.text1.delete(1.0, END)
            self.list1 = []
            for i in range(1, self.patient3.max_row + 1):
                for j in range(1, self.patient3.max_column + 1):
                    k = len(str(self.patient3.cell(row=i, column=j).value))
                    y = str(self.patient3.cell(row=i, column=j).value
                        ) + ' ' * (12 - k)
                    self.list1.append(y)
                self.text1.insert(END, self.list1)
                self.text1.insert(END, '\n')
                self.list1 = []
        elif self.III == True:
            self.framesh()
            self.text1.delete(1.0, END)
            self.list1 = []
            for i in range(1, self.nurse3.max_row + 1):
                for j in range(1, self.nurse3.max_column + 1):
                    k = len(str(self.nurse3.cell(row=i, column=j).value))
                    y = str(self.nurse3.cell(row=i, column=j).value) + ' ' * (
                        12 - k)
                    self.list1.append(y)
                self.text1.insert(END, self.list1)
                self.text1.insert(END, '\n')
                self.list1 = []
        elif self.IIII == True:
            self.framesh()
            self.text1.delete(1.0, END)
            self.list1 = []
            for i in range(1, self.laboratorist3.max_row + 1):
                for j in range(1, self.laboratorist3.max_column + 1):
                    k = len(str(self.laboratorist3.cell(row=i, column=j).value)
                        )
                    y = str(self.laboratorist3.cell(row=i, column=j).value
                        ) + ' ' * (12 - k)
                    self.list1.append(y)
                self.text1.insert(END, self.list1)
                self.text1.insert(END, '\n')
                self.list1 = []
        elif self.IIIII == True:
            self.framesh()
            self.text1.delete(1.0, END)
            self.list1 = []
            for i in range(1, self.pharmacist3.max_row + 1):
                for j in range(1, self.pharmacist3.max_column + 1):
                    k = len(str(self.pharmacist3.cell(row=i, column=j).value))
                    y = str(self.pharmacist3.cell(row=i, column=j).value
                        ) + ' ' * (12 - k)
                    self.list1.append(y)
                self.text1.insert(END, self.list1)
                self.text1.insert(END, '\n')
                self.list1 = []
        elif self.IIIIII == True:
            self.framesh()
            self.text1.delete(1.0, END)
            self.list1 = []
            for i in range(1, self.accountant3.max_row + 1):
                for j in range(1, self.accountant3.max_column + 1):
                    k = len(str(self.accountant3.cell(row=i, column=j).value))
                    y = str(self.accountant3.cell(row=i, column=j).value
                        ) + ' ' * (12 - k)
                    self.list1.append(y)
                self.text1.insert(END, self.list1)
                self.text1.insert(END, '\n')
                self.list1 = []
        elif self.II == True:
            self.framesh()
            self.text1.delete(1.0, END)
            self.list1 = []
            for i in range(1, self.doctor3.max_row + 1):
                for j in range(1, self.doctor3.max_column + 1):
                    k = len(str(self.doctor3.cell(row=i, column=j).value))
                    y = str(self.doctor3.cell(row=i, column=j).value) + ' ' * (
                        12 - k)
                    self.list1.append(y)
                self.text1.insert(END, self.list1)
                self.text1.insert(END, '\n')
                self.list1 = []
        elif self.I == True:
            self.framesh()
            self.text1.delete(1.0, END)
            self.list1 = []
            for i in range(1, self.patient3.max_row + 1):
                for j in range(1, self.patient3.max_column + 1):
                    k = len(str(self.patient3.cell(row=i, column=j).value))
                    y = str(self.patient3.cell(row=i, column=j).value
                        ) + ' ' * (12 - k)
                    self.list1.append(y)
                self.text1.insert(END, self.list1)
                self.text1.insert(END, '\n')
                self.list1 = []
        elif self.III == True:
            self.framesh()
            self.text1.delete(1.0, END)
            self.list1 = []
            for i in range(1, self.nurse3.max_row + 1):
                for j in range(1, self.nurse3.max_column + 1):
                    k = len(str(self.nurse3.cell(row=i, column=j).value))
                    y = str(self.nurse3.cell(row=i, column=j).value) + ' ' * (
                        12 - k)
                    self.list1.append(y)
                self.text1.insert(END, self.list1)
                self.text1.insert(END, '\n')
                self.list1 = []
        elif self.IIII == True:
            self.framesh()
            self.text1.delete(1.0, END)
            self.list1 = []
            for i in range(1, self.laboratorist3.max_row + 1):
                for j in range(1, self.laboratorist3.max_column + 1):
                    k = len(str(self.laboratorist3.cell(row=i, column=j).value)
                        )
                    y = str(self.laboratorist3.cell(row=i, column=j).value
                        ) + ' ' * (12 - k)
                    self.list1.append(y)
                self.text1.insert(END, self.list1)
                self.text1.insert(END, '\n')
                self.list1 = []
        elif self.IIIII == True:
            self.framesh()
            self.text1.delete(1.0, END)
            self.list1 = []
            for i in range(1, self.pharmacist3.max_row + 1):
                for j in range(1, self.pharmacist3.max_column + 1):
                    k = len(str(self.pharmacist3.cell(row=i, column=j).value))
                    y = str(self.pharmacist3.cell(row=i, column=j).value
                        ) + ' ' * (12 - k)
                    self.list1.append(y)
                self.text1.insert(END, self.list1)
                self.text1.insert(END, '\n')
                self.list1 = []
        elif self.IIIIII == True:
            self.framesh()
            self.text1.delete(1.0, END)
            self.list1 = []
            for i in range(1, self.accountant3.max_row + 1):
                for j in range(1, self.accountant3.max_column + 1):
                    k = len(str(self.accountant3.cell(row=i, column=j).value))
                    y = str(self.accountant3.cell(row=i, column=j).value
                        ) + ' ' * (12 - k)
                    self.list1.append(y)
                self.text1.insert(END, self.list1)
                self.text1.insert(END, '\n')
                self.list1 = []

    def framesdoc1(self):
        self.frame1.pack_forget()
        self.frame2.pack_forget()
        self.frame3.pack_forget()
        self.frame4.pack_forget()
        self.frame5.pack_forget()
        self.frame6.pack_forget()
        self.frame7.pack_forget()
        self.frame8.pack_forget()
        self.frameacc.pack_forget()
        self.framedoc2.pack_forget()
        self.framedoc3.pack_forget()
        self.framenur1.pack_forget()
        self.framenur2.pack_forget()
        self.framepharm.pack_forget()
        self.framepass.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.framedoc1.pack()

    def framesdoc2(self):
        self.frame1.pack_forget()
        self.frame2.pack_forget()
        self.frame3.pack_forget()
        self.frame4.pack_forget()
        self.frame5.pack_forget()
        self.frame6.pack_forget()
        self.frame7.pack_forget()
        self.frame8.pack_forget()
        self.frameacc.pack_forget()
        self.framedoc1.pack_forget()
        self.framedoc3.pack_forget()
        self.framenur1.pack_forget()
        self.framenur2.pack_forget()
        self.framepharm.pack_forget()
        self.framepass.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.framedoc2.pack()

    def framesdoc3(self):
        self.frame1.pack_forget()
        self.frame2.pack_forget()
        self.frame3.pack_forget()
        self.frame4.pack_forget()
        self.frame6.pack_forget()
        self.frame5.pack_forget()
        self.frame7.pack_forget()
        self.frame8.pack_forget()
        self.frameacc.pack_forget()
        self.framedoc1.pack_forget()
        self.framedoc2.pack_forget()
        self.framenur1.pack_forget()
        self.framenur2.pack_forget()
        self.framepharm.pack_forget()
        self.framepass.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.framedoc3.pack()
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>

    def framespass(self):
        self.framedoc1.pack_forget()
        self.framedoc2.pack_forget()
        self.framedoc3.pack_forget()
        self.framenur1.pack_forget()
        self.framenur2.pack_forget()
        self.frameacc.pack_forget()
        self.framepharm.pack_forget()
        self.frame1.pack_forget()
        self.frame2.pack_forget()
        self.frame3.pack_forget()
        self.frame4.pack_forget()
        self.frame5.pack_forget()
        self.frame6.pack_forget()
        self.frame7.pack_forget()
        self.frame8.pack_forget()
        self.framea.pack_forget()
        self.frameb.pack_forget()
        self.framec.pack_forget()
        self.framed.pack_forget()
        self.framee.pack_forget()
        self.framef.pack_forget()
        self.frameI.pack_forget()
        self.frame1.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.framepass.pack()

    def report(self):
        self.report3.cell(row=2, column=2).value = self.patient3.max_row - 1
        self.report3.cell(row=3, column=2).value = self.doctor3.max_row - 1
        self.report3.cell(row=4, column=2).value = self.nurse3.max_row - 1
        self.report3.cell(row=5, column=2
            ).value = self.laboratorist3.max_row - 1
        self.report3.cell(row=6, column=2).value = self.pharmacist3.max_row - 1
        self.report3.cell(row=7, column=2).value = self.accountant3.max_row - 1
        self.wb3.save('HRMS.xlsx')


<mask token>

<mask token>


class Hrms:

    def __init__(self):
        self.wb3 = openpyxl.load_workbook('HRMS.xlsx')
        self.patient3 = self.wb3.active
        self.patient3 = self.wb3['Patient']
        self.doctor3 = self.wb3['Doctor']
        self.nurse3 = self.wb3['Nurse']
        self.laboratorist3 = self.wb3['Laboratorist']
        self.pharmacist3 = self.wb3['Pharmacist']
        self.accountant3 = self.wb3['Accountant']
        self.appointment3 = self.wb3['Appointment']
        self.surgery3 = self.wb3['Surgeries']
        self.payment3 = self.wb3['Payments']
        self.medicine3 = self.wb3['Medicines']
        self.birth3 = self.wb3['Birth report']
        self.death3 = self.wb3['Death report']
        self.security3 = self.wb3['Security']
        self.report3 = self.wb3['Report']
        window = Tk()
        window.title('Hospital Record Management System')
        window.geometry('1350x490')
        window.resizable(0, 0)
        self.I = False
        self.II = False
        self.III = False
        self.IIII = False
        self.IIIII = False
        self.IIIIII = False
        self.J = False
        self.JJ = False
        self.JJJ = False
        self.JJJJ = False
        self.JJJJJ = False
        self.JJJJJJ = False
        self.frame1 = Frame(window)
        self.frame1.pack()
        label1 = Label(self.frame1, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=0, row=0, columnspan=3)
        label2 = Label(self.frame1, text='')
        label2.grid(column=4, row=0, pady=50)
        button1 = Button(self.frame1, text='Admin', bg='darkgrey', command=
            self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.frame1, text='Patient', bg='darkgrey',
            command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.frame1, text='Doctor', bg='darkgrey', command
            =self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.frame1, text='Nurse', bg='darkgrey', command=
            self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.frame1, text='Laboratorist', bg='darkgrey',
            command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.frame1, text='Pharmacist', bg='darkgrey',
            command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.frame1, text='Accountant', bg='darkgrey',
            command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button8 = Button(self.frame1, text='Home', bg='#444343', command=
            self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        self.frame2 = Frame(window)
        self.frame2.pack()
        label1 = Label(self.frame2, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.frame2, text='               ')
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.frame2, text='Admin', bg='lightgrey', command
            =self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.frame2, text='Patient', bg='darkgrey',
            command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.frame2, text='Doctor', bg='darkgrey', command
            =self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.frame2, text='Nurse', bg='darkgrey', command=
            self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.frame2, text='Laboratorist', bg='darkgrey',
            command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.frame2, text='Pharmacist', bg='darkgrey',
            command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.frame2, text='Accountant', bg='darkgrey',
            command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button8 = Button(self.frame2, text='Home', bg='#444343', command=
            self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        self.login1 = StringVar()
        self.pass1 = StringVar()
        label10 = Label(self.frame2, text='Username:', font=(
            'Times new roman', 12), width=10)
        label10.grid(column=3, row=2)
        self.entry1 = Entry(self.frame2, textvariable=self.login1)
        self.entry1.grid(column=4, row=2)
        label11 = Label(self.frame2, text='Password:', font=(
            'Times new roman', 12))
        label11.grid(column=3, row=3)
        self.entry2 = Entry(self.frame2, textvariable=self.pass1)
        self.entry2.grid(column=4, row=3)
        button8 = Button(self.frame2, text='Login ', bg='darkgrey', command
            =self.framesb)
        button8.grid(column=4, row=4, pady=10, ipadx=40)
        self.frame3 = Frame(window)
        self.frame3.pack()
        label1 = Label(self.frame3, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.frame3, text='               ')
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.frame3, text='Admin', bg='darkgrey', command=
            self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.frame3, text='Patient', bg='lightgrey',
            command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.frame3, text='Doctor', bg='darkgrey', command
            =self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.frame3, text='Nurse', bg='darkgrey', command=
            self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.frame3, text='Laboratorist', bg='darkgrey',
            command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.frame3, text='Pharmacist', bg='darkgrey',
            command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.frame3, text='Accountant', bg='darkgrey',
            command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button8 = Button(self.frame3, text='Home', bg='#444343', command=
            self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        self.login2 = StringVar()
        self.pass2 = StringVar()
        label10 = Label(self.frame3, text='Patient Id:', font=(
            'Times new roman', 12), width=15)
        label10.grid(column=3, row=2)
        self.entry111 = Entry(self.frame3, width=15, textvariable=self.login2)
        self.entry111.grid(column=4, row=2)
        label11 = Label(self.frame3, text='Password:', font=(
            'Times new roman', 12), width=15)
        label11.grid(column=3, row=3)
        self.entry222 = Entry(self.frame3, width=15, textvariable=self.pass2)
        self.entry222.grid(column=4, row=3)
        button1 = Button(self.frame3, text='Login', bg='darkgrey', command=
            self.framesJ)
        button1.grid(column=4, row=4, pady=10, ipadx=40)
        self.frame4 = Frame(window)
        self.frame4.pack()
        label1 = Label(self.frame4, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.frame4, text='               ')
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.frame4, text='Admin', bg='darkgrey', command=
            self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.frame4, text='Patient', bg='darkgrey',
            command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.frame4, text='Doctor', bg='lightgrey',
            command=self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.frame4, text='Nurse', bg='darkgrey', command=
            self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.frame4, text='Laboratorist', bg='darkgrey',
            command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.frame4, text='Pharmacist', bg='darkgrey',
            command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.frame4, text='Accountant', bg='darkgrey',
            command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button8 = Button(self.frame4, text='Home', bg='#444343', command=
            self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        self.login3 = StringVar()
        self.pass3 = StringVar()
        label10 = Label(self.frame4, text='Doctor Id:', font=(
            'Times new roman', 12), width=15)
        label10.grid(column=3, row=2)
        self.entry112 = Entry(self.frame4, width=15, textvariable=self.login3)
        self.entry112.grid(column=4, row=2)
        label11 = Label(self.frame4, text='Password:', font=(
            'Times new roman', 12), width=15)
        label11.grid(column=3, row=3)
        self.entry223 = Entry(self.frame4, width=15, textvariable=self.pass3)
        self.entry223.grid(column=4, row=3)
        button1 = Button(self.frame4, text='Login', bg='darkgrey', command=
            self.framesJ)
        button1.grid(column=4, row=4, pady=10, ipadx=40)
        self.frame5 = Frame(window)
        self.frame5.pack()
        label1 = Label(self.frame5, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.frame5, text='               ')
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.frame5, text='Admin', bg='darkgrey', command=
            self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.frame5, text='Patient', bg='darkgrey',
            command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.frame5, text='Doctor', bg='darkgrey', command
            =self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.frame5, text='Nurse', bg='lightgrey', command
            =self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.frame5, text='Laboratorist', bg='darkgrey',
            command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.frame5, text='Pharmacist', bg='darkgrey',
            command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.frame5, text='Accountant', bg='darkgrey',
            command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button8 = Button(self.frame5, text='Home', bg='#444343', command=
            self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        self.login4 = StringVar()
        self.pass4 = StringVar()
        label10 = Label(self.frame5, text='Nurse Id:', font=(
            'Times new roman', 12), width=15)
        label10.grid(column=3, row=2)
        self.entry113 = Entry(self.frame5, width=15, textvariable=self.login4)
        self.entry113.grid(column=4, row=2)
        label11 = Label(self.frame5, text='Password:', font=(
            'Times new roman', 12), width=15)
        label11.grid(column=3, row=3)
        self.entry224 = Entry(self.frame5, width=15, textvariable=self.pass4)
        self.entry224.grid(column=4, row=3)
        button1 = Button(self.frame5, text='Login', bg='darkgrey', command=
            self.framesJ)
        button1.grid(column=4, row=4, pady=10, ipadx=40)
        self.frame6 = Frame(window)
        self.frame6.pack()
        label1 = Label(self.frame6, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.frame6, text='               ')
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.frame6, text='Admin', bg='darkgrey', command=
            self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.frame6, text='Patient', bg='darkgrey',
            command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.frame6, text='Doctor', bg='darkgrey', command
            =self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.frame6, text='Nurse', bg='darkgrey', command=
            self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.frame6, text='Laboratorist', bg='lightgrey',
            command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.frame6, text='Pharmacist', bg='darkgrey',
            command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.frame6, text='Accountant', bg='darkgrey',
            command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button8 = Button(self.frame6, text='Home', bg='#444343', command=
            self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        self.login5 = StringVar()
        self.pass5 = StringVar()
        label10 = Label(self.frame6, text='Laboratorist Id:', font=(
            'Times new roman', 12), width=15)
        label10.grid(column=3, row=2)
        self.entry114 = Entry(self.frame6, width=15, textvariable=self.login5)
        self.entry114.grid(column=4, row=2)
        label11 = Label(self.frame6, text='Password:', font=(
            'Times new roman', 12), width=15)
        label11.grid(column=3, row=3)
        self.entry225 = Entry(self.frame6, width=15, textvariable=self.pass5)
        self.entry225.grid(column=4, row=3)
        button1 = Button(self.frame6, text='Login', bg='darkgrey', command=
            self.framesJ)
        button1.grid(column=4, row=4, pady=10, ipadx=40)
        self.frame7 = Frame(window)
        self.frame7.pack()
        label1 = Label(self.frame7, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.frame7, text='               ')
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.frame7, text='Admin', bg='darkgrey', command=
            self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.frame7, text='Patient', bg='darkgrey',
            command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.frame7, text='Doctor', bg='darkgrey', command
            =self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.frame7, text='Nurse', bg='darkgrey', command=
            self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.frame7, text='Laboratorist', bg='darkgrey',
            command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.frame7, text='Pharmacist', bg='lightgrey',
            command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.frame7, text='Accountant', bg='darkgrey',
            command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button8 = Button(self.frame7, text='Home', bg='#444343', command=
            self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        self.login6 = StringVar()
        self.pass6 = StringVar()
        label10 = Label(self.frame7, text='Pharmacist Id:', font=(
            'Times new roman', 12), width=15)
        label10.grid(column=3, row=2)
        self.entry115 = Entry(self.frame7, width=15, textvariable=self.login6)
        self.entry115.grid(column=4, row=2)
        label11 = Label(self.frame7, text='Password:', font=(
            'Times new roman', 12), width=15)
        label11.grid(column=3, row=3)
        self.entry226 = Entry(self.frame7, width=15, textvariable=self.pass6)
        self.entry226.grid(column=4, row=3)
        button1 = Button(self.frame7, text='Login', bg='darkgrey', command=
            self.framesJ)
        button1.grid(column=4, row=4, pady=10, ipadx=40)
        self.frame8 = Frame(window)
        self.frame8.pack()
        label1 = Label(self.frame8, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.frame8, text='               ')
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.frame8, text='Admin', bg='darkgrey', command=
            self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.frame8, text='Patient', bg='darkgrey',
            command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.frame8, text='Doctor', bg='darkgrey', command
            =self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.frame8, text='Nurse', bg='darkgrey', command=
            self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.frame8, text='Laboratorist', bg='darkgrey',
            command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.frame8, text='Pharmacist', bg='darkgrey',
            command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.frame8, text='Accountant', bg='lightgrey',
            command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button8 = Button(self.frame8, text='Home', bg='#444343', command=
            self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        self.login7 = StringVar()
        self.pass7 = StringVar()
        label10 = Label(self.frame8, text='Accountant Id:', font=(
            'Times new roman', 12), width=15)
        label10.grid(column=3, row=2)
        self.entry116 = Entry(self.frame8, width=15, textvariable=self.login7)
        self.entry116.grid(column=4, row=2)
        label11 = Label(self.frame8, text='Password:', font=(
            'Times new roman', 12), width=15)
        label11.grid(column=3, row=3)
        self.entry227 = Entry(self.frame8, width=15, textvariable=self.pass7)
        self.entry227.grid(column=4, row=3)
        button1 = Button(self.frame8, text='Login', bg='darkgrey', command=
            self.framesJ)
        button1.grid(column=4, row=4, pady=10, ipadx=40)
        self.framea = Frame(window)
        self.framea.pack()
        label1 = Label(self.framea, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.framea, text='               ')
        label2.grid(column=0, row=0, pady=50)
        labela = Label(self.framea, text='Admin', bg='#60a1f0')
        labela.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.framea, text='Patient', bg='darkgrey',
            command=self.framesb)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.framea, text='Doctor', bg='lightgrey',
            command=self.framesa)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.framea, text='Nurse', bg='darkgrey', command=
            self.framesc)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.framea, text='Laboratorist', bg='darkgrey',
            command=self.framesd)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.framea, text='Pharmacist', bg='darkgrey',
            command=self.framese)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.framea, text='Accountant', bg='darkgrey',
            command=self.framesf)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button7 = Button(self.framea, text='Appointments', bg='darkgrey',
            command=self.appoint)
        button7.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framea, text='Surgeries', bg='darkgrey',
            command=self.surg)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framea, text='Payments', bg='darkgrey',
            command=self.pay)
        button7.grid(column=3, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framea, text='Medicines', bg='darkgrey',
            command=self.medec)
        button7.grid(column=4, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framea, text='Birth report', bg='darkgrey',
            command=self.birthd)
        button7.grid(column=5, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framea, text='Death report', bg='darkgrey',
            command=self.deathd)
        button7.grid(column=6, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framea, text='Change Password', bg='darkgrey',
            command=self.framespass)
        button7.grid(column=7, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.framea, text='Home', bg='#444343', command=
            self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        label12 = Label(self.framea, text='1. Name:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=1)
        label12 = Label(self.framea, text='2. Doc Id:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=2)
        label12 = Label(self.framea, text='3. Age:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=3)
        label12 = Label(self.framea, text='4. Sex:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=4)
        label12 = Label(self.framea, text='5. Qualificatn:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=5)
        label12 = Label(self.framea, text='6. Speciality:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=6)
        label12 = Label(self.framea, text='7. Blood Type:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=7)
        label12 = Label(self.framea, text='8. Address:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=4, row=1)
        label12 = Label(self.framea, text='9. Phone num:', font=(
            'Times new roman', 12), width=15)
        label12.grid(column=4, row=2)
        label12 = Label(self.framea, text='10. Date of birth:', font=(
            'Times new roman', 12), width=15)
        label12.grid(column=4, row=3)
        label12 = Label(self.framea, text='11. Date of join:', font=(
            'Times new roman', 12), width=15)
        label12.grid(column=4, row=4)
        label12 = Label(self.framea, text='12. Salary:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=4, row=5)
        label12 = Label(self.framea, text='13. Working days:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=4, row=6)
        label12 = Label(self.framea, text='14. Timings:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=4, row=7)
        label12 = Label(self.framea, text='15. Office num:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=6, row=1)
        label12 = Label(self.framea, text='16. Password:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=6, row=2)
        self.name1 = StringVar()
        self.id1 = StringVar()
        self.age1 = StringVar()
        self.sex1 = StringVar()
        self.quality1 = StringVar()
        self.special1 = StringVar()
        self.bloodtype1 = StringVar()
        self.address1 = StringVar()
        self.phonenum1 = StringVar()
        self.dateb1 = StringVar()
        self.datej1 = StringVar()
        self.salary1 = StringVar()
        self.work1 = StringVar()
        self.time1 = StringVar()
        self.office1 = StringVar()
        self.password1 = StringVar()
        self.entry29 = Entry(self.framea, textvariable=self.name1)
        self.entry29.grid(column=3, row=1)
        self.entry30 = Entry(self.framea, textvariable=self.id1)
        self.entry30.grid(column=3, row=2)
        self.entry31 = Entry(self.framea, textvariable=self.age1)
        self.entry31.grid(column=3, row=3)
        self.entry32 = Entry(self.framea, textvariable=self.sex1)
        self.entry32.grid(column=3, row=4)
        self.entry33 = Entry(self.framea, textvariable=self.quality1)
        self.entry33.grid(column=3, row=5)
        self.entry34 = Entry(self.framea, textvariable=self.special1)
        self.entry34.grid(column=3, row=6)
        self.entry35 = Entry(self.framea, textvariable=self.bloodtype1)
        self.entry35.grid(column=3, row=7)
        self.entry36 = Entry(self.framea, textvariable=self.address1)
        self.entry36.grid(column=5, row=1)
        self.entry37 = Entry(self.framea, textvariable=self.phonenum1)
        self.entry37.grid(column=5, row=2)
        self.entry38 = Entry(self.framea, textvariable=self.dateb1)
        self.entry38.grid(column=5, row=3)
        self.entry39 = Entry(self.framea, textvariable=self.datej1)
        self.entry39.grid(column=5, row=4)
        self.entry40 = Entry(self.framea, textvariable=self.salary1)
        self.entry40.grid(column=5, row=5)
        self.entry41 = Entry(self.framea, textvariable=self.work1)
        self.entry41.grid(column=5, row=6)
        self.entry42 = Entry(self.framea, textvariable=self.time1)
        self.entry42.grid(column=5, row=7)
        self.entry43 = Entry(self.framea, textvariable=self.office1)
        self.entry43.grid(column=7, row=1)
        self.entry44 = Entry(self.framea, textvariable=self.password1)
        self.entry44.grid(column=7, row=2)
        button11 = Button(self.framea, text='Add Doctor', width=15, bg=
            'darkgrey', command=self.doctor)
        button11.grid(column=6, row=3)
        button12 = Button(self.framea, text='View Doctor List', width=15,
            bg='darkgrey', command=self.framesI)
        button12.grid(column=6, row=4)
        self.frameb = Frame(window)
        self.frameb.pack()
        label1 = Label(self.frameb, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.frameb, text='               ')
        label2.grid(column=0, row=0, pady=50)
        labela = Label(self.frameb, text='Admin', bg='#60a1f0')
        labela.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.frameb, text='Patient', bg='lightgrey',
            command=self.framesb)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.frameb, text='Doctor', bg='darkgrey', command
            =self.framesa)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.frameb, text='Nurse', bg='darkgrey', command=
            self.framesc)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.frameb, text='Laboratorist', bg='darkgrey',
            command=self.framesd)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.frameb, text='Pharmacist', bg='darkgrey',
            command=self.framese)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.frameb, text='Accountant', bg='darkgrey',
            command=self.framesf)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button7 = Button(self.frameb, text='Appointments', bg='darkgrey',
            command=self.appoint)
        button7.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.frameb, text='Surgeries', bg='darkgrey',
            command=self.surg)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.frameb, text='Payments', bg='darkgrey',
            command=self.pay)
        button7.grid(column=3, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.frameb, text='Medicines', bg='darkgrey',
            command=self.medec)
        button7.grid(column=4, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.frameb, text='Birth report', bg='darkgrey',
            command=self.birthd)
        button7.grid(column=5, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.frameb, text='Death report', bg='darkgrey',
            command=self.deathd)
        button7.grid(column=6, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.frameb, text='Change Password', bg='darkgrey',
            command=self.framespass)
        button7.grid(column=7, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.frameb, text='Home', bg='#444343', command=
            self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        label12 = Label(self.frameb, text='1. Name:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=1)
        label12 = Label(self.frameb, text='2. Patient Id:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=2)
        label12 = Label(self.frameb, text='3. Age:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=3)
        label12 = Label(self.frameb, text='4. Sex:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=4)
        label12 = Label(self.frameb, text='5. Blood Type:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=5)
        label12 = Label(self.frameb, text='6. Problem:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=6)
        label12 = Label(self.frameb, text='7. Address:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=7)
        label12 = Label(self.frameb, text='8. Phone num:', font=(
            'Times new roman', 12), width=15)
        label12.grid(column=4, row=1)
        label12 = Label(self.frameb, text='9. Date of join:', font=(
            'Times new roman', 12), width=15)
        label12.grid(column=4, row=2)
        label12 = Label(self.frameb, text='10. Password:', font=(
            'Times new roman', 12), width=15)
        label12.grid(column=4, row=3)
        self.name2 = StringVar()
        self.id2 = StringVar()
        self.age2 = StringVar()
        self.sex2 = StringVar()
        self.bloodtype2 = StringVar()
        self.problem2 = StringVar()
        self.address2 = StringVar()
        self.phonenum2 = StringVar()
        self.datej2 = StringVar()
        self.password2 = StringVar()
        self.entry19 = Entry(self.frameb, textvariable=self.name2)
        self.entry19.grid(column=3, row=1)
        self.entry20 = Entry(self.frameb, textvariable=self.id2)
        self.entry20.grid(column=3, row=2)
        self.entry21 = Entry(self.frameb, textvariable=self.age2)
        self.entry21.grid(column=3, row=3)
        self.entry22 = Entry(self.frameb, textvariable=self.sex2)
        self.entry22.grid(column=3, row=4)
        self.entry23 = Entry(self.frameb, textvariable=self.bloodtype2)
        self.entry23.grid(column=3, row=5)
        self.entry24 = Entry(self.frameb, textvariable=self.problem2)
        self.entry24.grid(column=3, row=6)
        self.entry25 = Entry(self.frameb, textvariable=self.address2)
        self.entry25.grid(column=3, row=7)
        self.entry26 = Entry(self.frameb, textvariable=self.phonenum2)
        self.entry26.grid(column=5, row=1)
        self.entry27 = Entry(self.frameb, textvariable=self.datej2)
        self.entry27.grid(column=5, row=2)
        self.entry28 = Entry(self.frameb, textvariable=self.password2)
        self.entry28.grid(column=5, row=3)
        button9 = Button(self.frameb, text='Add Patient', width=15, bg=
            'darkgrey', command=self.patient)
        button9.grid(column=4, row=4)
        button10 = Button(self.frameb, text='View Patient List', width=15,
            bg='darkgrey', command=self.framesI)
        button10.grid(column=4, row=5)
        self.framec = Frame(window)
        self.framec.pack()
        label1 = Label(self.framec, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.framec, text='               ')
        label2.grid(column=0, row=0, pady=50)
        labela = Label(self.framec, text='Admin', bg='#60a1f0')
        labela.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.framec, text='Patient', bg='darkgrey',
            command=self.framesb)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.framec, text='Doctor', bg='darkgrey', command
            =self.framesa)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.framec, text='Nurse', bg='lightgrey', command
            =self.framesc)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.framec, text='Laboratorist', bg='darkgrey',
            command=self.framesd)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.framec, text='Pharmacist', bg='darkgrey',
            command=self.framese)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.framec, text='Accountant', bg='darkgrey',
            command=self.framesf)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button7 = Button(self.framec, text='Appointments', bg='darkgrey',
            command=self.appoint)
        button7.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framec, text='Surgeries', bg='darkgrey',
            command=self.surg)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framec, text='Payments', bg='darkgrey',
            command=self.pay)
        button7.grid(column=3, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framec, text='Medicines', bg='darkgrey',
            command=self.medec)
        button7.grid(column=4, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framec, text='Birth report', bg='darkgrey',
            command=self.birthd)
        button7.grid(column=5, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framec, text='Death report', bg='darkgrey',
            command=self.deathd)
        button7.grid(column=6, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framec, text='Change Password', bg='darkgrey',
            command=self.framespass)
        button7.grid(column=7, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.framec, text='Home', bg='#444343', command=
            self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        label12 = Label(self.framec, text='1. Name:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=1)
        label12 = Label(self.framec, text='2. Nurse Id:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=2)
        label12 = Label(self.framec, text='3. Age:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=3)
        label12 = Label(self.framec, text='4. Sex:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=4)
        label12 = Label(self.framec, text='5. Blood Type:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=5)
        label12 = Label(self.framec, text='6. Address:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=6)
        label12 = Label(self.framec, text='7. Phone num:', font=(
            'Times new roman', 12), width=15)
        label12.grid(column=2, row=7)
        label12 = Label(self.framec, text='8. Date of join:', font=(
            'Times new roman', 12), width=15)
        label12.grid(column=4, row=1)
        label12 = Label(self.framec, text='9. Password:', font=(
            'Times new roman', 12), width=15)
        label12.grid(column=4, row=2)
        self.name3 = StringVar()
        self.id3 = StringVar()
        self.age3 = StringVar()
        self.sex3 = StringVar()
        self.bloodtype3 = StringVar()
        self.address3 = StringVar()
        self.phonenum3 = StringVar()
        self.datej3 = StringVar()
        self.password3 = StringVar()
        entry45 = Entry(self.framec, textvariable=self.name3)
        entry45.grid(column=3, row=1)
        entry46 = Entry(self.framec, textvariable=self.id3)
        entry46.grid(column=3, row=2)
        entry47 = Entry(self.framec, textvariable=self.age3)
        entry47.grid(column=3, row=3)
        entry48 = Entry(self.framec, textvariable=self.sex3)
        entry48.grid(column=3, row=4)
        entry49 = Entry(self.framec, textvariable=self.bloodtype3)
        entry49.grid(column=3, row=5)
        entry50 = Entry(self.framec, textvariable=self.address3)
        entry50.grid(column=3, row=6)
        entry51 = Entry(self.framec, textvariable=self.phonenum3)
        entry51.grid(column=3, row=7)
        entry52 = Entry(self.framec, textvariable=self.datej3)
        entry52.grid(column=5, row=1)
        entry53 = Entry(self.framec, textvariable=self.password3)
        entry53.grid(column=5, row=2)
        button9 = Button(self.framec, text='Add Nurse', width=15, bg=
            'darkgrey', command=self.nurse)
        button9.grid(column=4, row=3)
        button10 = Button(self.framec, text='View Nurse List', width=15, bg
            ='darkgrey', command=self.framesI)
        button10.grid(column=4, row=4)
        self.framed = Frame(window)
        self.framed.pack()
        label1 = Label(self.framed, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.framed, text='               ')
        label2.grid(column=0, row=0, pady=50)
        labela = Label(self.framed, text='Admin', bg='#60a1f0')
        labela.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.framed, text='Patient', bg='darkgrey',
            command=self.framesb)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.framed, text='Doctor', bg='darkgrey', command
            =self.framesa)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.framed, text='Nurse', bg='darkgrey', command=
            self.framesc)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.framed, text='Laboratorist', bg='lightgrey',
            command=self.framesd)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.framed, text='Pharmacist', bg='darkgrey',
            command=self.framese)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.framed, text='Accountant', bg='darkgrey',
            command=self.framesf)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button7 = Button(self.framed, text='Appointments', bg='darkgrey',
            command=self.appoint)
        button7.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framed, text='Surgeries', bg='darkgrey',
            command=self.surg)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framed, text='Payments', bg='darkgrey',
            command=self.pay)
        button7.grid(column=3, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framed, text='Medicines', bg='darkgrey',
            command=self.medec)
        button7.grid(column=4, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framed, text='Birth report', bg='darkgrey',
            command=self.birthd)
        button7.grid(column=5, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framed, text='Death report', bg='darkgrey',
            command=self.deathd)
        button7.grid(column=6, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framed, text='Change Password', bg='darkgrey',
            command=self.framespass)
        button7.grid(column=7, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.framed, text='Home', bg='#444343', command=
            self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        label12 = Label(self.framed, text='1. Name:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=1)
        label12 = Label(self.framed, text='2. Laboratorist Id:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=2)
        label12 = Label(self.framed, text='3. Age:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=3)
        label12 = Label(self.framed, text='4. Sex:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=4)
        label12 = Label(self.framed, text='5. Blood Type:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=5)
        label12 = Label(self.framed, text='6. Address:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=6)
        label12 = Label(self.framed, text='7. Phone num:', font=(
            'Times new roman', 12), width=15)
        label12.grid(column=2, row=7)
        label12 = Label(self.framed, text='8. Date of join:', font=(
            'Times new roman', 12), width=15)
        label12.grid(column=4, row=1)
        label12 = Label(self.framed, text='9. Password:', font=(
            'Times new roman', 12), width=15)
        label12.grid(column=4, row=2)
        self.name4 = StringVar()
        self.id4 = StringVar()
        self.age4 = StringVar()
        self.sex4 = StringVar()
        self.bloodtype4 = StringVar()
        self.address4 = StringVar()
        self.phonenum4 = StringVar()
        self.datej4 = StringVar()
        self.password4 = StringVar()
        entry54 = Entry(self.framed, textvariable=self.name4)
        entry54.grid(column=3, row=1)
        entry55 = Entry(self.framed, textvariable=self.id4)
        entry55.grid(column=3, row=2)
        entry56 = Entry(self.framed, textvariable=self.age4)
        entry56.grid(column=3, row=3)
        entry57 = Entry(self.framed, textvariable=self.sex4)
        entry57.grid(column=3, row=4)
        entry58 = Entry(self.framed, textvariable=self.bloodtype4)
        entry58.grid(column=3, row=5)
        entry59 = Entry(self.framed, textvariable=self.address4)
        entry59.grid(column=3, row=6)
        entry60 = Entry(self.framed, textvariable=self.phonenum4)
        entry60.grid(column=3, row=7)
        entry61 = Entry(self.framed, textvariable=self.datej4)
        entry61.grid(column=5, row=1)
        entry62 = Entry(self.framed, textvariable=self.password4)
        entry62.grid(column=5, row=2)
        button9 = Button(self.framed, text='Add Lab.st', width=15, bg=
            'darkgrey', command=self.laboratorist)
        button9.grid(column=4, row=3)
        button10 = Button(self.framed, text='View Lab.st List', width=15,
            bg='darkgrey', command=self.framesI)
        button10.grid(column=4, row=4)
        self.framee = Frame(window)
        self.framee.pack()
        label1 = Label(self.framee, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.framee, text='               ')
        label2.grid(column=0, row=0, pady=50)
        labela = Label(self.framee, text='Admin', bg='#60a1f0')
        labela.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.framee, text='Patient', bg='darkgrey',
            command=self.framesb)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.framee, text='Doctor', bg='darkgrey', command
            =self.framesa)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.framee, text='Nurse', bg='darkgrey', command=
            self.framesc)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.framee, text='Laboratorist', bg='darkgrey',
            command=self.framesd)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.framee, text='Pharmacist', bg='lightgrey',
            command=self.framese)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.framee, text='Accountant', bg='darkgrey',
            command=self.framesf)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button7 = Button(self.framee, text='Appointments', bg='darkgrey',
            command=self.appoint)
        button7.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framee, text='Surgeries', bg='darkgrey',
            command=self.surg)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framee, text='Payments', bg='darkgrey',
            command=self.pay)
        button7.grid(column=3, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framee, text='Medicines', bg='darkgrey',
            command=self.medec)
        button7.grid(column=4, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framee, text='Birth report', bg='darkgrey',
            command=self.birthd)
        button7.grid(column=5, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framee, text='Death report', bg='darkgrey',
            command=self.deathd)
        button7.grid(column=6, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framee, text='Change Password', bg='darkgrey',
            command=self.framespass)
        button7.grid(column=7, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.framee, text='Home', bg='#444343', command=
            self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        label12 = Label(self.framee, text='1. Name:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=1)
        label12 = Label(self.framee, text='2. Pharmacist Id:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=2)
        label12 = Label(self.framee, text='3. Age:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=3)
        label12 = Label(self.framee, text='4. Sex:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=4)
        label12 = Label(self.framee, text='5. Blood Type:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=5)
        label12 = Label(self.framee, text='6. Address:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=6)
        label12 = Label(self.framee, text='7. Phone num:', font=(
            'Times new roman', 12), width=15)
        label12.grid(column=2, row=7)
        label12 = Label(self.framee, text='8. Date of join:', font=(
            'Times new roman', 12), width=15)
        label12.grid(column=4, row=1)
        label12 = Label(self.framee, text='9. Password:', font=(
            'Times new roman', 12), width=15)
        label12.grid(column=4, row=2)
        self.name5 = StringVar()
        self.id5 = StringVar()
        self.age5 = StringVar()
        self.sex5 = StringVar()
        self.bloodtype5 = StringVar()
        self.address5 = StringVar()
        self.phonenum5 = StringVar()
        self.datej5 = StringVar()
        self.password5 = StringVar()
        entry63 = Entry(self.framee, textvariable=self.name5)
        entry63.grid(column=3, row=1)
        entry64 = Entry(self.framee, textvariable=self.id5)
        entry64.grid(column=3, row=2)
        entry65 = Entry(self.framee, textvariable=self.age5)
        entry65.grid(column=3, row=3)
        entry66 = Entry(self.framee, textvariable=self.sex5)
        entry66.grid(column=3, row=4)
        entry67 = Entry(self.framee, textvariable=self.bloodtype5)
        entry67.grid(column=3, row=5)
        entry68 = Entry(self.framee, textvariable=self.address5)
        entry68.grid(column=3, row=6)
        entry69 = Entry(self.framee, textvariable=self.phonenum5)
        entry69.grid(column=3, row=7)
        entry70 = Entry(self.framee, textvariable=self.datej5)
        entry70.grid(column=5, row=1)
        entry71 = Entry(self.framee, textvariable=self.password5)
        entry71.grid(column=5, row=2)
        button9 = Button(self.framee, text='Add Pharm.st', width=15, bg=
            'darkgrey', command=self.pharmacist)
        button9.grid(column=4, row=3)
        button10 = Button(self.framee, text='View Pharm.st List', width=15,
            bg='darkgrey', command=self.framesI)
        button10.grid(column=4, row=4)
        self.framef = Frame(window)
        self.framef.pack()
        label1 = Label(self.framef, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.framef, text='               ')
        label2.grid(column=0, row=0, pady=50)
        labela = Label(self.framef, text='Admin', bg='#60a1f0')
        labela.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.framef, text='Patient', bg='darkgrey',
            command=self.framesb)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.framef, text='Doctor', bg='darkgrey', command
            =self.framesa)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.framef, text='Nurse', bg='darkgrey', command=
            self.framesc)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.framef, text='Laboratorist', bg='darkgrey',
            command=self.framesd)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.framef, text='Pharmacist', bg='darkgrey',
            command=self.framese)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.framef, text='Accountant', bg='lightgrey',
            command=self.framesf)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button7 = Button(self.framef, text='Appointments', bg='darkgrey',
            command=self.appoint)
        button7.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framef, text='Surgeries', bg='darkgrey',
            command=self.surg)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framef, text='Payments', bg='darkgrey',
            command=self.pay)
        button7.grid(column=3, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framef, text='Medicines', bg='darkgrey',
            command=self.medec)
        button7.grid(column=4, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framef, text='Birth report', bg='darkgrey',
            command=self.birthd)
        button7.grid(column=5, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framef, text='Death report', bg='darkgrey',
            command=self.deathd)
        button7.grid(column=6, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framef, text='Change Password', bg='darkgrey',
            command=self.framespass)
        button7.grid(column=7, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.framef, text='Home', bg='#444343', command=
            self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        label12 = Label(self.framef, text='1. Name:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=1)
        label12 = Label(self.framef, text='2. Accountant Id:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=2)
        label12 = Label(self.framef, text='3. Age:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=3)
        label12 = Label(self.framef, text='4. Sex:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=4)
        label12 = Label(self.framef, text='5. Blood Type:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=5)
        label12 = Label(self.framef, text='6. Address:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=6)
        label12 = Label(self.framef, text='7. Phone num:', font=(
            'Times new roman', 12), width=15)
        label12.grid(column=2, row=7)
        label12 = Label(self.framef, text='8. Date of join:', font=(
            'Times new roman', 12), width=15)
        label12.grid(column=4, row=1)
        label12 = Label(self.framef, text='9. Password:', font=(
            'Times new roman', 12), width=15)
        label12.grid(column=4, row=2)
        self.name6 = StringVar()
        self.id6 = StringVar()
        self.age6 = StringVar()
        self.sex6 = StringVar()
        self.bloodtype6 = StringVar()
        self.address6 = StringVar()
        self.phonenum6 = StringVar()
        self.datej6 = StringVar()
        self.password6 = StringVar()
        entry72 = Entry(self.framef, textvariable=self.name6)
        entry72.grid(column=3, row=1)
        entry73 = Entry(self.framef, textvariable=self.id6)
        entry73.grid(column=3, row=2)
        entry74 = Entry(self.framef, textvariable=self.age6)
        entry74.grid(column=3, row=3)
        entry75 = Entry(self.framef, textvariable=self.sex6)
        entry75.grid(column=3, row=4)
        entry76 = Entry(self.framef, textvariable=self.bloodtype6)
        entry76.grid(column=3, row=5)
        entry77 = Entry(self.framef, textvariable=self.address6)
        entry77.grid(column=3, row=6)
        entry78 = Entry(self.framef, textvariable=self.phonenum6)
        entry78.grid(column=3, row=7)
        entry79 = Entry(self.framef, textvariable=self.datej6)
        entry79.grid(column=5, row=1)
        entry80 = Entry(self.framef, textvariable=self.password6)
        entry80.grid(column=5, row=2)
        button9 = Button(self.framef, text='Add Account.t', width=15, bg=
            'darkgrey', command=self.accountant)
        button9.grid(column=4, row=3)
        button10 = Button(self.framef, text='View Account.t List', width=15,
            bg='darkgrey', command=self.framesI)
        button10.grid(column=4, row=4)
        self.frameI = Frame(window)
        self.frameI.pack()
        label1 = Label(self.frameI, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.frameI, text='               ')
        label2.grid(column=0, row=0, pady=50)
        labela = Label(self.frameI, text='Admin', bg='#60a1f0')
        labela.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.frameI, text='Patient', bg='darkgrey',
            command=self.framesb)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.frameI, text='Doctor', bg='darkgrey', command
            =self.framesa)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.frameI, text='Nurse', bg='darkgrey', command=
            self.framesc)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.frameI, text='Laboratorist', bg='darkgrey',
            command=self.framesd)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.frameI, text='Pharmacist', bg='darkgrey',
            command=self.framese)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.frameI, text='Accountant', bg='darkgrey',
            command=self.framesf)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button7 = Button(self.frameI, text='Appointments', bg='darkgrey',
            command=self.appoint)
        button7.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.frameI, text='Surgeries', bg='darkgrey',
            command=self.surg)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.frameI, text='Payments', bg='darkgrey',
            command=self.pay)
        button7.grid(column=3, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.frameI, text='Medicines', bg='darkgrey',
            command=self.medec)
        button7.grid(column=4, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.frameI, text='Birth report', bg='darkgrey',
            command=self.birthd)
        button7.grid(column=5, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.frameI, text='Death report', bg='darkgrey',
            command=self.deathd)
        button7.grid(column=6, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.frameI, text='Change Password', bg='darkgrey',
            command=self.framespass)
        button7.grid(column=7, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.frameI, text='Home', bg='#444343', command=
            self.framespass)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        self.text1 = Text(self.frameI, height=20, width=193, font=(
            'Times new roman', 9), bg='lightgrey')
        self.text1.grid(column=1, row=1, columnspan=8, rowspan=7)
        self.framedoc1 = Frame(window)
        self.framedoc1.pack()
        label1 = Label(self.framedoc1, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.framedoc1, text='               ')
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.framedoc1, text='Admin', bg='darkgrey',
            command=self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.framedoc1, text='Patient', bg='darkgrey',
            command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.framedoc1, text='Doctor', bg='darkgrey',
            command=self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.framedoc1, text='Nurse', bg='darkgrey',
            command=self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.framedoc1, text='Laboratorist', bg='darkgrey',
            command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.framedoc1, text='Pharmacist', bg='darkgrey',
            command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.framedoc1, text='Accountant', bg='darkgrey',
            command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button8 = Button(self.framedoc1, text='Appointments', bg=
            'lightgrey', command=self.framesdoc1)
        button8.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framedoc1, text='Surgeries', bg='darkgrey',
            command=self.framesdoc2)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framedoc1, text='Medicines', bg='darkgrey',
            command=self.framesdoc3)
        button7.grid(column=3, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framedoc1, text='Add Appointment', bg=
            'darkgrey', command=self.appointment)
        button7.grid(column=4, row=3, padx=10, pady=10, ipadx=30, columnspan=2)
        button7 = Button(self.framedoc1, text='View Appointments', bg=
            'darkgrey', command=self.appoint1)
        button7.grid(column=4, row=4, padx=10, pady=10, ipadx=30, columnspan=2)
        button7 = Button(self.framedoc1, text='Change Password', bg=
            'darkgrey', command=self.framespass)
        button7.grid(column=4, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.framedoc1, text='Home', bg='#444343', command
            =self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        label12 = Label(self.framedoc1, text='1. Patient Name:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=1)
        label12 = Label(self.framedoc1, text='2. Patient Id:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=2)
        label12 = Label(self.framedoc1, text='3. problem:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=3)
        label12 = Label(self.framedoc1, text='4. day:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=4)
        label12 = Label(self.framedoc1, text='5. Time:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=5)
        label12 = Label(self.framedoc1, text='6. Status:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=6)
        label12 = Label(self.framedoc1, text='7. Doctor Ic:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=7)
        self.app1 = StringVar()
        self.app2 = StringVar()
        self.app3 = StringVar()
        self.app4 = StringVar()
        self.app5 = StringVar()
        self.app6 = StringVar()
        self.app7 = StringVar()
        entry45 = Entry(self.framedoc1, textvariable=self.app1)
        entry45.grid(column=3, row=1)
        entry46 = Entry(self.framedoc1, textvariable=self.app2)
        entry46.grid(column=3, row=2)
        entry47 = Entry(self.framedoc1, textvariable=self.app3)
        entry47.grid(column=3, row=3)
        entry48 = Entry(self.framedoc1, textvariable=self.app4)
        entry48.grid(column=3, row=4)
        entry49 = Entry(self.framedoc1, textvariable=self.app5)
        entry49.grid(column=3, row=5)
        entry50 = Entry(self.framedoc1, textvariable=self.app6)
        entry50.grid(column=3, row=6)
        entry51 = Entry(self.framedoc1, textvariable=self.app7)
        entry51.grid(column=3, row=7)
        self.framedoc2 = Frame(window)
        self.framedoc2.pack()
        label1 = Label(self.framedoc2, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.framedoc2, text='               ')
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.framedoc2, text='Admin', bg='darkgrey',
            command=self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.framedoc2, text='Patient', bg='darkgrey',
            command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.framedoc2, text='Doctor', bg='darkgrey',
            command=self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.framedoc2, text='Nurse', bg='darkgrey',
            command=self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.framedoc2, text='Laboratorist', bg='darkgrey',
            command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.framedoc2, text='Pharmacist', bg='darkgrey',
            command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.framedoc2, text='Accountant', bg='darkgrey',
            command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button8 = Button(self.framedoc2, text='Appointments', bg='darkgrey',
            command=self.framesdoc1)
        button8.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framedoc2, text='Surgeries', bg='lightgrey',
            command=self.framesdoc2)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framedoc2, text='Medicines', bg='darkgrey',
            command=self.framesdoc3)
        button7.grid(column=3, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framedoc2, text='Add Operations', bg=
            'darkgrey', command=self.surg1)
        button7.grid(column=4, row=3, padx=10, pady=10, ipadx=30, columnspan=2)
        button7 = Button(self.framedoc2, text='View Operations', bg=
            'darkgrey', command=self.framesda)
        button7.grid(column=4, row=4, padx=10, pady=10, ipadx=30, columnspan=2)
        button7 = Button(self.framedoc2, text='Change Password', bg=
            'darkgrey', command=self.framespass)
        button7.grid(column=4, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.framedoc2, text='Home', bg='#444343', command
            =self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        label12 = Label(self.framedoc2, text='1. Operation Name:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=1)
        label12 = Label(self.framedoc2, text='2. Patient Id:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=2)
        label12 = Label(self.framedoc2, text='3. Date:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=3)
        label12 = Label(self.framedoc2, text='4. Cost:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=4)
        label12 = Label(self.framedoc2, text='5. Doctor Id:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=5)
        self.sur1 = StringVar()
        self.sur2 = StringVar()
        self.sur3 = StringVar()
        self.sur4 = StringVar()
        self.sur5 = StringVar()
        self.sur6 = StringVar()
        self.sur7 = StringVar()
        entry45 = Entry(self.framedoc2, textvariable=self.sur1)
        entry45.grid(column=3, row=1)
        entry46 = Entry(self.framedoc2, textvariable=self.sur2)
        entry46.grid(column=3, row=2)
        entry47 = Entry(self.framedoc2, textvariable=self.sur3)
        entry47.grid(column=3, row=3)
        entry48 = Entry(self.framedoc2, textvariable=self.sur4)
        entry48.grid(column=3, row=4)
        entry49 = Entry(self.framedoc2, textvariable=self.sur5)
        entry49.grid(column=3, row=5)
        self.framedoc3 = Frame(window)
        self.framedoc3.pack()
        label1 = Label(self.framedoc3, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.framedoc3, text='               ')
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.framedoc3, text='Admin', bg='darkgrey',
            command=self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.framedoc3, text='Patient', bg='darkgrey',
            command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.framedoc3, text='Doctor', bg='darkgrey',
            command=self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.framedoc3, text='Nurse', bg='darkgrey',
            command=self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.framedoc3, text='Laboratorist', bg='darkgrey',
            command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.framedoc3, text='Pharmacist', bg='darkgrey',
            command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.framedoc3, text='Accountant', bg='darkgrey',
            command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button8 = Button(self.framedoc3, text='Appointments', bg='darkgrey',
            command=self.framesdoc1)
        button8.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framedoc3, text='Surgeries', bg='darkgrey',
            command=self.framesdoc2)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framedoc3, text='Medicines', bg='lightgrey',
            command=self.framesdoc3)
        button7.grid(column=3, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framedoc3, text='Add Prescription', bg=
            'darkgrey', command=self.medicine)
        button7.grid(column=4, row=3, padx=10, pady=10, ipadx=30, columnspan=2)
        button7 = Button(self.framedoc3, text='View Prescriptions', bg=
            'darkgrey', command=self.medec1)
        button7.grid(column=4, row=4, padx=10, pady=10, ipadx=30, columnspan=2)
        button7 = Button(self.framedoc3, text='Change Password', bg=
            'darkgrey', command=self.frames1)
        button7.grid(column=4, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.framedoc3, text='Home', bg='#444343', command
            =self.framespass)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        label12 = Label(self.framedoc3, text='1. Patient Id:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=1)
        label12 = Label(self.framedoc3, text='2. Problem:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=2)
        label12 = Label(self.framedoc3, text='3. Prescription:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=3)
        label12 = Label(self.framedoc3, text='4. Cost:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=4)
        label12 = Label(self.framedoc3, text='5. Doctor Id:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=5)
        self.med1 = StringVar()
        self.med2 = StringVar()
        self.med3 = StringVar()
        self.med4 = StringVar()
        self.med5 = StringVar()
        entry45 = Entry(self.framedoc3, textvariable=self.med1)
        entry45.grid(column=3, row=1)
        entry46 = Entry(self.framedoc3, textvariable=self.med2)
        entry46.grid(column=3, row=2)
        entry47 = Entry(self.framedoc3, textvariable=self.med3)
        entry47.grid(column=3, row=3)
        entry48 = Entry(self.framedoc3, textvariable=self.med4)
        entry48.grid(column=3, row=4)
        entry49 = Entry(self.framedoc3, textvariable=self.med5)
        entry49.grid(column=3, row=5)
        self.frameacc = Frame(window)
        self.frameacc.pack()
        label1 = Label(self.frameacc, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.frameacc, text='               ')
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.frameacc, text='Admin', bg='darkgrey',
            command=self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.frameacc, text='Patient', bg='darkgrey',
            command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.frameacc, text='accor', bg='darkgrey',
            command=self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.frameacc, text='Nurse', bg='darkgrey',
            command=self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.frameacc, text='Laboratorist', bg='darkgrey',
            command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.frameacc, text='Pharmacist', bg='darkgrey',
            command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.frameacc, text='Accountant', bg='darkgrey',
            command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button7 = Button(self.frameacc, text='Payments', bg='lightgrey',
            command=self.framesacc)
        button7.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.frameacc, text='Add Payment', bg='darkgrey',
            command=self.payment)
        button7.grid(column=4, row=3, padx=10, pady=10, ipadx=30, columnspan=2)
        button7 = Button(self.frameacc, text='View Payments', bg='darkgrey',
            command=self.pay1)
        button7.grid(column=4, row=4, padx=10, pady=10, ipadx=30, columnspan=2)
        button7 = Button(self.frameacc, text='Change Password', bg=
            'darkgrey', command=self.framespass)
        button7.grid(column=4, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.frameacc, text='Home', bg='#444343', command=
            self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        label12 = Label(self.frameacc, text='1. Patient Id:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=1)
        label12 = Label(self.frameacc, text='2. Doctor fee:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=2)
        label12 = Label(self.frameacc, text='3. Operation fee:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=3)
        label12 = Label(self.frameacc, text='4. Bed fee:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=4)
        label12 = Label(self.frameacc, text='5. Medicine fee:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=5)
        label12 = Label(self.frameacc, text='6. Food fee:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=6)
        label12 = Label(self.frameacc, text='7. Blood fee:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=7)
        self.acc1 = StringVar()
        self.acc2 = StringVar()
        self.acc3 = StringVar()
        self.acc4 = StringVar()
        self.acc5 = StringVar()
        self.acc6 = StringVar()
        self.acc7 = StringVar()
        entry45 = Entry(self.frameacc, textvariable=self.acc1)
        entry45.grid(column=3, row=1)
        entry46 = Entry(self.frameacc, textvariable=self.acc2)
        entry46.grid(column=3, row=2)
        entry47 = Entry(self.frameacc, textvariable=self.acc3)
        entry47.grid(column=3, row=3)
        entry48 = Entry(self.frameacc, textvariable=self.acc4)
        entry48.grid(column=3, row=4)
        entry49 = Entry(self.frameacc, textvariable=self.acc5)
        entry49.grid(column=3, row=5)
        entry49 = Entry(self.frameacc, textvariable=self.acc6)
        entry49.grid(column=3, row=6)
        entry49 = Entry(self.frameacc, textvariable=self.acc7)
        entry49.grid(column=3, row=7)
        self.framepharm = Frame(window)
        self.framepharm.pack()
        label1 = Label(self.framepharm, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.framepharm, text='               ')
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.framepharm, text='Admin', bg='darkgrey',
            command=self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.framepharm, text='Patient', bg='darkgrey',
            command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.framepharm, text='accor', bg='darkgrey',
            command=self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.framepharm, text='Nurse', bg='darkgrey',
            command=self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.framepharm, text='Laboratorist', bg=
            'darkgrey', command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.framepharm, text='Pharmacist', bg='darkgrey',
            command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.framepharm, text='Accountant', bg='darkgrey',
            command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button7 = Button(self.framepharm, text='Medicines', bg='lightgrey',
            command=self.framespharm)
        button7.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framepharm, text='Add Prescriptions', bg=
            'darkgrey', command=self.medicine)
        button7.grid(column=4, row=3, padx=10, pady=10, ipadx=30, columnspan=2)
        button7 = Button(self.framepharm, text='View Prescriptions', bg=
            'darkgrey', command=self.medec2)
        button7.grid(column=4, row=4, padx=10, pady=10, ipadx=30, columnspan=2)
        button7 = Button(self.framepharm, text='Change Password', bg=
            'darkgrey', command=self.framespass)
        button7.grid(column=4, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.framepharm, text='Home', bg='#444343',
            command=self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        label12 = Label(self.framepharm, text='1. Patient Id:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=1)
        label12 = Label(self.framepharm, text='2. Problem:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=2)
        label12 = Label(self.framepharm, text='3. Prescription:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=3)
        label12 = Label(self.framepharm, text='4. Cost:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=4)
        label12 = Label(self.framepharm, text='5. Doctor Id:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=5)
        self.med1 = StringVar()
        self.med2 = StringVar()
        self.med3 = StringVar()
        self.med4 = StringVar()
        self.med5 = StringVar()
        entry45 = Entry(self.framepharm, textvariable=self.med1)
        entry45.grid(column=3, row=1)
        entry46 = Entry(self.framepharm, textvariable=self.med2)
        entry46.grid(column=3, row=2)
        entry47 = Entry(self.framepharm, textvariable=self.med3)
        entry47.grid(column=3, row=3)
        entry48 = Entry(self.framepharm, textvariable=self.med4)
        entry48.grid(column=3, row=4)
        entry49 = Entry(self.framepharm, textvariable=self.med5)
        entry49.grid(column=3, row=5)
        self.framenur1 = Frame(window)
        self.framenur1.pack()
        label1 = Label(self.framenur1, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.framenur1, text='               ')
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.framenur1, text='Admin', bg='darkgrey',
            command=self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.framenur1, text='Patient', bg='darkgrey',
            command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.framenur1, text='Doctor', bg='darkgrey',
            command=self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.framenur1, text='Nurse', bg='darkgrey',
            command=self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.framenur1, text='Laboratorist', bg='darkgrey',
            command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.framenur1, text='Pharmacist', bg='darkgrey',
            command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.framenur1, text='Accountant', bg='darkgrey',
            command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button8 = Button(self.framenur1, text='Birth report', bg=
            'lightgrey', command=self.framesnur1)
        button8.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framenur1, text='Death report', bg='darkgrey',
            command=self.framesnur2)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framenur1, text='Add Birth report', bg=
            'darkgrey', command=self.birthreport)
        button7.grid(column=4, row=3, padx=10, pady=10, ipadx=30, columnspan=2)
        button7 = Button(self.framenur1, text='View Birth report', bg=
            'darkgrey', command=self.birth1)
        button7.grid(column=4, row=4, padx=10, pady=10, ipadx=30, columnspan=2)
        button7 = Button(self.framenur1, text='Change Password', bg=
            'darkgrey', command=self.framespass)
        button7.grid(column=4, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.framenur1, text='Home', bg='#444343', command
            =self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        label12 = Label(self.framenur1, text='1. Date of birth:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=1)
        label12 = Label(self.framenur1, text='2. Time of Birth:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=2)
        label12 = Label(self.framenur1, text='3. Father name:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=3)
        label12 = Label(self.framenur1, text='4. Mother name:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=4)
        label12 = Label(self.framenur1, text='5. Parent Ph. Num:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=5)
        label12 = Label(self.framenur1, text='6. Sex:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=6)
        self.nur1 = StringVar()
        self.nur2 = StringVar()
        self.nur3 = StringVar()
        self.nur4 = StringVar()
        self.nur5 = StringVar()
        self.nur6 = StringVar()
        entry45 = Entry(self.framenur1, textvariable=self.nur1)
        entry45.grid(column=3, row=1)
        entry46 = Entry(self.framenur1, textvariable=self.nur2)
        entry46.grid(column=3, row=2)
        entry47 = Entry(self.framenur1, textvariable=self.nur3)
        entry47.grid(column=3, row=3)
        entry48 = Entry(self.framenur1, textvariable=self.nur4)
        entry48.grid(column=3, row=4)
        entry49 = Entry(self.framenur1, textvariable=self.nur5)
        entry49.grid(column=3, row=5)
        entry49 = Entry(self.framenur1, textvariable=self.nur6)
        entry49.grid(column=3, row=6)
        self.framenur2 = Frame(window)
        self.framenur2.pack()
        label1 = Label(self.framenur2, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.framenur2, text='               ')
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.framenur2, text='Admin', bg='darkgrey',
            command=self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.framenur2, text='Patient', bg='darkgrey',
            command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.framenur2, text='Doctor', bg='darkgrey',
            command=self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.framenur2, text='Nurse', bg='darkgrey',
            command=self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.framenur2, text='Laboratorist', bg='darkgrey',
            command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.framenur2, text='Pharmacist', bg='darkgrey',
            command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.framenur2, text='Accountant', bg='darkgrey',
            command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button8 = Button(self.framenur2, text='Birth report', bg='darkgrey',
            command=self.framesnur1)
        button8.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framenur2, text='Death report', bg=
            'lightgrey', command=self.framesnur2)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framenur2, text='Add Death report', bg=
            'darkgrey', command=self.deathreport)
        button7.grid(column=4, row=3, padx=10, pady=10, ipadx=30, columnspan=2)
        button7 = Button(self.framenur2, text='View Death report', bg=
            'darkgrey', command=self.death1)
        button7.grid(column=4, row=4, padx=10, pady=10, ipadx=30, columnspan=2)
        button7 = Button(self.framenur2, text='Change Password', bg=
            'darkgrey', command=self.framespass)
        button7.grid(column=4, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.framenur2, text='Home', bg='#444343', command
            =self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        label12 = Label(self.framenur2, text="1. Victim's Name:", font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=1)
        label12 = Label(self.framenur2, text='2. Date of birth:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=2)
        label12 = Label(self.framenur2, text='3. Date of Death:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=3)
        label12 = Label(self.framenur2, text='4. Time of Death:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=4)
        label12 = Label(self.framenur2, text='5. Parent Ph. Num:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=5)
        label12 = Label(self.framenur2, text='6. Sex:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=6)
        self.dea1 = StringVar()
        self.dea2 = StringVar()
        self.dea3 = StringVar()
        self.dea4 = StringVar()
        self.dea5 = StringVar()
        self.dea6 = StringVar()
        entry45 = Entry(self.framenur2, textvariable=self.dea1)
        entry45.grid(column=3, row=1)
        entry46 = Entry(self.framenur2, textvariable=self.dea2)
        entry46.grid(column=3, row=2)
        entry47 = Entry(self.framenur2, textvariable=self.dea3)
        entry47.grid(column=3, row=3)
        entry48 = Entry(self.framenur2, textvariable=self.dea4)
        entry48.grid(column=3, row=4)
        entry49 = Entry(self.framenur2, textvariable=self.dea5)
        entry49.grid(column=3, row=5)
        entry49 = Entry(self.framenur2, textvariable=self.dea6)
        entry49.grid(column=3, row=6)
        self.framepass = Frame(window)
        self.framepass.pack()
        label1 = Label(self.framepass, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.framepass, text='               ')
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.framepass, text='Admin', bg='darkgrey',
            command=self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.framepass, text='Patient', bg='darkgrey',
            command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.framepass, text='Doctor', bg='darkgrey',
            command=self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.framepass, text='Nurse', bg='darkgrey',
            command=self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.framepass, text='Laboratorist', bg='darkgrey',
            command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.framepass, text='Pharmacist', bg='darkgrey',
            command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.framepass, text='Accountant', bg='darkgrey',
            command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button8 = Button(self.framepass, text='Home', bg='#444343', command
            =self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        button7 = Button(self.framepass, text='Submit', bg='darkgrey',
            command=self.activate)
        button7.grid(column=4, row=4, padx=10, pady=10, ipadx=37.5)
        self.passs = StringVar()
        label11 = Label(self.framepass, text='Enter new password:', font=(
            'Times new roman', 12), width=15)
        label11.grid(column=1, row=4, columnspan=2)
        self.entry333 = Entry(self.framepass, width=15, textvariable=self.passs
            )
        self.entry333.grid(column=3, row=4)
        self.frameda = Frame(window)
        self.frameda.pack()
        label1 = Label(self.frameda, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.frameda, text='               ')
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.frameda, text='Admin', bg='darkgrey', command
            =self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.frameda, text='Patient', bg='darkgrey',
            command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.frameda, text='Doctor', bg='darkgrey',
            command=self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.frameda, text='Nurse', bg='darkgrey', command
            =self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.frameda, text='Laboratorist', bg='darkgrey',
            command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.frameda, text='Pharmacist', bg='darkgrey',
            command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.frameda, text='Accountant', bg='darkgrey',
            command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button7 = Button(self.frameda, text='Appointments', bg='darkgrey',
            command=self.appoint1)
        button7.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.frameda, text='Surgeries', bg='darkgrey',
            command=self.surg1)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.frameda, text='Medicines', bg='darkgrey',
            command=self.medec1)
        button7.grid(column=3, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.frameda, text='Back', bg='darkgrey', command=
            self.framesdoc1)
        button7.grid(column=4, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.frameda, text='Home', bg='#444343', command=
            self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        self.text2 = Text(self.frameda, height=20, width=193, font=(
            'Times new roman', 9), bg='lightgrey')
        self.text2.grid(column=1, row=1, columnspan=8, rowspan=7)
        self.framedb = Frame(window)
        self.framedb.pack()
        label1 = Label(self.framedb, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.framedb, text='               ')
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.framedb, text='Admin', bg='darkgrey', command
            =self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.framedb, text='Patient', bg='darkgrey',
            command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.framedb, text='Doctor', bg='darkgrey',
            command=self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.framedb, text='Nurse', bg='darkgrey', command
            =self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.framedb, text='Laboratorist', bg='darkgrey',
            command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.framedb, text='Pharmacist', bg='darkgrey',
            command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.framedb, text='Accountant', bg='darkgrey',
            command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button7 = Button(self.framedb, text='Birth report', bg='darkgrey',
            command=self.birth1)
        button7.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framedb, text='Death report', bg='darkgrey',
            command=self.death1)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framedb, text='Back', bg='darkgrey', command=
            self.framesnur1)
        button7.grid(column=3, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.framedb, text='Home', bg='#444343', command=
            self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        self.text3 = Text(self.framedb, height=20, width=193, font=(
            'Times new roman', 9), bg='lightgrey')
        self.text3.grid(column=1, row=1, columnspan=8, rowspan=7)
        self.framedc = Frame(window)
        self.framedc.pack()
        label1 = Label(self.framedc, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.framedc, text='               ')
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.framedc, text='Admin', bg='darkgrey', command
            =self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.framedc, text='Patient', bg='darkgrey',
            command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.framedc, text='Doctor', bg='darkgrey',
            command=self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.framedc, text='Nurse', bg='darkgrey', command
            =self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.framedc, text='Laboratorist', bg='darkgrey',
            command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.framedc, text='Pharmacist', bg='darkgrey',
            command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.framedc, text='Accountant', bg='darkgrey',
            command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button7 = Button(self.framedc, text='Payment', bg='lightgrey',
            command=self.pay1)
        button7.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framedc, text='Back', bg='darkgrey', command=
            self.framesacc)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.framedc, text='Home', bg='#444343', command=
            self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        self.text4 = Text(self.framedc, height=20, width=193, font=(
            'Times new roman', 9), bg='lightgrey')
        self.text4.grid(column=1, row=1, columnspan=8, rowspan=7)
        self.framedd = Frame(window)
        self.framedd.pack()
        label1 = Label(self.framedd, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.framedd, text='               ')
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.framedd, text='Admin', bg='darkgrey', command
            =self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.framedd, text='Patient', bg='darkgrey',
            command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.framedd, text='Doctor', bg='darkgrey',
            command=self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.framedd, text='Nurse', bg='darkgrey', command
            =self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.framedd, text='Laboratorist', bg='darkgrey',
            command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.framedd, text='Pharmacist', bg='darkgrey',
            command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.framedd, text='Accountant', bg='darkgrey',
            command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button7 = Button(self.framedd, text='Medicine', bg='lightgrey',
            command=self.medec2)
        button7.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framedd, text='Back', bg='darkgrey', command=
            self.framespharm)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.framedd, text='Home', bg='#444343', command=
            self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        self.text5 = Text(self.framedd, height=20, width=193, font=(
            'Times new roman', 9), bg='lightgrey')
        self.text5.grid(column=1, row=1, columnspan=8, rowspan=7)
        self.framede = Frame(window)
        self.framede.pack()
        label1 = Label(self.framede, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.framede, text='               ')
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.framede, text='Admin', bg='darkgrey', command
            =self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.framede, text='Patient', bg='darkgrey',
            command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.framede, text='Doctor', bg='darkgrey',
            command=self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.framede, text='Nurse', bg='darkgrey', command
            =self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.framede, text='Laboratorist', bg='darkgrey',
            command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.framede, text='Pharmacist', bg='darkgrey',
            command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.framede, text='Accountant', bg='darkgrey',
            command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button7 = Button(self.framede, text='Appointments', bg='lightgrey',
            command=self.a1)
        button7.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framede, text='Surgeries', bg='lightgrey',
            command=self.a2)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framede, text='Payments', bg='lightgrey',
            command=self.a4)
        button7.grid(column=3, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framede, text='Medicines', bg='lightgrey',
            command=self.a3)
        button7.grid(column=4, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framede, text='Change password', bg=
            'darkgrey', command=self.framespass)
        button7.grid(column=5, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.framede, text='Home', bg='#444343', command=
            self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        self.text6 = Text(self.framede, height=20, width=193, font=(
            'Times new roman', 9), bg='lightgrey')
        self.text6.grid(column=1, row=1, columnspan=8, rowspan=7)
        window.mainloop()

    def framesde(self):
        self.frame1.pack_forget()
        self.frame2.pack_forget()
        self.frame3.pack_forget()
        self.frame4.pack_forget()
        self.frame5.pack_forget()
        self.frame6.pack_forget()
        self.frame7.pack_forget()
        self.frame8.pack_forget()
        self.framede.pack()

    def a1(self):
        self.framesde()
        self.text6.delete(1.0, END)
        self.list1 = []
        self.list2 = []
        for i in range(1, self.appointment3.max_row + 1):
            for j in range(1, self.appointment3.max_column + 1):
                k = len(str(self.appointment3.cell(row=i, column=j).value))
                y = str(self.appointment3.cell(row=i, column=j).value
                    ) + ' ' * (12 - k)
                self.list1.append(y)
            for k in range(1, self.appointment3.max_column + 1):
                z = str(self.appointment3.cell(row=i, column=j).value)
                self.list2.append(z)
            if str(self.login2.get()) in self.list2:
                self.text6.insert(END, self.list1)
                self.text6.insert(END, '\n')
            self.list2 = []
            self.list1 = []
    <mask token>

    def a3(self):
        self.framesde()
        self.text6.delete(1.0, END)
        self.list1 = []
        self.list2 = []
        for i in range(1, self.medicine3.max_row + 1):
            for j in range(1, self.medicine3.max_column + 1):
                k = len(str(self.medicine3.cell(row=i, column=j).value))
                y = str(self.medicine3.cell(row=i, column=j).value) + ' ' * (
                    12 - k)
                self.list1.append(y)
            for k in range(1, self.medicine3.max_column + 1):
                z = str(self.medicine3.cell(row=i, column=j).value)
                self.list2.append(z)
            if str(self.login2.get()) in self.list2:
                self.text6.insert(END, self.list1)
                self.text6.insert(END, '\n')
            self.list2 = []
            self.list1 = []

    def a4(self):
        self.framesde()
        self.text6.delete(1.0, END)
        self.list1 = []
        self.list2 = []
        for i in range(1, self.payment3.max_row + 1):
            for j in range(1, self.payment3.max_column + 1):
                k = len(str(self.payment3.cell(row=i, column=j).value))
                y = str(self.payment3.cell(row=i, column=j).value) + ' ' * (
                    12 - k)
                self.list1.append(y)
            for k in range(1, self.payment3.max_column + 1):
                z = str(self.payment3.cell(row=i, column=j).value)
                self.list2.append(z)
            if str(self.login2.get()) in self.list2:
                self.text6.insert(END, self.list1)
                self.text6.insert(END, '\n')
            self.list2 = []
            self.list1 = []
    <mask token>

    def medec2(self):
        self.framesdd()
        self.text5.delete(1.0, END)
        self.list1 = []
        for i in range(1, self.medicine3.max_row + 1):
            for j in range(1, self.medicine3.max_column + 1):
                k = len(str(self.medicine3.cell(row=i, column=j).value))
                y = str(self.medicine3.cell(row=i, column=j).value) + ' ' * (
                    12 - k)
                self.list1.append(y)
            self.text5.insert(END, self.list1)
            self.text5.insert(END, '\n')
            self.list1 = []

    def framesdc(self):
        self.frameacc.pack_forget()
        self.framedc.pack()
    <mask token>
    <mask token>
    <mask token>

    def death1(self):
        self.framesdb()
        self.text3.delete(1.0, END)
        self.list1 = []
        for i in range(1, self.death3.max_row + 1):
            for j in range(1, self.death3.max_column + 1):
                k = len(str(self.death3.cell(row=i, column=j).value))
                y = str(self.death3.cell(row=i, column=j).value) + ' ' * (
                    12 - k)
                self.list1.append(y)
            self.text3.insert(END, self.list1)
            self.text3.insert(END, '\n')
            self.list1 = []

    def framesda(self):
        self.framedoc1.pack_forget()
        self.framedoc2.pack_forget()
        self.framedoc3.pack_forget()
        self.frameda.pack()
    <mask token>

    def birthreport(self):
        self.list1 = [self.nur1.get(), self.nur2.get(), self.nur3.get(),
            self.nur4.get(), self.nur5.get(), self.nur6.get()]
        self.a = 1
        self.b = self.birth3.max_row + 1
        for i in self.list1:
            self.birth3.cell(row=self.b, column=self.a).value = i
            self.a += 1
        self.wb3.save('HRMS.xlsx')

    def payment(self):
        self.list1 = [self.acc1.get(), self.acc2.get(), self.acc3.get(),
            self.acc4.get(), self.acc5.get(), self.acc6.get(), self.acc7.get()]
        self.a = 1
        self.b = self.payment3.max_row + 1
        for i in self.list1:
            self.payment3.cell(row=self.b, column=self.a).value = i
            self.a += 1
        self.wb3.save('HRMS.xlsx')

    def medicine(self):
        self.list1 = [self.med1.get(), self.med2.get(), self.med3.get(),
            self.med4.get(), self.med5.get()]
        self.a = 1
        self.b = self.medicine3.max_row + 1
        for i in self.list1:
            self.medicine3.cell(row=self.b, column=self.a).value = i
            self.a += 1
        self.wb3.save('HRMS.xlsx')
    <mask token>

    def appointment(self):
        self.list1 = [self.app1.get(), self.app2.get(), self.app3.get(),
            self.app4.get(), self.app5.get(), self.app6.get(), self.app7.get()]
        self.a = 1
        self.b = self.appointment3.max_row + 1
        for i in self.list1:
            self.appointment3.cell(row=self.b, column=self.a).value = i
            self.a += 1
        self.wb3.save('HRMS.xlsx')

    def doctor(self):
        self.list1 = [self.name1.get(), self.id1.get(), self.age1.get(),
            self.sex1.get(), self.quality1.get(), self.special1.get(), self
            .bloodtype1.get(), self.address1.get(), self.phonenum1.get(),
            self.dateb1.get(), self.datej1.get(), self.salary1.get(), self.
            work1.get(), self.time1.get(), self.office1.get(), self.
            password1.get()]
        self.a = 1
        self.b = self.doctor3.max_row + 1
        for i in self.list1:
            self.doctor3.cell(row=self.b, column=self.a).value = i
            self.a += 1
        self.wb3.save('HRMS.xlsx')
        self.report()
        self.entry29.delete(0, END)
        self.entry30.delete(0, END)
        self.entry31.delete(0, END)
        self.entry32.delete(0, END)
        self.entry33.delete(0, END)
        self.entry34.delete(0, END)
        self.entry35.delete(0, END)
        self.entry36.delete(0, END)
        self.entry37.delete(0, END)
        self.entry38.delete(0, END)
        self.entry39.delete(0, END)
        self.entry40.delete(0, END)
        self.entry41.delete(0, END)
        self.entry42.delete(0, END)
        self.entry43.delete(0, END)
        self.entry44.delete(0, END)

    def patient(self):
        self.list1 = [self.name2.get(), self.id2.get(), self.age2.get(),
            self.sex2.get(), self.bloodtype2.get(), self.problem2.get(),
            self.address2.get(), self.phonenum2.get(), self.datej2.get(),
            self.password2.get()]
        self.a = 1
        self.b = self.patient3.max_row + 1
        for i in self.list1:
            self.patient3.cell(row=self.b, column=self.a).value = i
            self.a += 1
        self.wb3.save('HRMS.xlsx')
        self.report()
        self.entry19.delete(0, END)
        self.entry20.delete(0, END)
        self.entry21.delete(0, END)
        self.entry22.delete(0, END)
        self.entry23.delete(0, END)
        self.entry24.delete(0, END)
        self.entry25.delete(0, END)
        self.entry26.delete(0, END)
        self.entry27.delete(0, END)
        self.entry28.delete(0, END)

    def nurse(self):
        self.list1 = [self.name3.get(), self.id3.get(), self.age3.get(),
            self.sex3.get(), self.bloodtype3.get(), self.address3.get(),
            self.phonenum3.get(), self.datej3.get(), self.password3.get()]
        self.a = 1
        self.b = self.nurse3.max_row + 1
        for i in self.list1:
            self.nurse3.cell(row=self.b, column=self.a).value = i
            self.a += 1
        self.wb3.save('HRMS.xlsx')
        self.report()
        self.entry45.delete(0, END)
        self.entry46.delete(0, END)
        self.entry47.delete(0, END)
        self.entry48.delete(0, END)
        self.entry49.delete(0, END)
        self.entry50.delete(0, END)
        self.entry51.delete(0, END)
        self.entry52.delete(0, END)
        self.entry53.delete(0, END)

    def laboratorist(self):
        self.list1 = [self.name4.get(), self.id4.get(), self.age4.get(),
            self.sex4.get(), self.bloodtype4.get(), self.address4.get(),
            self.phonenum4.get(), self.datej4.get(), self.password4.get()]
        self.a = 1
        self.b = self.laboratorist3.max_row + 1
        for i in self.list1:
            self.laboratorist3.cell(row=self.b, column=self.a).value = i
            self.a += 1
        self.wb3.save('HRMS.xlsx')
        self.report()
        self.entry54.delete(0, END)
        self.entry55.delete(0, END)
        self.entry56.delete(0, END)
        self.entry57.delete(0, END)
        self.entry58.delete(0, END)
        self.entry59.delete(0, END)
        self.entry60.delete(0, END)
        self.entry61.delete(0, END)
        self.entry62.delete(0, END)

    def pharmacist(self):
        self.list1 = [self.name5.get(), self.id5.get(), self.age5.get(),
            self.sex5.get(), self.bloodtype5.get(), self.address5.get(),
            self.phonenum5.get(), self.datej5.get(), self.password5.get()]
        self.a = 1
        self.b = self.pharmacist3.max_row + 1
        for i in self.list1:
            self.pharmacist3.cell(row=self.b, column=self.a).value = i
            self.a += 1
        self.wb3.save('HRMS.xlsx')
        self.report()
        self.entry63.delete(0, END)
        self.entry64.delete(0, END)
        self.entry65.delete(0, END)
        self.entry66.delete(0, END)
        self.entry67.delete(0, END)
        self.entry68.delete(0, END)
        self.entry69.delete(0, END)
        self.entry70.delete(0, END)
        self.entry71.delete(0, END)

    def accountant(self):
        self.list1 = [self.name6.get(), self.id6.get(), self.age6.get(),
            self.sex6.get(), self.bloodtype6.get(), self.address6.get(),
            self.phonenum6.get(), self.datej6.get(), self.password6.get()]
        self.a = 1
        self.b = self.accountant3.max_row + 1
        for i in self.list1:
            self.accountant3.cell(row=self.b, column=self.a).value = i
            self.a += 1
        self.wb3.save('HRMS.xlsx')
        self.report()
        self.entry72.delete(0, END)
        self.entry73.delete(0, END)
        self.entry74.delete(0, END)
        self.entry75.delete(0, END)
        self.entry76.delete(0, END)
        self.entry77.delete(0, END)
        self.entry78.delete(0, END)
        self.entry79.delete(0, END)
        self.entry80.delete(0, END)

    def frames11(self):
        self.frame1.pack_forget()
        self.frame3.pack_forget()
        self.frame4.pack_forget()
        self.frame5.pack_forget()
        self.frame6.pack_forget()
        self.frame7.pack_forget()
        self.frame8.pack_forget()
        self.framea.pack_forget()
        self.frameb.pack_forget()
        self.framec.pack_forget()
        self.framed.pack_forget()
        self.framee.pack_forget()
        self.framef.pack_forget()
        self.frameI.pack_forget()
        self.frameacc.pack_forget()
        self.framedoc1.pack_forget()
        self.framedoc2.pack_forget()
        self.framedoc3.pack_forget()
        self.framenur1.pack_forget()
        self.framenur2.pack_forget()
        self.framepharm.pack_forget()
        self.framepass.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.frame2.pack()

    def frames12(self):
        self.I = True
        self.II = False
        self.III = False
        self.IIII = False
        self.IIIII = False
        self.IIIIII = False
        self.frame1.pack_forget()
        self.frame2.pack_forget()
        self.frame4.pack_forget()
        self.frame5.pack_forget()
        self.frame6.pack_forget()
        self.frame7.pack_forget()
        self.frame8.pack_forget()
        self.framea.pack_forget()
        self.frameb.pack_forget()
        self.framec.pack_forget()
        self.framed.pack_forget()
        self.framee.pack_forget()
        self.framef.pack_forget()
        self.frameI.pack_forget()
        self.frameacc.pack_forget()
        self.framedoc1.pack_forget()
        self.framedoc2.pack_forget()
        self.framedoc3.pack_forget()
        self.framenur1.pack_forget()
        self.framenur2.pack_forget()
        self.framepharm.pack_forget()
        self.framepass.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.frame3.pack()

    def frames13(self):
        self.I = False
        self.II = True
        self.III = False
        self.IIII = False
        self.IIIII = False
        self.IIIIII = False
        self.frame1.pack_forget()
        self.frame2.pack_forget()
        self.frame3.pack_forget()
        self.frame5.pack_forget()
        self.frame6.pack_forget()
        self.frame7.pack_forget()
        self.frame8.pack_forget()
        self.framea.pack_forget()
        self.frameb.pack_forget()
        self.framec.pack_forget()
        self.framed.pack_forget()
        self.framee.pack_forget()
        self.framef.pack_forget()
        self.frameI.pack_forget()
        self.frameacc.pack_forget()
        self.framedoc1.pack_forget()
        self.framedoc2.pack_forget()
        self.framedoc3.pack_forget()
        self.framenur1.pack_forget()
        self.framenur2.pack_forget()
        self.framepharm.pack_forget()
        self.framepass.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.frame4.pack()

    def frames14(self):
        self.I = False
        self.II = False
        self.III = True
        self.IIII = False
        self.IIIII = False
        self.IIIIII = False
        self.frame1.pack_forget()
        self.frame2.pack_forget()
        self.frame3.pack_forget()
        self.frame4.pack_forget()
        self.frame6.pack_forget()
        self.frame7.pack_forget()
        self.frame8.pack_forget()
        self.framea.pack_forget()
        self.frameb.pack_forget()
        self.framec.pack_forget()
        self.framed.pack_forget()
        self.framee.pack_forget()
        self.framef.pack_forget()
        self.frameI.pack_forget()
        self.frameacc.pack_forget()
        self.framedoc1.pack_forget()
        self.framedoc2.pack_forget()
        self.framedoc3.pack_forget()
        self.framenur1.pack_forget()
        self.framenur2.pack_forget()
        self.framepharm.pack_forget()
        self.framepass.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.frame5.pack()
    <mask token>

    def frames16(self):
        self.I = False
        self.II = False
        self.III = False
        self.IIII = False
        self.IIIII = True
        self.IIIIII = False
        self.frame1.pack_forget()
        self.frame2.pack_forget()
        self.frame3.pack_forget()
        self.frame4.pack_forget()
        self.frame5.pack_forget()
        self.frame6.pack_forget()
        self.frame8.pack_forget()
        self.framea.pack_forget()
        self.frameb.pack_forget()
        self.framec.pack_forget()
        self.framed.pack_forget()
        self.framee.pack_forget()
        self.framef.pack_forget()
        self.frameI.pack_forget()
        self.frameacc.pack_forget()
        self.framedoc1.pack_forget()
        self.framedoc2.pack_forget()
        self.framedoc3.pack_forget()
        self.framenur1.pack_forget()
        self.framenur2.pack_forget()
        self.framepharm.pack_forget()
        self.framepass.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.frame7.pack()

    def frames17(self):
        self.I = False
        self.II = False
        self.III = False
        self.IIII = False
        self.IIIII = False
        self.IIIIII = True
        self.frame1.pack_forget()
        self.frame2.pack_forget()
        self.frame3.pack_forget()
        self.frame4.pack_forget()
        self.frame5.pack_forget()
        self.frame6.pack_forget()
        self.frame7.pack_forget()
        self.framea.pack_forget()
        self.frameb.pack_forget()
        self.framec.pack_forget()
        self.framed.pack_forget()
        self.framee.pack_forget()
        self.framef.pack_forget()
        self.frameI.pack_forget()
        self.frameacc.pack_forget()
        self.framedoc1.pack_forget()
        self.framedoc2.pack_forget()
        self.framedoc3.pack_forget()
        self.framenur1.pack_forget()
        self.framenur2.pack_forget()
        self.framepharm.pack_forget()
        self.framepass.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.frame8.pack()
    <mask token>

    def framesb(self):
        self.I = True
        self.II = False
        self.III = False
        self.IIII = False
        self.IIIII = False
        self.IIIIII = False
        if self.login1.get() == str(self.security3.cell(row=1, column=1).value
            ) and self.pass1.get() == str(self.security3.cell(row=1, column
            =2).value):
            self.J = True
            self.JJ = False
            self.JJJ = False
            self.JJJJ = False
            self.JJJJJ = False
            self.JJJJJJ = False
            self.JJJJJJJ = False
            self.frame2.pack_forget()
            self.framea.pack_forget()
            self.framec.pack_forget()
            self.framed.pack_forget()
            self.framee.pack_forget()
            self.framef.pack_forget()
            self.frameI.pack_forget()
            self.frameacc.pack_forget()
            self.framedoc1.pack_forget()
            self.framedoc2.pack_forget()
            self.framedoc3.pack_forget()
            self.frameda.pack_forget()
            self.framedb.pack_forget()
            self.framedc.pack_forget()
            self.framedd.pack_forget()
            self.framede.pack_forget()
            self.frameb.pack()
            self.entry1.delete(0, END)
            self.entry2.delete(0, END)
        else:
            tkinter.messagebox.showerror('showerror', 'Incorrect Password')

    def framesc(self):
        self.I = False
        self.II = False
        self.III = True
        self.IIII = False
        self.IIIII = False
        self.IIIIII = False
        self.framea.pack_forget()
        self.frameb.pack_forget()
        self.framed.pack_forget()
        self.framee.pack_forget()
        self.framef.pack_forget()
        self.frameI.pack_forget()
        self.frameacc.pack_forget()
        self.framedoc1.pack_forget()
        self.framedoc2.pack_forget()
        self.framedoc3.pack_forget()
        self.framepass.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.framec.pack()

    def framesd(self):
        self.I = False
        self.II = False
        self.III = False
        self.IIII = True
        self.IIIII = False
        self.IIIIII = False
        self.framea.pack_forget()
        self.frameb.pack_forget()
        self.framec.pack_forget()
        self.framee.pack_forget()
        self.framef.pack_forget()
        self.frameI.pack_forget()
        self.frameacc.pack_forget()
        self.framedoc1.pack_forget()
        self.framedoc2.pack_forget()
        self.framedoc3.pack_forget()
        self.framepass.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.framed.pack()
    <mask token>

    def framesf(self):
        self.I = False
        self.II = False
        self.III = False
        self.IIII = False
        self.IIIII = False
        self.IIIIII = True
        self.framea.pack_forget()
        self.frameb.pack_forget()
        self.framec.pack_forget()
        self.framed.pack_forget()
        self.framee.pack_forget()
        self.frameI.pack_forget()
        self.frameacc.pack_forget()
        self.framedoc1.pack_forget()
        self.framedoc2.pack_forget()
        self.framedoc3.pack_forget()
        self.framepass.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.framef.pack()
    <mask token>

    def framesl(self):
        self.framea.pack_forget()
        self.frameb.pack_forget()
        self.framec.pack_forget()
        self.framed.pack_forget()
        self.framee.pack_forget()
        self.framef.pack_forget()
        self.frameacc.pack_forget()
        self.framedoc1.pack_forget()
        self.framedoc2.pack_forget()
        self.framedoc3.pack_forget()
        self.framenur1.pack_forget()
        self.framenur2.pack_forget()
        self.framepharm.pack_forget()
        self.framepass.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.frameI.pack_forget()
        self.frameda.pack()

    def appoint1(self):
        self.framesl()
        self.text2.delete(1.0, END)
        self.list1 = []
        self.list2 = []
        for i in range(1, self.appointment3.max_row + 1):
            for j in range(1, self.appointment3.max_column + 1):
                k = len(str(self.appointment3.cell(row=i, column=j).value))
                y = str(self.appointment3.cell(row=i, column=j).value
                    ) + ' ' * (12 - k)
                self.list1.append(y)
            for k in range(1, self.appointment3.max_column + 1):
                z = str(self.appointment3.cell(row=i, column=j).value)
                self.list2.append(z)
            if str(self.login3.get()) in self.list2:
                self.text2.insert(END, self.list1)
                self.text2.insert(END, '\n')
            self.list2 = []
            self.list1 = []

    def surg1(self):
        self.framesl()
        self.text2.delete(1.0, END)
        self.list1 = []
        self.list2 = []
        for i in range(1, self.surgery3.max_row + 1):
            for j in range(1, self.surgery3.max_column + 1):
                k = len(str(self.surgery3.cell(row=i, column=j).value))
                y = str(self.surgery3.cell(row=i, column=j).value) + ' ' * (
                    12 - k)
                self.list1.append(y)
            for k in range(1, self.surgery3.max_column + 1):
                z = str(self.surgery3.cell(row=i, column=j).value)
                self.list2.append(z)
            if str(self.login3.get()) in self.list2:
                self.text2.insert(END, self.list1)
                self.text2.insert(END, '\n')
            self.list2 = []
            self.list1 = []

    def medec1(self):
        self.framesl()
        self.text2.delete(1.0, END)
        self.list1 = []
        self.list12 = []
        for i in range(1, self.medicine3.max_row + 1):
            for j in range(1, self.medicine3.max_column + 1):
                k = len(str(self.medicine3.cell(row=i, column=j).value))
                y = str(self.medicine3.cell(row=i, column=j).value) + ' ' * (
                    12 - k)
                self.list1.append(y)
            for k in range(1, self.medicine3.max_column + 1):
                z = str(self.medicine3.cell(row=i, column=j).value)
                self.list2.append(z)
            if str(self.login3.get()) in self.list2:
                self.text2.insert(END, self.list1)
                self.text2.insert(END, '\n')
            self.list2 = []
            self.list1 = []

    def appoint(self):
        self.framesh()
        self.text1.delete(1.0, END)
        self.list1 = []
        for i in range(1, self.appointment3.max_row + 1):
            for j in range(1, self.appointment3.max_column + 1):
                k = len(str(self.appointment3.cell(row=i, column=j).value))
                y = str(self.appointment3.cell(row=i, column=j).value
                    ) + ' ' * (12 - k)
                self.list1.append(y)
            self.text1.insert(END, self.list1)
            self.text1.insert(END, '\n')
            self.list1 = []

    def surg(self):
        self.framesh()
        self.text1.delete(1.0, END)
        self.list1 = []
        for i in range(1, self.surgery3.max_row + 1):
            for j in range(1, self.surgery3.max_column + 1):
                k = len(str(self.surgery3.cell(row=i, column=j).value))
                y = str(self.surgery3.cell(row=i, column=j).value) + ' ' * (
                    12 - k)
                self.list1.append(y)
            self.text1.insert(END, self.list1)
            self.text1.insert(END, '\n')
            self.list1 = []
    <mask token>

    def pay(self):
        self.framesh()
        self.text1.delete(1.0, END)
        self.list1 = []
        for i in range(1, self.payment3.max_row + 1):
            for j in range(1, self.payment3.max_column + 1):
                k = len(str(self.payment3.cell(row=i, column=j).value))
                y = str(self.payment3.cell(row=i, column=j).value) + ' ' * (
                    12 - k)
                self.list1.append(y)
            self.text1.insert(END, self.list1)
            self.text1.insert(END, '\n')
            self.list1 = []
    <mask token>

    def deathd(self):
        self.framesh()
        self.text1.delete(1.0, END)
        self.list1 = []
        for i in range(1, self.death3.max_row + 1):
            for j in range(1, self.death3.max_column + 1):
                k = len(str(self.death3.cell(row=i, column=j).value))
                y = str(self.death3.cell(row=i, column=j).value) + ' ' * (
                    12 - k)
                self.list1.append(y)
            self.text1.insert(END, self.list1)
            self.text1.insert(END, '\n')
            self.list1 = []

    def framesI(self):
        if self.II == True:
            self.framesh()
            self.text1.delete(1.0, END)
            self.list1 = []
            for i in range(1, self.doctor3.max_row + 1):
                for j in range(1, self.doctor3.max_column + 1):
                    k = len(str(self.doctor3.cell(row=i, column=j).value))
                    y = str(self.doctor3.cell(row=i, column=j).value) + ' ' * (
                        12 - k)
                    self.list1.append(y)
                self.text1.insert(END, self.list1)
                self.text1.insert(END, '\n')
                self.list1 = []
        elif self.I == True:
            self.framesh()
            self.text1.delete(1.0, END)
            self.list1 = []
            for i in range(1, self.patient3.max_row + 1):
                for j in range(1, self.patient3.max_column + 1):
                    k = len(str(self.patient3.cell(row=i, column=j).value))
                    y = str(self.patient3.cell(row=i, column=j).value
                        ) + ' ' * (12 - k)
                    self.list1.append(y)
                self.text1.insert(END, self.list1)
                self.text1.insert(END, '\n')
                self.list1 = []
        elif self.III == True:
            self.framesh()
            self.text1.delete(1.0, END)
            self.list1 = []
            for i in range(1, self.nurse3.max_row + 1):
                for j in range(1, self.nurse3.max_column + 1):
                    k = len(str(self.nurse3.cell(row=i, column=j).value))
                    y = str(self.nurse3.cell(row=i, column=j).value) + ' ' * (
                        12 - k)
                    self.list1.append(y)
                self.text1.insert(END, self.list1)
                self.text1.insert(END, '\n')
                self.list1 = []
        elif self.IIII == True:
            self.framesh()
            self.text1.delete(1.0, END)
            self.list1 = []
            for i in range(1, self.laboratorist3.max_row + 1):
                for j in range(1, self.laboratorist3.max_column + 1):
                    k = len(str(self.laboratorist3.cell(row=i, column=j).value)
                        )
                    y = str(self.laboratorist3.cell(row=i, column=j).value
                        ) + ' ' * (12 - k)
                    self.list1.append(y)
                self.text1.insert(END, self.list1)
                self.text1.insert(END, '\n')
                self.list1 = []
        elif self.IIIII == True:
            self.framesh()
            self.text1.delete(1.0, END)
            self.list1 = []
            for i in range(1, self.pharmacist3.max_row + 1):
                for j in range(1, self.pharmacist3.max_column + 1):
                    k = len(str(self.pharmacist3.cell(row=i, column=j).value))
                    y = str(self.pharmacist3.cell(row=i, column=j).value
                        ) + ' ' * (12 - k)
                    self.list1.append(y)
                self.text1.insert(END, self.list1)
                self.text1.insert(END, '\n')
                self.list1 = []
        elif self.IIIIII == True:
            self.framesh()
            self.text1.delete(1.0, END)
            self.list1 = []
            for i in range(1, self.accountant3.max_row + 1):
                for j in range(1, self.accountant3.max_column + 1):
                    k = len(str(self.accountant3.cell(row=i, column=j).value))
                    y = str(self.accountant3.cell(row=i, column=j).value
                        ) + ' ' * (12 - k)
                    self.list1.append(y)
                self.text1.insert(END, self.list1)
                self.text1.insert(END, '\n')
                self.list1 = []
        elif self.II == True:
            self.framesh()
            self.text1.delete(1.0, END)
            self.list1 = []
            for i in range(1, self.doctor3.max_row + 1):
                for j in range(1, self.doctor3.max_column + 1):
                    k = len(str(self.doctor3.cell(row=i, column=j).value))
                    y = str(self.doctor3.cell(row=i, column=j).value) + ' ' * (
                        12 - k)
                    self.list1.append(y)
                self.text1.insert(END, self.list1)
                self.text1.insert(END, '\n')
                self.list1 = []
        elif self.I == True:
            self.framesh()
            self.text1.delete(1.0, END)
            self.list1 = []
            for i in range(1, self.patient3.max_row + 1):
                for j in range(1, self.patient3.max_column + 1):
                    k = len(str(self.patient3.cell(row=i, column=j).value))
                    y = str(self.patient3.cell(row=i, column=j).value
                        ) + ' ' * (12 - k)
                    self.list1.append(y)
                self.text1.insert(END, self.list1)
                self.text1.insert(END, '\n')
                self.list1 = []
        elif self.III == True:
            self.framesh()
            self.text1.delete(1.0, END)
            self.list1 = []
            for i in range(1, self.nurse3.max_row + 1):
                for j in range(1, self.nurse3.max_column + 1):
                    k = len(str(self.nurse3.cell(row=i, column=j).value))
                    y = str(self.nurse3.cell(row=i, column=j).value) + ' ' * (
                        12 - k)
                    self.list1.append(y)
                self.text1.insert(END, self.list1)
                self.text1.insert(END, '\n')
                self.list1 = []
        elif self.IIII == True:
            self.framesh()
            self.text1.delete(1.0, END)
            self.list1 = []
            for i in range(1, self.laboratorist3.max_row + 1):
                for j in range(1, self.laboratorist3.max_column + 1):
                    k = len(str(self.laboratorist3.cell(row=i, column=j).value)
                        )
                    y = str(self.laboratorist3.cell(row=i, column=j).value
                        ) + ' ' * (12 - k)
                    self.list1.append(y)
                self.text1.insert(END, self.list1)
                self.text1.insert(END, '\n')
                self.list1 = []
        elif self.IIIII == True:
            self.framesh()
            self.text1.delete(1.0, END)
            self.list1 = []
            for i in range(1, self.pharmacist3.max_row + 1):
                for j in range(1, self.pharmacist3.max_column + 1):
                    k = len(str(self.pharmacist3.cell(row=i, column=j).value))
                    y = str(self.pharmacist3.cell(row=i, column=j).value
                        ) + ' ' * (12 - k)
                    self.list1.append(y)
                self.text1.insert(END, self.list1)
                self.text1.insert(END, '\n')
                self.list1 = []
        elif self.IIIIII == True:
            self.framesh()
            self.text1.delete(1.0, END)
            self.list1 = []
            for i in range(1, self.accountant3.max_row + 1):
                for j in range(1, self.accountant3.max_column + 1):
                    k = len(str(self.accountant3.cell(row=i, column=j).value))
                    y = str(self.accountant3.cell(row=i, column=j).value
                        ) + ' ' * (12 - k)
                    self.list1.append(y)
                self.text1.insert(END, self.list1)
                self.text1.insert(END, '\n')
                self.list1 = []

    def framesdoc1(self):
        self.frame1.pack_forget()
        self.frame2.pack_forget()
        self.frame3.pack_forget()
        self.frame4.pack_forget()
        self.frame5.pack_forget()
        self.frame6.pack_forget()
        self.frame7.pack_forget()
        self.frame8.pack_forget()
        self.frameacc.pack_forget()
        self.framedoc2.pack_forget()
        self.framedoc3.pack_forget()
        self.framenur1.pack_forget()
        self.framenur2.pack_forget()
        self.framepharm.pack_forget()
        self.framepass.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.framedoc1.pack()

    def framesdoc2(self):
        self.frame1.pack_forget()
        self.frame2.pack_forget()
        self.frame3.pack_forget()
        self.frame4.pack_forget()
        self.frame5.pack_forget()
        self.frame6.pack_forget()
        self.frame7.pack_forget()
        self.frame8.pack_forget()
        self.frameacc.pack_forget()
        self.framedoc1.pack_forget()
        self.framedoc3.pack_forget()
        self.framenur1.pack_forget()
        self.framenur2.pack_forget()
        self.framepharm.pack_forget()
        self.framepass.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.framedoc2.pack()

    def framesdoc3(self):
        self.frame1.pack_forget()
        self.frame2.pack_forget()
        self.frame3.pack_forget()
        self.frame4.pack_forget()
        self.frame6.pack_forget()
        self.frame5.pack_forget()
        self.frame7.pack_forget()
        self.frame8.pack_forget()
        self.frameacc.pack_forget()
        self.framedoc1.pack_forget()
        self.framedoc2.pack_forget()
        self.framenur1.pack_forget()
        self.framenur2.pack_forget()
        self.framepharm.pack_forget()
        self.framepass.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.framedoc3.pack()
    <mask token>
    <mask token>
    <mask token>

    def framesnur2(self):
        self.frame1.pack_forget()
        self.frame2.pack_forget()
        self.frame3.pack_forget()
        self.frame4.pack_forget()
        self.frame5.pack_forget()
        self.frame6.pack_forget()
        self.frame7.pack_forget()
        self.frame8.pack_forget()
        self.framedoc1.pack_forget()
        self.framedoc2.pack_forget()
        self.framedoc3.pack_forget()
        self.frameacc.pack_forget()
        self.framenur1.pack_forget()
        self.framepharm.pack_forget()
        self.framepass.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.framenur2.pack()
    <mask token>
    <mask token>
    <mask token>

    def framespass(self):
        self.framedoc1.pack_forget()
        self.framedoc2.pack_forget()
        self.framedoc3.pack_forget()
        self.framenur1.pack_forget()
        self.framenur2.pack_forget()
        self.frameacc.pack_forget()
        self.framepharm.pack_forget()
        self.frame1.pack_forget()
        self.frame2.pack_forget()
        self.frame3.pack_forget()
        self.frame4.pack_forget()
        self.frame5.pack_forget()
        self.frame6.pack_forget()
        self.frame7.pack_forget()
        self.frame8.pack_forget()
        self.framea.pack_forget()
        self.frameb.pack_forget()
        self.framec.pack_forget()
        self.framed.pack_forget()
        self.framee.pack_forget()
        self.framef.pack_forget()
        self.frameI.pack_forget()
        self.frame1.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.framepass.pack()

    def report(self):
        self.report3.cell(row=2, column=2).value = self.patient3.max_row - 1
        self.report3.cell(row=3, column=2).value = self.doctor3.max_row - 1
        self.report3.cell(row=4, column=2).value = self.nurse3.max_row - 1
        self.report3.cell(row=5, column=2
            ).value = self.laboratorist3.max_row - 1
        self.report3.cell(row=6, column=2).value = self.pharmacist3.max_row - 1
        self.report3.cell(row=7, column=2).value = self.accountant3.max_row - 1
        self.wb3.save('HRMS.xlsx')


<mask token>

<mask token>


class Hrms:

    def __init__(self):
        self.wb3 = openpyxl.load_workbook('HRMS.xlsx')
        self.patient3 = self.wb3.active
        self.patient3 = self.wb3['Patient']
        self.doctor3 = self.wb3['Doctor']
        self.nurse3 = self.wb3['Nurse']
        self.laboratorist3 = self.wb3['Laboratorist']
        self.pharmacist3 = self.wb3['Pharmacist']
        self.accountant3 = self.wb3['Accountant']
        self.appointment3 = self.wb3['Appointment']
        self.surgery3 = self.wb3['Surgeries']
        self.payment3 = self.wb3['Payments']
        self.medicine3 = self.wb3['Medicines']
        self.birth3 = self.wb3['Birth report']
        self.death3 = self.wb3['Death report']
        self.security3 = self.wb3['Security']
        self.report3 = self.wb3['Report']
        window = Tk()
        window.title('Hospital Record Management System')
        window.geometry('1350x490')
        window.resizable(0, 0)
        self.I = False
        self.II = False
        self.III = False
        self.IIII = False
        self.IIIII = False
        self.IIIIII = False
        self.J = False
        self.JJ = False
        self.JJJ = False
        self.JJJJ = False
        self.JJJJJ = False
        self.JJJJJJ = False
        self.frame1 = Frame(window)
        self.frame1.pack()
        label1 = Label(self.frame1, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=0, row=0, columnspan=3)
        label2 = Label(self.frame1, text='')
        label2.grid(column=4, row=0, pady=50)
        button1 = Button(self.frame1, text='Admin', bg='darkgrey', command=
            self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.frame1, text='Patient', bg='darkgrey',
            command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.frame1, text='Doctor', bg='darkgrey', command
            =self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.frame1, text='Nurse', bg='darkgrey', command=
            self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.frame1, text='Laboratorist', bg='darkgrey',
            command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.frame1, text='Pharmacist', bg='darkgrey',
            command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.frame1, text='Accountant', bg='darkgrey',
            command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button8 = Button(self.frame1, text='Home', bg='#444343', command=
            self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        self.frame2 = Frame(window)
        self.frame2.pack()
        label1 = Label(self.frame2, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.frame2, text='               ')
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.frame2, text='Admin', bg='lightgrey', command
            =self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.frame2, text='Patient', bg='darkgrey',
            command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.frame2, text='Doctor', bg='darkgrey', command
            =self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.frame2, text='Nurse', bg='darkgrey', command=
            self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.frame2, text='Laboratorist', bg='darkgrey',
            command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.frame2, text='Pharmacist', bg='darkgrey',
            command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.frame2, text='Accountant', bg='darkgrey',
            command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button8 = Button(self.frame2, text='Home', bg='#444343', command=
            self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        self.login1 = StringVar()
        self.pass1 = StringVar()
        label10 = Label(self.frame2, text='Username:', font=(
            'Times new roman', 12), width=10)
        label10.grid(column=3, row=2)
        self.entry1 = Entry(self.frame2, textvariable=self.login1)
        self.entry1.grid(column=4, row=2)
        label11 = Label(self.frame2, text='Password:', font=(
            'Times new roman', 12))
        label11.grid(column=3, row=3)
        self.entry2 = Entry(self.frame2, textvariable=self.pass1)
        self.entry2.grid(column=4, row=3)
        button8 = Button(self.frame2, text='Login ', bg='darkgrey', command
            =self.framesb)
        button8.grid(column=4, row=4, pady=10, ipadx=40)
        self.frame3 = Frame(window)
        self.frame3.pack()
        label1 = Label(self.frame3, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.frame3, text='               ')
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.frame3, text='Admin', bg='darkgrey', command=
            self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.frame3, text='Patient', bg='lightgrey',
            command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.frame3, text='Doctor', bg='darkgrey', command
            =self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.frame3, text='Nurse', bg='darkgrey', command=
            self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.frame3, text='Laboratorist', bg='darkgrey',
            command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.frame3, text='Pharmacist', bg='darkgrey',
            command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.frame3, text='Accountant', bg='darkgrey',
            command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button8 = Button(self.frame3, text='Home', bg='#444343', command=
            self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        self.login2 = StringVar()
        self.pass2 = StringVar()
        label10 = Label(self.frame3, text='Patient Id:', font=(
            'Times new roman', 12), width=15)
        label10.grid(column=3, row=2)
        self.entry111 = Entry(self.frame3, width=15, textvariable=self.login2)
        self.entry111.grid(column=4, row=2)
        label11 = Label(self.frame3, text='Password:', font=(
            'Times new roman', 12), width=15)
        label11.grid(column=3, row=3)
        self.entry222 = Entry(self.frame3, width=15, textvariable=self.pass2)
        self.entry222.grid(column=4, row=3)
        button1 = Button(self.frame3, text='Login', bg='darkgrey', command=
            self.framesJ)
        button1.grid(column=4, row=4, pady=10, ipadx=40)
        self.frame4 = Frame(window)
        self.frame4.pack()
        label1 = Label(self.frame4, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.frame4, text='               ')
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.frame4, text='Admin', bg='darkgrey', command=
            self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.frame4, text='Patient', bg='darkgrey',
            command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.frame4, text='Doctor', bg='lightgrey',
            command=self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.frame4, text='Nurse', bg='darkgrey', command=
            self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.frame4, text='Laboratorist', bg='darkgrey',
            command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.frame4, text='Pharmacist', bg='darkgrey',
            command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.frame4, text='Accountant', bg='darkgrey',
            command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button8 = Button(self.frame4, text='Home', bg='#444343', command=
            self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        self.login3 = StringVar()
        self.pass3 = StringVar()
        label10 = Label(self.frame4, text='Doctor Id:', font=(
            'Times new roman', 12), width=15)
        label10.grid(column=3, row=2)
        self.entry112 = Entry(self.frame4, width=15, textvariable=self.login3)
        self.entry112.grid(column=4, row=2)
        label11 = Label(self.frame4, text='Password:', font=(
            'Times new roman', 12), width=15)
        label11.grid(column=3, row=3)
        self.entry223 = Entry(self.frame4, width=15, textvariable=self.pass3)
        self.entry223.grid(column=4, row=3)
        button1 = Button(self.frame4, text='Login', bg='darkgrey', command=
            self.framesJ)
        button1.grid(column=4, row=4, pady=10, ipadx=40)
        self.frame5 = Frame(window)
        self.frame5.pack()
        label1 = Label(self.frame5, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.frame5, text='               ')
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.frame5, text='Admin', bg='darkgrey', command=
            self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.frame5, text='Patient', bg='darkgrey',
            command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.frame5, text='Doctor', bg='darkgrey', command
            =self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.frame5, text='Nurse', bg='lightgrey', command
            =self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.frame5, text='Laboratorist', bg='darkgrey',
            command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.frame5, text='Pharmacist', bg='darkgrey',
            command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.frame5, text='Accountant', bg='darkgrey',
            command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button8 = Button(self.frame5, text='Home', bg='#444343', command=
            self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        self.login4 = StringVar()
        self.pass4 = StringVar()
        label10 = Label(self.frame5, text='Nurse Id:', font=(
            'Times new roman', 12), width=15)
        label10.grid(column=3, row=2)
        self.entry113 = Entry(self.frame5, width=15, textvariable=self.login4)
        self.entry113.grid(column=4, row=2)
        label11 = Label(self.frame5, text='Password:', font=(
            'Times new roman', 12), width=15)
        label11.grid(column=3, row=3)
        self.entry224 = Entry(self.frame5, width=15, textvariable=self.pass4)
        self.entry224.grid(column=4, row=3)
        button1 = Button(self.frame5, text='Login', bg='darkgrey', command=
            self.framesJ)
        button1.grid(column=4, row=4, pady=10, ipadx=40)
        self.frame6 = Frame(window)
        self.frame6.pack()
        label1 = Label(self.frame6, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.frame6, text='               ')
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.frame6, text='Admin', bg='darkgrey', command=
            self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.frame6, text='Patient', bg='darkgrey',
            command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.frame6, text='Doctor', bg='darkgrey', command
            =self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.frame6, text='Nurse', bg='darkgrey', command=
            self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.frame6, text='Laboratorist', bg='lightgrey',
            command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.frame6, text='Pharmacist', bg='darkgrey',
            command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.frame6, text='Accountant', bg='darkgrey',
            command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button8 = Button(self.frame6, text='Home', bg='#444343', command=
            self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        self.login5 = StringVar()
        self.pass5 = StringVar()
        label10 = Label(self.frame6, text='Laboratorist Id:', font=(
            'Times new roman', 12), width=15)
        label10.grid(column=3, row=2)
        self.entry114 = Entry(self.frame6, width=15, textvariable=self.login5)
        self.entry114.grid(column=4, row=2)
        label11 = Label(self.frame6, text='Password:', font=(
            'Times new roman', 12), width=15)
        label11.grid(column=3, row=3)
        self.entry225 = Entry(self.frame6, width=15, textvariable=self.pass5)
        self.entry225.grid(column=4, row=3)
        button1 = Button(self.frame6, text='Login', bg='darkgrey', command=
            self.framesJ)
        button1.grid(column=4, row=4, pady=10, ipadx=40)
        self.frame7 = Frame(window)
        self.frame7.pack()
        label1 = Label(self.frame7, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.frame7, text='               ')
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.frame7, text='Admin', bg='darkgrey', command=
            self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.frame7, text='Patient', bg='darkgrey',
            command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.frame7, text='Doctor', bg='darkgrey', command
            =self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.frame7, text='Nurse', bg='darkgrey', command=
            self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.frame7, text='Laboratorist', bg='darkgrey',
            command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.frame7, text='Pharmacist', bg='lightgrey',
            command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.frame7, text='Accountant', bg='darkgrey',
            command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button8 = Button(self.frame7, text='Home', bg='#444343', command=
            self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        self.login6 = StringVar()
        self.pass6 = StringVar()
        label10 = Label(self.frame7, text='Pharmacist Id:', font=(
            'Times new roman', 12), width=15)
        label10.grid(column=3, row=2)
        self.entry115 = Entry(self.frame7, width=15, textvariable=self.login6)
        self.entry115.grid(column=4, row=2)
        label11 = Label(self.frame7, text='Password:', font=(
            'Times new roman', 12), width=15)
        label11.grid(column=3, row=3)
        self.entry226 = Entry(self.frame7, width=15, textvariable=self.pass6)
        self.entry226.grid(column=4, row=3)
        button1 = Button(self.frame7, text='Login', bg='darkgrey', command=
            self.framesJ)
        button1.grid(column=4, row=4, pady=10, ipadx=40)
        self.frame8 = Frame(window)
        self.frame8.pack()
        label1 = Label(self.frame8, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.frame8, text='               ')
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.frame8, text='Admin', bg='darkgrey', command=
            self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.frame8, text='Patient', bg='darkgrey',
            command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.frame8, text='Doctor', bg='darkgrey', command
            =self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.frame8, text='Nurse', bg='darkgrey', command=
            self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.frame8, text='Laboratorist', bg='darkgrey',
            command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.frame8, text='Pharmacist', bg='darkgrey',
            command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.frame8, text='Accountant', bg='lightgrey',
            command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button8 = Button(self.frame8, text='Home', bg='#444343', command=
            self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        self.login7 = StringVar()
        self.pass7 = StringVar()
        label10 = Label(self.frame8, text='Accountant Id:', font=(
            'Times new roman', 12), width=15)
        label10.grid(column=3, row=2)
        self.entry116 = Entry(self.frame8, width=15, textvariable=self.login7)
        self.entry116.grid(column=4, row=2)
        label11 = Label(self.frame8, text='Password:', font=(
            'Times new roman', 12), width=15)
        label11.grid(column=3, row=3)
        self.entry227 = Entry(self.frame8, width=15, textvariable=self.pass7)
        self.entry227.grid(column=4, row=3)
        button1 = Button(self.frame8, text='Login', bg='darkgrey', command=
            self.framesJ)
        button1.grid(column=4, row=4, pady=10, ipadx=40)
        self.framea = Frame(window)
        self.framea.pack()
        label1 = Label(self.framea, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.framea, text='               ')
        label2.grid(column=0, row=0, pady=50)
        labela = Label(self.framea, text='Admin', bg='#60a1f0')
        labela.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.framea, text='Patient', bg='darkgrey',
            command=self.framesb)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.framea, text='Doctor', bg='lightgrey',
            command=self.framesa)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.framea, text='Nurse', bg='darkgrey', command=
            self.framesc)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.framea, text='Laboratorist', bg='darkgrey',
            command=self.framesd)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.framea, text='Pharmacist', bg='darkgrey',
            command=self.framese)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.framea, text='Accountant', bg='darkgrey',
            command=self.framesf)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button7 = Button(self.framea, text='Appointments', bg='darkgrey',
            command=self.appoint)
        button7.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framea, text='Surgeries', bg='darkgrey',
            command=self.surg)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framea, text='Payments', bg='darkgrey',
            command=self.pay)
        button7.grid(column=3, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framea, text='Medicines', bg='darkgrey',
            command=self.medec)
        button7.grid(column=4, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framea, text='Birth report', bg='darkgrey',
            command=self.birthd)
        button7.grid(column=5, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framea, text='Death report', bg='darkgrey',
            command=self.deathd)
        button7.grid(column=6, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framea, text='Change Password', bg='darkgrey',
            command=self.framespass)
        button7.grid(column=7, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.framea, text='Home', bg='#444343', command=
            self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        label12 = Label(self.framea, text='1. Name:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=1)
        label12 = Label(self.framea, text='2. Doc Id:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=2)
        label12 = Label(self.framea, text='3. Age:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=3)
        label12 = Label(self.framea, text='4. Sex:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=4)
        label12 = Label(self.framea, text='5. Qualificatn:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=5)
        label12 = Label(self.framea, text='6. Speciality:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=6)
        label12 = Label(self.framea, text='7. Blood Type:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=7)
        label12 = Label(self.framea, text='8. Address:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=4, row=1)
        label12 = Label(self.framea, text='9. Phone num:', font=(
            'Times new roman', 12), width=15)
        label12.grid(column=4, row=2)
        label12 = Label(self.framea, text='10. Date of birth:', font=(
            'Times new roman', 12), width=15)
        label12.grid(column=4, row=3)
        label12 = Label(self.framea, text='11. Date of join:', font=(
            'Times new roman', 12), width=15)
        label12.grid(column=4, row=4)
        label12 = Label(self.framea, text='12. Salary:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=4, row=5)
        label12 = Label(self.framea, text='13. Working days:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=4, row=6)
        label12 = Label(self.framea, text='14. Timings:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=4, row=7)
        label12 = Label(self.framea, text='15. Office num:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=6, row=1)
        label12 = Label(self.framea, text='16. Password:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=6, row=2)
        self.name1 = StringVar()
        self.id1 = StringVar()
        self.age1 = StringVar()
        self.sex1 = StringVar()
        self.quality1 = StringVar()
        self.special1 = StringVar()
        self.bloodtype1 = StringVar()
        self.address1 = StringVar()
        self.phonenum1 = StringVar()
        self.dateb1 = StringVar()
        self.datej1 = StringVar()
        self.salary1 = StringVar()
        self.work1 = StringVar()
        self.time1 = StringVar()
        self.office1 = StringVar()
        self.password1 = StringVar()
        self.entry29 = Entry(self.framea, textvariable=self.name1)
        self.entry29.grid(column=3, row=1)
        self.entry30 = Entry(self.framea, textvariable=self.id1)
        self.entry30.grid(column=3, row=2)
        self.entry31 = Entry(self.framea, textvariable=self.age1)
        self.entry31.grid(column=3, row=3)
        self.entry32 = Entry(self.framea, textvariable=self.sex1)
        self.entry32.grid(column=3, row=4)
        self.entry33 = Entry(self.framea, textvariable=self.quality1)
        self.entry33.grid(column=3, row=5)
        self.entry34 = Entry(self.framea, textvariable=self.special1)
        self.entry34.grid(column=3, row=6)
        self.entry35 = Entry(self.framea, textvariable=self.bloodtype1)
        self.entry35.grid(column=3, row=7)
        self.entry36 = Entry(self.framea, textvariable=self.address1)
        self.entry36.grid(column=5, row=1)
        self.entry37 = Entry(self.framea, textvariable=self.phonenum1)
        self.entry37.grid(column=5, row=2)
        self.entry38 = Entry(self.framea, textvariable=self.dateb1)
        self.entry38.grid(column=5, row=3)
        self.entry39 = Entry(self.framea, textvariable=self.datej1)
        self.entry39.grid(column=5, row=4)
        self.entry40 = Entry(self.framea, textvariable=self.salary1)
        self.entry40.grid(column=5, row=5)
        self.entry41 = Entry(self.framea, textvariable=self.work1)
        self.entry41.grid(column=5, row=6)
        self.entry42 = Entry(self.framea, textvariable=self.time1)
        self.entry42.grid(column=5, row=7)
        self.entry43 = Entry(self.framea, textvariable=self.office1)
        self.entry43.grid(column=7, row=1)
        self.entry44 = Entry(self.framea, textvariable=self.password1)
        self.entry44.grid(column=7, row=2)
        button11 = Button(self.framea, text='Add Doctor', width=15, bg=
            'darkgrey', command=self.doctor)
        button11.grid(column=6, row=3)
        button12 = Button(self.framea, text='View Doctor List', width=15,
            bg='darkgrey', command=self.framesI)
        button12.grid(column=6, row=4)
        self.frameb = Frame(window)
        self.frameb.pack()
        label1 = Label(self.frameb, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.frameb, text='               ')
        label2.grid(column=0, row=0, pady=50)
        labela = Label(self.frameb, text='Admin', bg='#60a1f0')
        labela.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.frameb, text='Patient', bg='lightgrey',
            command=self.framesb)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.frameb, text='Doctor', bg='darkgrey', command
            =self.framesa)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.frameb, text='Nurse', bg='darkgrey', command=
            self.framesc)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.frameb, text='Laboratorist', bg='darkgrey',
            command=self.framesd)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.frameb, text='Pharmacist', bg='darkgrey',
            command=self.framese)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.frameb, text='Accountant', bg='darkgrey',
            command=self.framesf)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button7 = Button(self.frameb, text='Appointments', bg='darkgrey',
            command=self.appoint)
        button7.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.frameb, text='Surgeries', bg='darkgrey',
            command=self.surg)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.frameb, text='Payments', bg='darkgrey',
            command=self.pay)
        button7.grid(column=3, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.frameb, text='Medicines', bg='darkgrey',
            command=self.medec)
        button7.grid(column=4, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.frameb, text='Birth report', bg='darkgrey',
            command=self.birthd)
        button7.grid(column=5, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.frameb, text='Death report', bg='darkgrey',
            command=self.deathd)
        button7.grid(column=6, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.frameb, text='Change Password', bg='darkgrey',
            command=self.framespass)
        button7.grid(column=7, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.frameb, text='Home', bg='#444343', command=
            self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        label12 = Label(self.frameb, text='1. Name:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=1)
        label12 = Label(self.frameb, text='2. Patient Id:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=2)
        label12 = Label(self.frameb, text='3. Age:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=3)
        label12 = Label(self.frameb, text='4. Sex:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=4)
        label12 = Label(self.frameb, text='5. Blood Type:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=5)
        label12 = Label(self.frameb, text='6. Problem:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=6)
        label12 = Label(self.frameb, text='7. Address:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=7)
        label12 = Label(self.frameb, text='8. Phone num:', font=(
            'Times new roman', 12), width=15)
        label12.grid(column=4, row=1)
        label12 = Label(self.frameb, text='9. Date of join:', font=(
            'Times new roman', 12), width=15)
        label12.grid(column=4, row=2)
        label12 = Label(self.frameb, text='10. Password:', font=(
            'Times new roman', 12), width=15)
        label12.grid(column=4, row=3)
        self.name2 = StringVar()
        self.id2 = StringVar()
        self.age2 = StringVar()
        self.sex2 = StringVar()
        self.bloodtype2 = StringVar()
        self.problem2 = StringVar()
        self.address2 = StringVar()
        self.phonenum2 = StringVar()
        self.datej2 = StringVar()
        self.password2 = StringVar()
        self.entry19 = Entry(self.frameb, textvariable=self.name2)
        self.entry19.grid(column=3, row=1)
        self.entry20 = Entry(self.frameb, textvariable=self.id2)
        self.entry20.grid(column=3, row=2)
        self.entry21 = Entry(self.frameb, textvariable=self.age2)
        self.entry21.grid(column=3, row=3)
        self.entry22 = Entry(self.frameb, textvariable=self.sex2)
        self.entry22.grid(column=3, row=4)
        self.entry23 = Entry(self.frameb, textvariable=self.bloodtype2)
        self.entry23.grid(column=3, row=5)
        self.entry24 = Entry(self.frameb, textvariable=self.problem2)
        self.entry24.grid(column=3, row=6)
        self.entry25 = Entry(self.frameb, textvariable=self.address2)
        self.entry25.grid(column=3, row=7)
        self.entry26 = Entry(self.frameb, textvariable=self.phonenum2)
        self.entry26.grid(column=5, row=1)
        self.entry27 = Entry(self.frameb, textvariable=self.datej2)
        self.entry27.grid(column=5, row=2)
        self.entry28 = Entry(self.frameb, textvariable=self.password2)
        self.entry28.grid(column=5, row=3)
        button9 = Button(self.frameb, text='Add Patient', width=15, bg=
            'darkgrey', command=self.patient)
        button9.grid(column=4, row=4)
        button10 = Button(self.frameb, text='View Patient List', width=15,
            bg='darkgrey', command=self.framesI)
        button10.grid(column=4, row=5)
        self.framec = Frame(window)
        self.framec.pack()
        label1 = Label(self.framec, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.framec, text='               ')
        label2.grid(column=0, row=0, pady=50)
        labela = Label(self.framec, text='Admin', bg='#60a1f0')
        labela.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.framec, text='Patient', bg='darkgrey',
            command=self.framesb)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.framec, text='Doctor', bg='darkgrey', command
            =self.framesa)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.framec, text='Nurse', bg='lightgrey', command
            =self.framesc)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.framec, text='Laboratorist', bg='darkgrey',
            command=self.framesd)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.framec, text='Pharmacist', bg='darkgrey',
            command=self.framese)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.framec, text='Accountant', bg='darkgrey',
            command=self.framesf)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button7 = Button(self.framec, text='Appointments', bg='darkgrey',
            command=self.appoint)
        button7.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framec, text='Surgeries', bg='darkgrey',
            command=self.surg)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framec, text='Payments', bg='darkgrey',
            command=self.pay)
        button7.grid(column=3, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framec, text='Medicines', bg='darkgrey',
            command=self.medec)
        button7.grid(column=4, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framec, text='Birth report', bg='darkgrey',
            command=self.birthd)
        button7.grid(column=5, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framec, text='Death report', bg='darkgrey',
            command=self.deathd)
        button7.grid(column=6, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framec, text='Change Password', bg='darkgrey',
            command=self.framespass)
        button7.grid(column=7, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.framec, text='Home', bg='#444343', command=
            self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        label12 = Label(self.framec, text='1. Name:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=1)
        label12 = Label(self.framec, text='2. Nurse Id:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=2)
        label12 = Label(self.framec, text='3. Age:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=3)
        label12 = Label(self.framec, text='4. Sex:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=4)
        label12 = Label(self.framec, text='5. Blood Type:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=5)
        label12 = Label(self.framec, text='6. Address:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=6)
        label12 = Label(self.framec, text='7. Phone num:', font=(
            'Times new roman', 12), width=15)
        label12.grid(column=2, row=7)
        label12 = Label(self.framec, text='8. Date of join:', font=(
            'Times new roman', 12), width=15)
        label12.grid(column=4, row=1)
        label12 = Label(self.framec, text='9. Password:', font=(
            'Times new roman', 12), width=15)
        label12.grid(column=4, row=2)
        self.name3 = StringVar()
        self.id3 = StringVar()
        self.age3 = StringVar()
        self.sex3 = StringVar()
        self.bloodtype3 = StringVar()
        self.address3 = StringVar()
        self.phonenum3 = StringVar()
        self.datej3 = StringVar()
        self.password3 = StringVar()
        entry45 = Entry(self.framec, textvariable=self.name3)
        entry45.grid(column=3, row=1)
        entry46 = Entry(self.framec, textvariable=self.id3)
        entry46.grid(column=3, row=2)
        entry47 = Entry(self.framec, textvariable=self.age3)
        entry47.grid(column=3, row=3)
        entry48 = Entry(self.framec, textvariable=self.sex3)
        entry48.grid(column=3, row=4)
        entry49 = Entry(self.framec, textvariable=self.bloodtype3)
        entry49.grid(column=3, row=5)
        entry50 = Entry(self.framec, textvariable=self.address3)
        entry50.grid(column=3, row=6)
        entry51 = Entry(self.framec, textvariable=self.phonenum3)
        entry51.grid(column=3, row=7)
        entry52 = Entry(self.framec, textvariable=self.datej3)
        entry52.grid(column=5, row=1)
        entry53 = Entry(self.framec, textvariable=self.password3)
        entry53.grid(column=5, row=2)
        button9 = Button(self.framec, text='Add Nurse', width=15, bg=
            'darkgrey', command=self.nurse)
        button9.grid(column=4, row=3)
        button10 = Button(self.framec, text='View Nurse List', width=15, bg
            ='darkgrey', command=self.framesI)
        button10.grid(column=4, row=4)
        self.framed = Frame(window)
        self.framed.pack()
        label1 = Label(self.framed, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.framed, text='               ')
        label2.grid(column=0, row=0, pady=50)
        labela = Label(self.framed, text='Admin', bg='#60a1f0')
        labela.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.framed, text='Patient', bg='darkgrey',
            command=self.framesb)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.framed, text='Doctor', bg='darkgrey', command
            =self.framesa)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.framed, text='Nurse', bg='darkgrey', command=
            self.framesc)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.framed, text='Laboratorist', bg='lightgrey',
            command=self.framesd)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.framed, text='Pharmacist', bg='darkgrey',
            command=self.framese)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.framed, text='Accountant', bg='darkgrey',
            command=self.framesf)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button7 = Button(self.framed, text='Appointments', bg='darkgrey',
            command=self.appoint)
        button7.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framed, text='Surgeries', bg='darkgrey',
            command=self.surg)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framed, text='Payments', bg='darkgrey',
            command=self.pay)
        button7.grid(column=3, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framed, text='Medicines', bg='darkgrey',
            command=self.medec)
        button7.grid(column=4, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framed, text='Birth report', bg='darkgrey',
            command=self.birthd)
        button7.grid(column=5, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framed, text='Death report', bg='darkgrey',
            command=self.deathd)
        button7.grid(column=6, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framed, text='Change Password', bg='darkgrey',
            command=self.framespass)
        button7.grid(column=7, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.framed, text='Home', bg='#444343', command=
            self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        label12 = Label(self.framed, text='1. Name:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=1)
        label12 = Label(self.framed, text='2. Laboratorist Id:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=2)
        label12 = Label(self.framed, text='3. Age:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=3)
        label12 = Label(self.framed, text='4. Sex:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=4)
        label12 = Label(self.framed, text='5. Blood Type:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=5)
        label12 = Label(self.framed, text='6. Address:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=6)
        label12 = Label(self.framed, text='7. Phone num:', font=(
            'Times new roman', 12), width=15)
        label12.grid(column=2, row=7)
        label12 = Label(self.framed, text='8. Date of join:', font=(
            'Times new roman', 12), width=15)
        label12.grid(column=4, row=1)
        label12 = Label(self.framed, text='9. Password:', font=(
            'Times new roman', 12), width=15)
        label12.grid(column=4, row=2)
        self.name4 = StringVar()
        self.id4 = StringVar()
        self.age4 = StringVar()
        self.sex4 = StringVar()
        self.bloodtype4 = StringVar()
        self.address4 = StringVar()
        self.phonenum4 = StringVar()
        self.datej4 = StringVar()
        self.password4 = StringVar()
        entry54 = Entry(self.framed, textvariable=self.name4)
        entry54.grid(column=3, row=1)
        entry55 = Entry(self.framed, textvariable=self.id4)
        entry55.grid(column=3, row=2)
        entry56 = Entry(self.framed, textvariable=self.age4)
        entry56.grid(column=3, row=3)
        entry57 = Entry(self.framed, textvariable=self.sex4)
        entry57.grid(column=3, row=4)
        entry58 = Entry(self.framed, textvariable=self.bloodtype4)
        entry58.grid(column=3, row=5)
        entry59 = Entry(self.framed, textvariable=self.address4)
        entry59.grid(column=3, row=6)
        entry60 = Entry(self.framed, textvariable=self.phonenum4)
        entry60.grid(column=3, row=7)
        entry61 = Entry(self.framed, textvariable=self.datej4)
        entry61.grid(column=5, row=1)
        entry62 = Entry(self.framed, textvariable=self.password4)
        entry62.grid(column=5, row=2)
        button9 = Button(self.framed, text='Add Lab.st', width=15, bg=
            'darkgrey', command=self.laboratorist)
        button9.grid(column=4, row=3)
        button10 = Button(self.framed, text='View Lab.st List', width=15,
            bg='darkgrey', command=self.framesI)
        button10.grid(column=4, row=4)
        self.framee = Frame(window)
        self.framee.pack()
        label1 = Label(self.framee, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.framee, text='               ')
        label2.grid(column=0, row=0, pady=50)
        labela = Label(self.framee, text='Admin', bg='#60a1f0')
        labela.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.framee, text='Patient', bg='darkgrey',
            command=self.framesb)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.framee, text='Doctor', bg='darkgrey', command
            =self.framesa)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.framee, text='Nurse', bg='darkgrey', command=
            self.framesc)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.framee, text='Laboratorist', bg='darkgrey',
            command=self.framesd)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.framee, text='Pharmacist', bg='lightgrey',
            command=self.framese)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.framee, text='Accountant', bg='darkgrey',
            command=self.framesf)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button7 = Button(self.framee, text='Appointments', bg='darkgrey',
            command=self.appoint)
        button7.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framee, text='Surgeries', bg='darkgrey',
            command=self.surg)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framee, text='Payments', bg='darkgrey',
            command=self.pay)
        button7.grid(column=3, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framee, text='Medicines', bg='darkgrey',
            command=self.medec)
        button7.grid(column=4, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framee, text='Birth report', bg='darkgrey',
            command=self.birthd)
        button7.grid(column=5, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framee, text='Death report', bg='darkgrey',
            command=self.deathd)
        button7.grid(column=6, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framee, text='Change Password', bg='darkgrey',
            command=self.framespass)
        button7.grid(column=7, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.framee, text='Home', bg='#444343', command=
            self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        label12 = Label(self.framee, text='1. Name:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=1)
        label12 = Label(self.framee, text='2. Pharmacist Id:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=2)
        label12 = Label(self.framee, text='3. Age:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=3)
        label12 = Label(self.framee, text='4. Sex:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=4)
        label12 = Label(self.framee, text='5. Blood Type:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=5)
        label12 = Label(self.framee, text='6. Address:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=6)
        label12 = Label(self.framee, text='7. Phone num:', font=(
            'Times new roman', 12), width=15)
        label12.grid(column=2, row=7)
        label12 = Label(self.framee, text='8. Date of join:', font=(
            'Times new roman', 12), width=15)
        label12.grid(column=4, row=1)
        label12 = Label(self.framee, text='9. Password:', font=(
            'Times new roman', 12), width=15)
        label12.grid(column=4, row=2)
        self.name5 = StringVar()
        self.id5 = StringVar()
        self.age5 = StringVar()
        self.sex5 = StringVar()
        self.bloodtype5 = StringVar()
        self.address5 = StringVar()
        self.phonenum5 = StringVar()
        self.datej5 = StringVar()
        self.password5 = StringVar()
        entry63 = Entry(self.framee, textvariable=self.name5)
        entry63.grid(column=3, row=1)
        entry64 = Entry(self.framee, textvariable=self.id5)
        entry64.grid(column=3, row=2)
        entry65 = Entry(self.framee, textvariable=self.age5)
        entry65.grid(column=3, row=3)
        entry66 = Entry(self.framee, textvariable=self.sex5)
        entry66.grid(column=3, row=4)
        entry67 = Entry(self.framee, textvariable=self.bloodtype5)
        entry67.grid(column=3, row=5)
        entry68 = Entry(self.framee, textvariable=self.address5)
        entry68.grid(column=3, row=6)
        entry69 = Entry(self.framee, textvariable=self.phonenum5)
        entry69.grid(column=3, row=7)
        entry70 = Entry(self.framee, textvariable=self.datej5)
        entry70.grid(column=5, row=1)
        entry71 = Entry(self.framee, textvariable=self.password5)
        entry71.grid(column=5, row=2)
        button9 = Button(self.framee, text='Add Pharm.st', width=15, bg=
            'darkgrey', command=self.pharmacist)
        button9.grid(column=4, row=3)
        button10 = Button(self.framee, text='View Pharm.st List', width=15,
            bg='darkgrey', command=self.framesI)
        button10.grid(column=4, row=4)
        self.framef = Frame(window)
        self.framef.pack()
        label1 = Label(self.framef, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.framef, text='               ')
        label2.grid(column=0, row=0, pady=50)
        labela = Label(self.framef, text='Admin', bg='#60a1f0')
        labela.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.framef, text='Patient', bg='darkgrey',
            command=self.framesb)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.framef, text='Doctor', bg='darkgrey', command
            =self.framesa)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.framef, text='Nurse', bg='darkgrey', command=
            self.framesc)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.framef, text='Laboratorist', bg='darkgrey',
            command=self.framesd)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.framef, text='Pharmacist', bg='darkgrey',
            command=self.framese)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.framef, text='Accountant', bg='lightgrey',
            command=self.framesf)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button7 = Button(self.framef, text='Appointments', bg='darkgrey',
            command=self.appoint)
        button7.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framef, text='Surgeries', bg='darkgrey',
            command=self.surg)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framef, text='Payments', bg='darkgrey',
            command=self.pay)
        button7.grid(column=3, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framef, text='Medicines', bg='darkgrey',
            command=self.medec)
        button7.grid(column=4, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framef, text='Birth report', bg='darkgrey',
            command=self.birthd)
        button7.grid(column=5, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framef, text='Death report', bg='darkgrey',
            command=self.deathd)
        button7.grid(column=6, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framef, text='Change Password', bg='darkgrey',
            command=self.framespass)
        button7.grid(column=7, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.framef, text='Home', bg='#444343', command=
            self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        label12 = Label(self.framef, text='1. Name:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=1)
        label12 = Label(self.framef, text='2. Accountant Id:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=2)
        label12 = Label(self.framef, text='3. Age:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=3)
        label12 = Label(self.framef, text='4. Sex:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=4)
        label12 = Label(self.framef, text='5. Blood Type:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=5)
        label12 = Label(self.framef, text='6. Address:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=6)
        label12 = Label(self.framef, text='7. Phone num:', font=(
            'Times new roman', 12), width=15)
        label12.grid(column=2, row=7)
        label12 = Label(self.framef, text='8. Date of join:', font=(
            'Times new roman', 12), width=15)
        label12.grid(column=4, row=1)
        label12 = Label(self.framef, text='9. Password:', font=(
            'Times new roman', 12), width=15)
        label12.grid(column=4, row=2)
        self.name6 = StringVar()
        self.id6 = StringVar()
        self.age6 = StringVar()
        self.sex6 = StringVar()
        self.bloodtype6 = StringVar()
        self.address6 = StringVar()
        self.phonenum6 = StringVar()
        self.datej6 = StringVar()
        self.password6 = StringVar()
        entry72 = Entry(self.framef, textvariable=self.name6)
        entry72.grid(column=3, row=1)
        entry73 = Entry(self.framef, textvariable=self.id6)
        entry73.grid(column=3, row=2)
        entry74 = Entry(self.framef, textvariable=self.age6)
        entry74.grid(column=3, row=3)
        entry75 = Entry(self.framef, textvariable=self.sex6)
        entry75.grid(column=3, row=4)
        entry76 = Entry(self.framef, textvariable=self.bloodtype6)
        entry76.grid(column=3, row=5)
        entry77 = Entry(self.framef, textvariable=self.address6)
        entry77.grid(column=3, row=6)
        entry78 = Entry(self.framef, textvariable=self.phonenum6)
        entry78.grid(column=3, row=7)
        entry79 = Entry(self.framef, textvariable=self.datej6)
        entry79.grid(column=5, row=1)
        entry80 = Entry(self.framef, textvariable=self.password6)
        entry80.grid(column=5, row=2)
        button9 = Button(self.framef, text='Add Account.t', width=15, bg=
            'darkgrey', command=self.accountant)
        button9.grid(column=4, row=3)
        button10 = Button(self.framef, text='View Account.t List', width=15,
            bg='darkgrey', command=self.framesI)
        button10.grid(column=4, row=4)
        self.frameI = Frame(window)
        self.frameI.pack()
        label1 = Label(self.frameI, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.frameI, text='               ')
        label2.grid(column=0, row=0, pady=50)
        labela = Label(self.frameI, text='Admin', bg='#60a1f0')
        labela.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.frameI, text='Patient', bg='darkgrey',
            command=self.framesb)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.frameI, text='Doctor', bg='darkgrey', command
            =self.framesa)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.frameI, text='Nurse', bg='darkgrey', command=
            self.framesc)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.frameI, text='Laboratorist', bg='darkgrey',
            command=self.framesd)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.frameI, text='Pharmacist', bg='darkgrey',
            command=self.framese)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.frameI, text='Accountant', bg='darkgrey',
            command=self.framesf)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button7 = Button(self.frameI, text='Appointments', bg='darkgrey',
            command=self.appoint)
        button7.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.frameI, text='Surgeries', bg='darkgrey',
            command=self.surg)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.frameI, text='Payments', bg='darkgrey',
            command=self.pay)
        button7.grid(column=3, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.frameI, text='Medicines', bg='darkgrey',
            command=self.medec)
        button7.grid(column=4, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.frameI, text='Birth report', bg='darkgrey',
            command=self.birthd)
        button7.grid(column=5, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.frameI, text='Death report', bg='darkgrey',
            command=self.deathd)
        button7.grid(column=6, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.frameI, text='Change Password', bg='darkgrey',
            command=self.framespass)
        button7.grid(column=7, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.frameI, text='Home', bg='#444343', command=
            self.framespass)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        self.text1 = Text(self.frameI, height=20, width=193, font=(
            'Times new roman', 9), bg='lightgrey')
        self.text1.grid(column=1, row=1, columnspan=8, rowspan=7)
        self.framedoc1 = Frame(window)
        self.framedoc1.pack()
        label1 = Label(self.framedoc1, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.framedoc1, text='               ')
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.framedoc1, text='Admin', bg='darkgrey',
            command=self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.framedoc1, text='Patient', bg='darkgrey',
            command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.framedoc1, text='Doctor', bg='darkgrey',
            command=self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.framedoc1, text='Nurse', bg='darkgrey',
            command=self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.framedoc1, text='Laboratorist', bg='darkgrey',
            command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.framedoc1, text='Pharmacist', bg='darkgrey',
            command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.framedoc1, text='Accountant', bg='darkgrey',
            command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button8 = Button(self.framedoc1, text='Appointments', bg=
            'lightgrey', command=self.framesdoc1)
        button8.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framedoc1, text='Surgeries', bg='darkgrey',
            command=self.framesdoc2)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framedoc1, text='Medicines', bg='darkgrey',
            command=self.framesdoc3)
        button7.grid(column=3, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framedoc1, text='Add Appointment', bg=
            'darkgrey', command=self.appointment)
        button7.grid(column=4, row=3, padx=10, pady=10, ipadx=30, columnspan=2)
        button7 = Button(self.framedoc1, text='View Appointments', bg=
            'darkgrey', command=self.appoint1)
        button7.grid(column=4, row=4, padx=10, pady=10, ipadx=30, columnspan=2)
        button7 = Button(self.framedoc1, text='Change Password', bg=
            'darkgrey', command=self.framespass)
        button7.grid(column=4, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.framedoc1, text='Home', bg='#444343', command
            =self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        label12 = Label(self.framedoc1, text='1. Patient Name:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=1)
        label12 = Label(self.framedoc1, text='2. Patient Id:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=2)
        label12 = Label(self.framedoc1, text='3. problem:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=3)
        label12 = Label(self.framedoc1, text='4. day:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=4)
        label12 = Label(self.framedoc1, text='5. Time:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=5)
        label12 = Label(self.framedoc1, text='6. Status:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=6)
        label12 = Label(self.framedoc1, text='7. Doctor Ic:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=7)
        self.app1 = StringVar()
        self.app2 = StringVar()
        self.app3 = StringVar()
        self.app4 = StringVar()
        self.app5 = StringVar()
        self.app6 = StringVar()
        self.app7 = StringVar()
        entry45 = Entry(self.framedoc1, textvariable=self.app1)
        entry45.grid(column=3, row=1)
        entry46 = Entry(self.framedoc1, textvariable=self.app2)
        entry46.grid(column=3, row=2)
        entry47 = Entry(self.framedoc1, textvariable=self.app3)
        entry47.grid(column=3, row=3)
        entry48 = Entry(self.framedoc1, textvariable=self.app4)
        entry48.grid(column=3, row=4)
        entry49 = Entry(self.framedoc1, textvariable=self.app5)
        entry49.grid(column=3, row=5)
        entry50 = Entry(self.framedoc1, textvariable=self.app6)
        entry50.grid(column=3, row=6)
        entry51 = Entry(self.framedoc1, textvariable=self.app7)
        entry51.grid(column=3, row=7)
        self.framedoc2 = Frame(window)
        self.framedoc2.pack()
        label1 = Label(self.framedoc2, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.framedoc2, text='               ')
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.framedoc2, text='Admin', bg='darkgrey',
            command=self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.framedoc2, text='Patient', bg='darkgrey',
            command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.framedoc2, text='Doctor', bg='darkgrey',
            command=self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.framedoc2, text='Nurse', bg='darkgrey',
            command=self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.framedoc2, text='Laboratorist', bg='darkgrey',
            command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.framedoc2, text='Pharmacist', bg='darkgrey',
            command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.framedoc2, text='Accountant', bg='darkgrey',
            command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button8 = Button(self.framedoc2, text='Appointments', bg='darkgrey',
            command=self.framesdoc1)
        button8.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framedoc2, text='Surgeries', bg='lightgrey',
            command=self.framesdoc2)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framedoc2, text='Medicines', bg='darkgrey',
            command=self.framesdoc3)
        button7.grid(column=3, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framedoc2, text='Add Operations', bg=
            'darkgrey', command=self.surg1)
        button7.grid(column=4, row=3, padx=10, pady=10, ipadx=30, columnspan=2)
        button7 = Button(self.framedoc2, text='View Operations', bg=
            'darkgrey', command=self.framesda)
        button7.grid(column=4, row=4, padx=10, pady=10, ipadx=30, columnspan=2)
        button7 = Button(self.framedoc2, text='Change Password', bg=
            'darkgrey', command=self.framespass)
        button7.grid(column=4, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.framedoc2, text='Home', bg='#444343', command
            =self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        label12 = Label(self.framedoc2, text='1. Operation Name:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=1)
        label12 = Label(self.framedoc2, text='2. Patient Id:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=2)
        label12 = Label(self.framedoc2, text='3. Date:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=3)
        label12 = Label(self.framedoc2, text='4. Cost:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=4)
        label12 = Label(self.framedoc2, text='5. Doctor Id:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=5)
        self.sur1 = StringVar()
        self.sur2 = StringVar()
        self.sur3 = StringVar()
        self.sur4 = StringVar()
        self.sur5 = StringVar()
        self.sur6 = StringVar()
        self.sur7 = StringVar()
        entry45 = Entry(self.framedoc2, textvariable=self.sur1)
        entry45.grid(column=3, row=1)
        entry46 = Entry(self.framedoc2, textvariable=self.sur2)
        entry46.grid(column=3, row=2)
        entry47 = Entry(self.framedoc2, textvariable=self.sur3)
        entry47.grid(column=3, row=3)
        entry48 = Entry(self.framedoc2, textvariable=self.sur4)
        entry48.grid(column=3, row=4)
        entry49 = Entry(self.framedoc2, textvariable=self.sur5)
        entry49.grid(column=3, row=5)
        self.framedoc3 = Frame(window)
        self.framedoc3.pack()
        label1 = Label(self.framedoc3, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.framedoc3, text='               ')
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.framedoc3, text='Admin', bg='darkgrey',
            command=self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.framedoc3, text='Patient', bg='darkgrey',
            command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.framedoc3, text='Doctor', bg='darkgrey',
            command=self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.framedoc3, text='Nurse', bg='darkgrey',
            command=self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.framedoc3, text='Laboratorist', bg='darkgrey',
            command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.framedoc3, text='Pharmacist', bg='darkgrey',
            command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.framedoc3, text='Accountant', bg='darkgrey',
            command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button8 = Button(self.framedoc3, text='Appointments', bg='darkgrey',
            command=self.framesdoc1)
        button8.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framedoc3, text='Surgeries', bg='darkgrey',
            command=self.framesdoc2)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framedoc3, text='Medicines', bg='lightgrey',
            command=self.framesdoc3)
        button7.grid(column=3, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framedoc3, text='Add Prescription', bg=
            'darkgrey', command=self.medicine)
        button7.grid(column=4, row=3, padx=10, pady=10, ipadx=30, columnspan=2)
        button7 = Button(self.framedoc3, text='View Prescriptions', bg=
            'darkgrey', command=self.medec1)
        button7.grid(column=4, row=4, padx=10, pady=10, ipadx=30, columnspan=2)
        button7 = Button(self.framedoc3, text='Change Password', bg=
            'darkgrey', command=self.frames1)
        button7.grid(column=4, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.framedoc3, text='Home', bg='#444343', command
            =self.framespass)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        label12 = Label(self.framedoc3, text='1. Patient Id:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=1)
        label12 = Label(self.framedoc3, text='2. Problem:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=2)
        label12 = Label(self.framedoc3, text='3. Prescription:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=3)
        label12 = Label(self.framedoc3, text='4. Cost:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=4)
        label12 = Label(self.framedoc3, text='5. Doctor Id:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=5)
        self.med1 = StringVar()
        self.med2 = StringVar()
        self.med3 = StringVar()
        self.med4 = StringVar()
        self.med5 = StringVar()
        entry45 = Entry(self.framedoc3, textvariable=self.med1)
        entry45.grid(column=3, row=1)
        entry46 = Entry(self.framedoc3, textvariable=self.med2)
        entry46.grid(column=3, row=2)
        entry47 = Entry(self.framedoc3, textvariable=self.med3)
        entry47.grid(column=3, row=3)
        entry48 = Entry(self.framedoc3, textvariable=self.med4)
        entry48.grid(column=3, row=4)
        entry49 = Entry(self.framedoc3, textvariable=self.med5)
        entry49.grid(column=3, row=5)
        self.frameacc = Frame(window)
        self.frameacc.pack()
        label1 = Label(self.frameacc, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.frameacc, text='               ')
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.frameacc, text='Admin', bg='darkgrey',
            command=self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.frameacc, text='Patient', bg='darkgrey',
            command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.frameacc, text='accor', bg='darkgrey',
            command=self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.frameacc, text='Nurse', bg='darkgrey',
            command=self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.frameacc, text='Laboratorist', bg='darkgrey',
            command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.frameacc, text='Pharmacist', bg='darkgrey',
            command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.frameacc, text='Accountant', bg='darkgrey',
            command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button7 = Button(self.frameacc, text='Payments', bg='lightgrey',
            command=self.framesacc)
        button7.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.frameacc, text='Add Payment', bg='darkgrey',
            command=self.payment)
        button7.grid(column=4, row=3, padx=10, pady=10, ipadx=30, columnspan=2)
        button7 = Button(self.frameacc, text='View Payments', bg='darkgrey',
            command=self.pay1)
        button7.grid(column=4, row=4, padx=10, pady=10, ipadx=30, columnspan=2)
        button7 = Button(self.frameacc, text='Change Password', bg=
            'darkgrey', command=self.framespass)
        button7.grid(column=4, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.frameacc, text='Home', bg='#444343', command=
            self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        label12 = Label(self.frameacc, text='1. Patient Id:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=1)
        label12 = Label(self.frameacc, text='2. Doctor fee:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=2)
        label12 = Label(self.frameacc, text='3. Operation fee:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=3)
        label12 = Label(self.frameacc, text='4. Bed fee:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=4)
        label12 = Label(self.frameacc, text='5. Medicine fee:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=5)
        label12 = Label(self.frameacc, text='6. Food fee:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=6)
        label12 = Label(self.frameacc, text='7. Blood fee:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=7)
        self.acc1 = StringVar()
        self.acc2 = StringVar()
        self.acc3 = StringVar()
        self.acc4 = StringVar()
        self.acc5 = StringVar()
        self.acc6 = StringVar()
        self.acc7 = StringVar()
        entry45 = Entry(self.frameacc, textvariable=self.acc1)
        entry45.grid(column=3, row=1)
        entry46 = Entry(self.frameacc, textvariable=self.acc2)
        entry46.grid(column=3, row=2)
        entry47 = Entry(self.frameacc, textvariable=self.acc3)
        entry47.grid(column=3, row=3)
        entry48 = Entry(self.frameacc, textvariable=self.acc4)
        entry48.grid(column=3, row=4)
        entry49 = Entry(self.frameacc, textvariable=self.acc5)
        entry49.grid(column=3, row=5)
        entry49 = Entry(self.frameacc, textvariable=self.acc6)
        entry49.grid(column=3, row=6)
        entry49 = Entry(self.frameacc, textvariable=self.acc7)
        entry49.grid(column=3, row=7)
        self.framepharm = Frame(window)
        self.framepharm.pack()
        label1 = Label(self.framepharm, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.framepharm, text='               ')
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.framepharm, text='Admin', bg='darkgrey',
            command=self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.framepharm, text='Patient', bg='darkgrey',
            command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.framepharm, text='accor', bg='darkgrey',
            command=self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.framepharm, text='Nurse', bg='darkgrey',
            command=self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.framepharm, text='Laboratorist', bg=
            'darkgrey', command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.framepharm, text='Pharmacist', bg='darkgrey',
            command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.framepharm, text='Accountant', bg='darkgrey',
            command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button7 = Button(self.framepharm, text='Medicines', bg='lightgrey',
            command=self.framespharm)
        button7.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framepharm, text='Add Prescriptions', bg=
            'darkgrey', command=self.medicine)
        button7.grid(column=4, row=3, padx=10, pady=10, ipadx=30, columnspan=2)
        button7 = Button(self.framepharm, text='View Prescriptions', bg=
            'darkgrey', command=self.medec2)
        button7.grid(column=4, row=4, padx=10, pady=10, ipadx=30, columnspan=2)
        button7 = Button(self.framepharm, text='Change Password', bg=
            'darkgrey', command=self.framespass)
        button7.grid(column=4, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.framepharm, text='Home', bg='#444343',
            command=self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        label12 = Label(self.framepharm, text='1. Patient Id:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=1)
        label12 = Label(self.framepharm, text='2. Problem:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=2)
        label12 = Label(self.framepharm, text='3. Prescription:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=3)
        label12 = Label(self.framepharm, text='4. Cost:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=4)
        label12 = Label(self.framepharm, text='5. Doctor Id:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=5)
        self.med1 = StringVar()
        self.med2 = StringVar()
        self.med3 = StringVar()
        self.med4 = StringVar()
        self.med5 = StringVar()
        entry45 = Entry(self.framepharm, textvariable=self.med1)
        entry45.grid(column=3, row=1)
        entry46 = Entry(self.framepharm, textvariable=self.med2)
        entry46.grid(column=3, row=2)
        entry47 = Entry(self.framepharm, textvariable=self.med3)
        entry47.grid(column=3, row=3)
        entry48 = Entry(self.framepharm, textvariable=self.med4)
        entry48.grid(column=3, row=4)
        entry49 = Entry(self.framepharm, textvariable=self.med5)
        entry49.grid(column=3, row=5)
        self.framenur1 = Frame(window)
        self.framenur1.pack()
        label1 = Label(self.framenur1, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.framenur1, text='               ')
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.framenur1, text='Admin', bg='darkgrey',
            command=self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.framenur1, text='Patient', bg='darkgrey',
            command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.framenur1, text='Doctor', bg='darkgrey',
            command=self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.framenur1, text='Nurse', bg='darkgrey',
            command=self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.framenur1, text='Laboratorist', bg='darkgrey',
            command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.framenur1, text='Pharmacist', bg='darkgrey',
            command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.framenur1, text='Accountant', bg='darkgrey',
            command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button8 = Button(self.framenur1, text='Birth report', bg=
            'lightgrey', command=self.framesnur1)
        button8.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framenur1, text='Death report', bg='darkgrey',
            command=self.framesnur2)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framenur1, text='Add Birth report', bg=
            'darkgrey', command=self.birthreport)
        button7.grid(column=4, row=3, padx=10, pady=10, ipadx=30, columnspan=2)
        button7 = Button(self.framenur1, text='View Birth report', bg=
            'darkgrey', command=self.birth1)
        button7.grid(column=4, row=4, padx=10, pady=10, ipadx=30, columnspan=2)
        button7 = Button(self.framenur1, text='Change Password', bg=
            'darkgrey', command=self.framespass)
        button7.grid(column=4, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.framenur1, text='Home', bg='#444343', command
            =self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        label12 = Label(self.framenur1, text='1. Date of birth:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=1)
        label12 = Label(self.framenur1, text='2. Time of Birth:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=2)
        label12 = Label(self.framenur1, text='3. Father name:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=3)
        label12 = Label(self.framenur1, text='4. Mother name:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=4)
        label12 = Label(self.framenur1, text='5. Parent Ph. Num:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=5)
        label12 = Label(self.framenur1, text='6. Sex:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=6)
        self.nur1 = StringVar()
        self.nur2 = StringVar()
        self.nur3 = StringVar()
        self.nur4 = StringVar()
        self.nur5 = StringVar()
        self.nur6 = StringVar()
        entry45 = Entry(self.framenur1, textvariable=self.nur1)
        entry45.grid(column=3, row=1)
        entry46 = Entry(self.framenur1, textvariable=self.nur2)
        entry46.grid(column=3, row=2)
        entry47 = Entry(self.framenur1, textvariable=self.nur3)
        entry47.grid(column=3, row=3)
        entry48 = Entry(self.framenur1, textvariable=self.nur4)
        entry48.grid(column=3, row=4)
        entry49 = Entry(self.framenur1, textvariable=self.nur5)
        entry49.grid(column=3, row=5)
        entry49 = Entry(self.framenur1, textvariable=self.nur6)
        entry49.grid(column=3, row=6)
        self.framenur2 = Frame(window)
        self.framenur2.pack()
        label1 = Label(self.framenur2, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.framenur2, text='               ')
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.framenur2, text='Admin', bg='darkgrey',
            command=self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.framenur2, text='Patient', bg='darkgrey',
            command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.framenur2, text='Doctor', bg='darkgrey',
            command=self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.framenur2, text='Nurse', bg='darkgrey',
            command=self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.framenur2, text='Laboratorist', bg='darkgrey',
            command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.framenur2, text='Pharmacist', bg='darkgrey',
            command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.framenur2, text='Accountant', bg='darkgrey',
            command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button8 = Button(self.framenur2, text='Birth report', bg='darkgrey',
            command=self.framesnur1)
        button8.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framenur2, text='Death report', bg=
            'lightgrey', command=self.framesnur2)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framenur2, text='Add Death report', bg=
            'darkgrey', command=self.deathreport)
        button7.grid(column=4, row=3, padx=10, pady=10, ipadx=30, columnspan=2)
        button7 = Button(self.framenur2, text='View Death report', bg=
            'darkgrey', command=self.death1)
        button7.grid(column=4, row=4, padx=10, pady=10, ipadx=30, columnspan=2)
        button7 = Button(self.framenur2, text='Change Password', bg=
            'darkgrey', command=self.framespass)
        button7.grid(column=4, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.framenur2, text='Home', bg='#444343', command
            =self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        label12 = Label(self.framenur2, text="1. Victim's Name:", font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=1)
        label12 = Label(self.framenur2, text='2. Date of birth:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=2)
        label12 = Label(self.framenur2, text='3. Date of Death:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=3)
        label12 = Label(self.framenur2, text='4. Time of Death:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=4)
        label12 = Label(self.framenur2, text='5. Parent Ph. Num:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=5)
        label12 = Label(self.framenur2, text='6. Sex:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=6)
        self.dea1 = StringVar()
        self.dea2 = StringVar()
        self.dea3 = StringVar()
        self.dea4 = StringVar()
        self.dea5 = StringVar()
        self.dea6 = StringVar()
        entry45 = Entry(self.framenur2, textvariable=self.dea1)
        entry45.grid(column=3, row=1)
        entry46 = Entry(self.framenur2, textvariable=self.dea2)
        entry46.grid(column=3, row=2)
        entry47 = Entry(self.framenur2, textvariable=self.dea3)
        entry47.grid(column=3, row=3)
        entry48 = Entry(self.framenur2, textvariable=self.dea4)
        entry48.grid(column=3, row=4)
        entry49 = Entry(self.framenur2, textvariable=self.dea5)
        entry49.grid(column=3, row=5)
        entry49 = Entry(self.framenur2, textvariable=self.dea6)
        entry49.grid(column=3, row=6)
        self.framepass = Frame(window)
        self.framepass.pack()
        label1 = Label(self.framepass, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.framepass, text='               ')
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.framepass, text='Admin', bg='darkgrey',
            command=self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.framepass, text='Patient', bg='darkgrey',
            command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.framepass, text='Doctor', bg='darkgrey',
            command=self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.framepass, text='Nurse', bg='darkgrey',
            command=self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.framepass, text='Laboratorist', bg='darkgrey',
            command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.framepass, text='Pharmacist', bg='darkgrey',
            command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.framepass, text='Accountant', bg='darkgrey',
            command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button8 = Button(self.framepass, text='Home', bg='#444343', command
            =self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        button7 = Button(self.framepass, text='Submit', bg='darkgrey',
            command=self.activate)
        button7.grid(column=4, row=4, padx=10, pady=10, ipadx=37.5)
        self.passs = StringVar()
        label11 = Label(self.framepass, text='Enter new password:', font=(
            'Times new roman', 12), width=15)
        label11.grid(column=1, row=4, columnspan=2)
        self.entry333 = Entry(self.framepass, width=15, textvariable=self.passs
            )
        self.entry333.grid(column=3, row=4)
        self.frameda = Frame(window)
        self.frameda.pack()
        label1 = Label(self.frameda, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.frameda, text='               ')
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.frameda, text='Admin', bg='darkgrey', command
            =self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.frameda, text='Patient', bg='darkgrey',
            command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.frameda, text='Doctor', bg='darkgrey',
            command=self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.frameda, text='Nurse', bg='darkgrey', command
            =self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.frameda, text='Laboratorist', bg='darkgrey',
            command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.frameda, text='Pharmacist', bg='darkgrey',
            command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.frameda, text='Accountant', bg='darkgrey',
            command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button7 = Button(self.frameda, text='Appointments', bg='darkgrey',
            command=self.appoint1)
        button7.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.frameda, text='Surgeries', bg='darkgrey',
            command=self.surg1)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.frameda, text='Medicines', bg='darkgrey',
            command=self.medec1)
        button7.grid(column=3, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.frameda, text='Back', bg='darkgrey', command=
            self.framesdoc1)
        button7.grid(column=4, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.frameda, text='Home', bg='#444343', command=
            self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        self.text2 = Text(self.frameda, height=20, width=193, font=(
            'Times new roman', 9), bg='lightgrey')
        self.text2.grid(column=1, row=1, columnspan=8, rowspan=7)
        self.framedb = Frame(window)
        self.framedb.pack()
        label1 = Label(self.framedb, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.framedb, text='               ')
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.framedb, text='Admin', bg='darkgrey', command
            =self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.framedb, text='Patient', bg='darkgrey',
            command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.framedb, text='Doctor', bg='darkgrey',
            command=self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.framedb, text='Nurse', bg='darkgrey', command
            =self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.framedb, text='Laboratorist', bg='darkgrey',
            command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.framedb, text='Pharmacist', bg='darkgrey',
            command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.framedb, text='Accountant', bg='darkgrey',
            command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button7 = Button(self.framedb, text='Birth report', bg='darkgrey',
            command=self.birth1)
        button7.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framedb, text='Death report', bg='darkgrey',
            command=self.death1)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framedb, text='Back', bg='darkgrey', command=
            self.framesnur1)
        button7.grid(column=3, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.framedb, text='Home', bg='#444343', command=
            self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        self.text3 = Text(self.framedb, height=20, width=193, font=(
            'Times new roman', 9), bg='lightgrey')
        self.text3.grid(column=1, row=1, columnspan=8, rowspan=7)
        self.framedc = Frame(window)
        self.framedc.pack()
        label1 = Label(self.framedc, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.framedc, text='               ')
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.framedc, text='Admin', bg='darkgrey', command
            =self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.framedc, text='Patient', bg='darkgrey',
            command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.framedc, text='Doctor', bg='darkgrey',
            command=self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.framedc, text='Nurse', bg='darkgrey', command
            =self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.framedc, text='Laboratorist', bg='darkgrey',
            command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.framedc, text='Pharmacist', bg='darkgrey',
            command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.framedc, text='Accountant', bg='darkgrey',
            command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button7 = Button(self.framedc, text='Payment', bg='lightgrey',
            command=self.pay1)
        button7.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framedc, text='Back', bg='darkgrey', command=
            self.framesacc)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.framedc, text='Home', bg='#444343', command=
            self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        self.text4 = Text(self.framedc, height=20, width=193, font=(
            'Times new roman', 9), bg='lightgrey')
        self.text4.grid(column=1, row=1, columnspan=8, rowspan=7)
        self.framedd = Frame(window)
        self.framedd.pack()
        label1 = Label(self.framedd, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.framedd, text='               ')
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.framedd, text='Admin', bg='darkgrey', command
            =self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.framedd, text='Patient', bg='darkgrey',
            command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.framedd, text='Doctor', bg='darkgrey',
            command=self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.framedd, text='Nurse', bg='darkgrey', command
            =self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.framedd, text='Laboratorist', bg='darkgrey',
            command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.framedd, text='Pharmacist', bg='darkgrey',
            command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.framedd, text='Accountant', bg='darkgrey',
            command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button7 = Button(self.framedd, text='Medicine', bg='lightgrey',
            command=self.medec2)
        button7.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framedd, text='Back', bg='darkgrey', command=
            self.framespharm)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.framedd, text='Home', bg='#444343', command=
            self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        self.text5 = Text(self.framedd, height=20, width=193, font=(
            'Times new roman', 9), bg='lightgrey')
        self.text5.grid(column=1, row=1, columnspan=8, rowspan=7)
        self.framede = Frame(window)
        self.framede.pack()
        label1 = Label(self.framede, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.framede, text='               ')
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.framede, text='Admin', bg='darkgrey', command
            =self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.framede, text='Patient', bg='darkgrey',
            command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.framede, text='Doctor', bg='darkgrey',
            command=self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.framede, text='Nurse', bg='darkgrey', command
            =self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.framede, text='Laboratorist', bg='darkgrey',
            command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.framede, text='Pharmacist', bg='darkgrey',
            command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.framede, text='Accountant', bg='darkgrey',
            command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button7 = Button(self.framede, text='Appointments', bg='lightgrey',
            command=self.a1)
        button7.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framede, text='Surgeries', bg='lightgrey',
            command=self.a2)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framede, text='Payments', bg='lightgrey',
            command=self.a4)
        button7.grid(column=3, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framede, text='Medicines', bg='lightgrey',
            command=self.a3)
        button7.grid(column=4, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framede, text='Change password', bg=
            'darkgrey', command=self.framespass)
        button7.grid(column=5, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.framede, text='Home', bg='#444343', command=
            self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        self.text6 = Text(self.framede, height=20, width=193, font=(
            'Times new roman', 9), bg='lightgrey')
        self.text6.grid(column=1, row=1, columnspan=8, rowspan=7)
        window.mainloop()

    def framesde(self):
        self.frame1.pack_forget()
        self.frame2.pack_forget()
        self.frame3.pack_forget()
        self.frame4.pack_forget()
        self.frame5.pack_forget()
        self.frame6.pack_forget()
        self.frame7.pack_forget()
        self.frame8.pack_forget()
        self.framede.pack()

    def a1(self):
        self.framesde()
        self.text6.delete(1.0, END)
        self.list1 = []
        self.list2 = []
        for i in range(1, self.appointment3.max_row + 1):
            for j in range(1, self.appointment3.max_column + 1):
                k = len(str(self.appointment3.cell(row=i, column=j).value))
                y = str(self.appointment3.cell(row=i, column=j).value
                    ) + ' ' * (12 - k)
                self.list1.append(y)
            for k in range(1, self.appointment3.max_column + 1):
                z = str(self.appointment3.cell(row=i, column=j).value)
                self.list2.append(z)
            if str(self.login2.get()) in self.list2:
                self.text6.insert(END, self.list1)
                self.text6.insert(END, '\n')
            self.list2 = []
            self.list1 = []
    <mask token>

    def a3(self):
        self.framesde()
        self.text6.delete(1.0, END)
        self.list1 = []
        self.list2 = []
        for i in range(1, self.medicine3.max_row + 1):
            for j in range(1, self.medicine3.max_column + 1):
                k = len(str(self.medicine3.cell(row=i, column=j).value))
                y = str(self.medicine3.cell(row=i, column=j).value) + ' ' * (
                    12 - k)
                self.list1.append(y)
            for k in range(1, self.medicine3.max_column + 1):
                z = str(self.medicine3.cell(row=i, column=j).value)
                self.list2.append(z)
            if str(self.login2.get()) in self.list2:
                self.text6.insert(END, self.list1)
                self.text6.insert(END, '\n')
            self.list2 = []
            self.list1 = []

    def a4(self):
        self.framesde()
        self.text6.delete(1.0, END)
        self.list1 = []
        self.list2 = []
        for i in range(1, self.payment3.max_row + 1):
            for j in range(1, self.payment3.max_column + 1):
                k = len(str(self.payment3.cell(row=i, column=j).value))
                y = str(self.payment3.cell(row=i, column=j).value) + ' ' * (
                    12 - k)
                self.list1.append(y)
            for k in range(1, self.payment3.max_column + 1):
                z = str(self.payment3.cell(row=i, column=j).value)
                self.list2.append(z)
            if str(self.login2.get()) in self.list2:
                self.text6.insert(END, self.list1)
                self.text6.insert(END, '\n')
            self.list2 = []
            self.list1 = []
    <mask token>

    def medec2(self):
        self.framesdd()
        self.text5.delete(1.0, END)
        self.list1 = []
        for i in range(1, self.medicine3.max_row + 1):
            for j in range(1, self.medicine3.max_column + 1):
                k = len(str(self.medicine3.cell(row=i, column=j).value))
                y = str(self.medicine3.cell(row=i, column=j).value) + ' ' * (
                    12 - k)
                self.list1.append(y)
            self.text5.insert(END, self.list1)
            self.text5.insert(END, '\n')
            self.list1 = []

    def framesdc(self):
        self.frameacc.pack_forget()
        self.framedc.pack()
    <mask token>
    <mask token>
    <mask token>

    def death1(self):
        self.framesdb()
        self.text3.delete(1.0, END)
        self.list1 = []
        for i in range(1, self.death3.max_row + 1):
            for j in range(1, self.death3.max_column + 1):
                k = len(str(self.death3.cell(row=i, column=j).value))
                y = str(self.death3.cell(row=i, column=j).value) + ' ' * (
                    12 - k)
                self.list1.append(y)
            self.text3.insert(END, self.list1)
            self.text3.insert(END, '\n')
            self.list1 = []

    def framesda(self):
        self.framedoc1.pack_forget()
        self.framedoc2.pack_forget()
        self.framedoc3.pack_forget()
        self.frameda.pack()
    <mask token>

    def birthreport(self):
        self.list1 = [self.nur1.get(), self.nur2.get(), self.nur3.get(),
            self.nur4.get(), self.nur5.get(), self.nur6.get()]
        self.a = 1
        self.b = self.birth3.max_row + 1
        for i in self.list1:
            self.birth3.cell(row=self.b, column=self.a).value = i
            self.a += 1
        self.wb3.save('HRMS.xlsx')

    def payment(self):
        self.list1 = [self.acc1.get(), self.acc2.get(), self.acc3.get(),
            self.acc4.get(), self.acc5.get(), self.acc6.get(), self.acc7.get()]
        self.a = 1
        self.b = self.payment3.max_row + 1
        for i in self.list1:
            self.payment3.cell(row=self.b, column=self.a).value = i
            self.a += 1
        self.wb3.save('HRMS.xlsx')

    def medicine(self):
        self.list1 = [self.med1.get(), self.med2.get(), self.med3.get(),
            self.med4.get(), self.med5.get()]
        self.a = 1
        self.b = self.medicine3.max_row + 1
        for i in self.list1:
            self.medicine3.cell(row=self.b, column=self.a).value = i
            self.a += 1
        self.wb3.save('HRMS.xlsx')
    <mask token>

    def appointment(self):
        self.list1 = [self.app1.get(), self.app2.get(), self.app3.get(),
            self.app4.get(), self.app5.get(), self.app6.get(), self.app7.get()]
        self.a = 1
        self.b = self.appointment3.max_row + 1
        for i in self.list1:
            self.appointment3.cell(row=self.b, column=self.a).value = i
            self.a += 1
        self.wb3.save('HRMS.xlsx')

    def doctor(self):
        self.list1 = [self.name1.get(), self.id1.get(), self.age1.get(),
            self.sex1.get(), self.quality1.get(), self.special1.get(), self
            .bloodtype1.get(), self.address1.get(), self.phonenum1.get(),
            self.dateb1.get(), self.datej1.get(), self.salary1.get(), self.
            work1.get(), self.time1.get(), self.office1.get(), self.
            password1.get()]
        self.a = 1
        self.b = self.doctor3.max_row + 1
        for i in self.list1:
            self.doctor3.cell(row=self.b, column=self.a).value = i
            self.a += 1
        self.wb3.save('HRMS.xlsx')
        self.report()
        self.entry29.delete(0, END)
        self.entry30.delete(0, END)
        self.entry31.delete(0, END)
        self.entry32.delete(0, END)
        self.entry33.delete(0, END)
        self.entry34.delete(0, END)
        self.entry35.delete(0, END)
        self.entry36.delete(0, END)
        self.entry37.delete(0, END)
        self.entry38.delete(0, END)
        self.entry39.delete(0, END)
        self.entry40.delete(0, END)
        self.entry41.delete(0, END)
        self.entry42.delete(0, END)
        self.entry43.delete(0, END)
        self.entry44.delete(0, END)

    def patient(self):
        self.list1 = [self.name2.get(), self.id2.get(), self.age2.get(),
            self.sex2.get(), self.bloodtype2.get(), self.problem2.get(),
            self.address2.get(), self.phonenum2.get(), self.datej2.get(),
            self.password2.get()]
        self.a = 1
        self.b = self.patient3.max_row + 1
        for i in self.list1:
            self.patient3.cell(row=self.b, column=self.a).value = i
            self.a += 1
        self.wb3.save('HRMS.xlsx')
        self.report()
        self.entry19.delete(0, END)
        self.entry20.delete(0, END)
        self.entry21.delete(0, END)
        self.entry22.delete(0, END)
        self.entry23.delete(0, END)
        self.entry24.delete(0, END)
        self.entry25.delete(0, END)
        self.entry26.delete(0, END)
        self.entry27.delete(0, END)
        self.entry28.delete(0, END)

    def nurse(self):
        self.list1 = [self.name3.get(), self.id3.get(), self.age3.get(),
            self.sex3.get(), self.bloodtype3.get(), self.address3.get(),
            self.phonenum3.get(), self.datej3.get(), self.password3.get()]
        self.a = 1
        self.b = self.nurse3.max_row + 1
        for i in self.list1:
            self.nurse3.cell(row=self.b, column=self.a).value = i
            self.a += 1
        self.wb3.save('HRMS.xlsx')
        self.report()
        self.entry45.delete(0, END)
        self.entry46.delete(0, END)
        self.entry47.delete(0, END)
        self.entry48.delete(0, END)
        self.entry49.delete(0, END)
        self.entry50.delete(0, END)
        self.entry51.delete(0, END)
        self.entry52.delete(0, END)
        self.entry53.delete(0, END)

    def laboratorist(self):
        self.list1 = [self.name4.get(), self.id4.get(), self.age4.get(),
            self.sex4.get(), self.bloodtype4.get(), self.address4.get(),
            self.phonenum4.get(), self.datej4.get(), self.password4.get()]
        self.a = 1
        self.b = self.laboratorist3.max_row + 1
        for i in self.list1:
            self.laboratorist3.cell(row=self.b, column=self.a).value = i
            self.a += 1
        self.wb3.save('HRMS.xlsx')
        self.report()
        self.entry54.delete(0, END)
        self.entry55.delete(0, END)
        self.entry56.delete(0, END)
        self.entry57.delete(0, END)
        self.entry58.delete(0, END)
        self.entry59.delete(0, END)
        self.entry60.delete(0, END)
        self.entry61.delete(0, END)
        self.entry62.delete(0, END)

    def pharmacist(self):
        self.list1 = [self.name5.get(), self.id5.get(), self.age5.get(),
            self.sex5.get(), self.bloodtype5.get(), self.address5.get(),
            self.phonenum5.get(), self.datej5.get(), self.password5.get()]
        self.a = 1
        self.b = self.pharmacist3.max_row + 1
        for i in self.list1:
            self.pharmacist3.cell(row=self.b, column=self.a).value = i
            self.a += 1
        self.wb3.save('HRMS.xlsx')
        self.report()
        self.entry63.delete(0, END)
        self.entry64.delete(0, END)
        self.entry65.delete(0, END)
        self.entry66.delete(0, END)
        self.entry67.delete(0, END)
        self.entry68.delete(0, END)
        self.entry69.delete(0, END)
        self.entry70.delete(0, END)
        self.entry71.delete(0, END)

    def accountant(self):
        self.list1 = [self.name6.get(), self.id6.get(), self.age6.get(),
            self.sex6.get(), self.bloodtype6.get(), self.address6.get(),
            self.phonenum6.get(), self.datej6.get(), self.password6.get()]
        self.a = 1
        self.b = self.accountant3.max_row + 1
        for i in self.list1:
            self.accountant3.cell(row=self.b, column=self.a).value = i
            self.a += 1
        self.wb3.save('HRMS.xlsx')
        self.report()
        self.entry72.delete(0, END)
        self.entry73.delete(0, END)
        self.entry74.delete(0, END)
        self.entry75.delete(0, END)
        self.entry76.delete(0, END)
        self.entry77.delete(0, END)
        self.entry78.delete(0, END)
        self.entry79.delete(0, END)
        self.entry80.delete(0, END)

    def frames11(self):
        self.frame1.pack_forget()
        self.frame3.pack_forget()
        self.frame4.pack_forget()
        self.frame5.pack_forget()
        self.frame6.pack_forget()
        self.frame7.pack_forget()
        self.frame8.pack_forget()
        self.framea.pack_forget()
        self.frameb.pack_forget()
        self.framec.pack_forget()
        self.framed.pack_forget()
        self.framee.pack_forget()
        self.framef.pack_forget()
        self.frameI.pack_forget()
        self.frameacc.pack_forget()
        self.framedoc1.pack_forget()
        self.framedoc2.pack_forget()
        self.framedoc3.pack_forget()
        self.framenur1.pack_forget()
        self.framenur2.pack_forget()
        self.framepharm.pack_forget()
        self.framepass.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.frame2.pack()

    def frames12(self):
        self.I = True
        self.II = False
        self.III = False
        self.IIII = False
        self.IIIII = False
        self.IIIIII = False
        self.frame1.pack_forget()
        self.frame2.pack_forget()
        self.frame4.pack_forget()
        self.frame5.pack_forget()
        self.frame6.pack_forget()
        self.frame7.pack_forget()
        self.frame8.pack_forget()
        self.framea.pack_forget()
        self.frameb.pack_forget()
        self.framec.pack_forget()
        self.framed.pack_forget()
        self.framee.pack_forget()
        self.framef.pack_forget()
        self.frameI.pack_forget()
        self.frameacc.pack_forget()
        self.framedoc1.pack_forget()
        self.framedoc2.pack_forget()
        self.framedoc3.pack_forget()
        self.framenur1.pack_forget()
        self.framenur2.pack_forget()
        self.framepharm.pack_forget()
        self.framepass.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.frame3.pack()

    def frames13(self):
        self.I = False
        self.II = True
        self.III = False
        self.IIII = False
        self.IIIII = False
        self.IIIIII = False
        self.frame1.pack_forget()
        self.frame2.pack_forget()
        self.frame3.pack_forget()
        self.frame5.pack_forget()
        self.frame6.pack_forget()
        self.frame7.pack_forget()
        self.frame8.pack_forget()
        self.framea.pack_forget()
        self.frameb.pack_forget()
        self.framec.pack_forget()
        self.framed.pack_forget()
        self.framee.pack_forget()
        self.framef.pack_forget()
        self.frameI.pack_forget()
        self.frameacc.pack_forget()
        self.framedoc1.pack_forget()
        self.framedoc2.pack_forget()
        self.framedoc3.pack_forget()
        self.framenur1.pack_forget()
        self.framenur2.pack_forget()
        self.framepharm.pack_forget()
        self.framepass.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.frame4.pack()

    def frames14(self):
        self.I = False
        self.II = False
        self.III = True
        self.IIII = False
        self.IIIII = False
        self.IIIIII = False
        self.frame1.pack_forget()
        self.frame2.pack_forget()
        self.frame3.pack_forget()
        self.frame4.pack_forget()
        self.frame6.pack_forget()
        self.frame7.pack_forget()
        self.frame8.pack_forget()
        self.framea.pack_forget()
        self.frameb.pack_forget()
        self.framec.pack_forget()
        self.framed.pack_forget()
        self.framee.pack_forget()
        self.framef.pack_forget()
        self.frameI.pack_forget()
        self.frameacc.pack_forget()
        self.framedoc1.pack_forget()
        self.framedoc2.pack_forget()
        self.framedoc3.pack_forget()
        self.framenur1.pack_forget()
        self.framenur2.pack_forget()
        self.framepharm.pack_forget()
        self.framepass.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.frame5.pack()
    <mask token>

    def frames16(self):
        self.I = False
        self.II = False
        self.III = False
        self.IIII = False
        self.IIIII = True
        self.IIIIII = False
        self.frame1.pack_forget()
        self.frame2.pack_forget()
        self.frame3.pack_forget()
        self.frame4.pack_forget()
        self.frame5.pack_forget()
        self.frame6.pack_forget()
        self.frame8.pack_forget()
        self.framea.pack_forget()
        self.frameb.pack_forget()
        self.framec.pack_forget()
        self.framed.pack_forget()
        self.framee.pack_forget()
        self.framef.pack_forget()
        self.frameI.pack_forget()
        self.frameacc.pack_forget()
        self.framedoc1.pack_forget()
        self.framedoc2.pack_forget()
        self.framedoc3.pack_forget()
        self.framenur1.pack_forget()
        self.framenur2.pack_forget()
        self.framepharm.pack_forget()
        self.framepass.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.frame7.pack()

    def frames17(self):
        self.I = False
        self.II = False
        self.III = False
        self.IIII = False
        self.IIIII = False
        self.IIIIII = True
        self.frame1.pack_forget()
        self.frame2.pack_forget()
        self.frame3.pack_forget()
        self.frame4.pack_forget()
        self.frame5.pack_forget()
        self.frame6.pack_forget()
        self.frame7.pack_forget()
        self.framea.pack_forget()
        self.frameb.pack_forget()
        self.framec.pack_forget()
        self.framed.pack_forget()
        self.framee.pack_forget()
        self.framef.pack_forget()
        self.frameI.pack_forget()
        self.frameacc.pack_forget()
        self.framedoc1.pack_forget()
        self.framedoc2.pack_forget()
        self.framedoc3.pack_forget()
        self.framenur1.pack_forget()
        self.framenur2.pack_forget()
        self.framepharm.pack_forget()
        self.framepass.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.frame8.pack()
    <mask token>

    def framesb(self):
        self.I = True
        self.II = False
        self.III = False
        self.IIII = False
        self.IIIII = False
        self.IIIIII = False
        if self.login1.get() == str(self.security3.cell(row=1, column=1).value
            ) and self.pass1.get() == str(self.security3.cell(row=1, column
            =2).value):
            self.J = True
            self.JJ = False
            self.JJJ = False
            self.JJJJ = False
            self.JJJJJ = False
            self.JJJJJJ = False
            self.JJJJJJJ = False
            self.frame2.pack_forget()
            self.framea.pack_forget()
            self.framec.pack_forget()
            self.framed.pack_forget()
            self.framee.pack_forget()
            self.framef.pack_forget()
            self.frameI.pack_forget()
            self.frameacc.pack_forget()
            self.framedoc1.pack_forget()
            self.framedoc2.pack_forget()
            self.framedoc3.pack_forget()
            self.frameda.pack_forget()
            self.framedb.pack_forget()
            self.framedc.pack_forget()
            self.framedd.pack_forget()
            self.framede.pack_forget()
            self.frameb.pack()
            self.entry1.delete(0, END)
            self.entry2.delete(0, END)
        else:
            tkinter.messagebox.showerror('showerror', 'Incorrect Password')

    def framesc(self):
        self.I = False
        self.II = False
        self.III = True
        self.IIII = False
        self.IIIII = False
        self.IIIIII = False
        self.framea.pack_forget()
        self.frameb.pack_forget()
        self.framed.pack_forget()
        self.framee.pack_forget()
        self.framef.pack_forget()
        self.frameI.pack_forget()
        self.frameacc.pack_forget()
        self.framedoc1.pack_forget()
        self.framedoc2.pack_forget()
        self.framedoc3.pack_forget()
        self.framepass.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.framec.pack()

    def framesd(self):
        self.I = False
        self.II = False
        self.III = False
        self.IIII = True
        self.IIIII = False
        self.IIIIII = False
        self.framea.pack_forget()
        self.frameb.pack_forget()
        self.framec.pack_forget()
        self.framee.pack_forget()
        self.framef.pack_forget()
        self.frameI.pack_forget()
        self.frameacc.pack_forget()
        self.framedoc1.pack_forget()
        self.framedoc2.pack_forget()
        self.framedoc3.pack_forget()
        self.framepass.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.framed.pack()

    def framese(self):
        self.I = False
        self.II = False
        self.III = False
        self.IIII = False
        self.IIIII = True
        self.IIIIII = False
        self.framea.pack_forget()
        self.frameb.pack_forget()
        self.framec.pack_forget()
        self.framed.pack_forget()
        self.framef.pack_forget()
        self.frameI.pack_forget()
        self.frameacc.pack_forget()
        self.framedoc1.pack_forget()
        self.framedoc2.pack_forget()
        self.framedoc3.pack_forget()
        self.framepass.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.framee.pack()

    def framesf(self):
        self.I = False
        self.II = False
        self.III = False
        self.IIII = False
        self.IIIII = False
        self.IIIIII = True
        self.framea.pack_forget()
        self.frameb.pack_forget()
        self.framec.pack_forget()
        self.framed.pack_forget()
        self.framee.pack_forget()
        self.frameI.pack_forget()
        self.frameacc.pack_forget()
        self.framedoc1.pack_forget()
        self.framedoc2.pack_forget()
        self.framedoc3.pack_forget()
        self.framepass.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.framef.pack()
    <mask token>

    def framesl(self):
        self.framea.pack_forget()
        self.frameb.pack_forget()
        self.framec.pack_forget()
        self.framed.pack_forget()
        self.framee.pack_forget()
        self.framef.pack_forget()
        self.frameacc.pack_forget()
        self.framedoc1.pack_forget()
        self.framedoc2.pack_forget()
        self.framedoc3.pack_forget()
        self.framenur1.pack_forget()
        self.framenur2.pack_forget()
        self.framepharm.pack_forget()
        self.framepass.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.frameI.pack_forget()
        self.frameda.pack()

    def appoint1(self):
        self.framesl()
        self.text2.delete(1.0, END)
        self.list1 = []
        self.list2 = []
        for i in range(1, self.appointment3.max_row + 1):
            for j in range(1, self.appointment3.max_column + 1):
                k = len(str(self.appointment3.cell(row=i, column=j).value))
                y = str(self.appointment3.cell(row=i, column=j).value
                    ) + ' ' * (12 - k)
                self.list1.append(y)
            for k in range(1, self.appointment3.max_column + 1):
                z = str(self.appointment3.cell(row=i, column=j).value)
                self.list2.append(z)
            if str(self.login3.get()) in self.list2:
                self.text2.insert(END, self.list1)
                self.text2.insert(END, '\n')
            self.list2 = []
            self.list1 = []

    def surg1(self):
        self.framesl()
        self.text2.delete(1.0, END)
        self.list1 = []
        self.list2 = []
        for i in range(1, self.surgery3.max_row + 1):
            for j in range(1, self.surgery3.max_column + 1):
                k = len(str(self.surgery3.cell(row=i, column=j).value))
                y = str(self.surgery3.cell(row=i, column=j).value) + ' ' * (
                    12 - k)
                self.list1.append(y)
            for k in range(1, self.surgery3.max_column + 1):
                z = str(self.surgery3.cell(row=i, column=j).value)
                self.list2.append(z)
            if str(self.login3.get()) in self.list2:
                self.text2.insert(END, self.list1)
                self.text2.insert(END, '\n')
            self.list2 = []
            self.list1 = []

    def medec1(self):
        self.framesl()
        self.text2.delete(1.0, END)
        self.list1 = []
        self.list12 = []
        for i in range(1, self.medicine3.max_row + 1):
            for j in range(1, self.medicine3.max_column + 1):
                k = len(str(self.medicine3.cell(row=i, column=j).value))
                y = str(self.medicine3.cell(row=i, column=j).value) + ' ' * (
                    12 - k)
                self.list1.append(y)
            for k in range(1, self.medicine3.max_column + 1):
                z = str(self.medicine3.cell(row=i, column=j).value)
                self.list2.append(z)
            if str(self.login3.get()) in self.list2:
                self.text2.insert(END, self.list1)
                self.text2.insert(END, '\n')
            self.list2 = []
            self.list1 = []

    def appoint(self):
        self.framesh()
        self.text1.delete(1.0, END)
        self.list1 = []
        for i in range(1, self.appointment3.max_row + 1):
            for j in range(1, self.appointment3.max_column + 1):
                k = len(str(self.appointment3.cell(row=i, column=j).value))
                y = str(self.appointment3.cell(row=i, column=j).value
                    ) + ' ' * (12 - k)
                self.list1.append(y)
            self.text1.insert(END, self.list1)
            self.text1.insert(END, '\n')
            self.list1 = []

    def surg(self):
        self.framesh()
        self.text1.delete(1.0, END)
        self.list1 = []
        for i in range(1, self.surgery3.max_row + 1):
            for j in range(1, self.surgery3.max_column + 1):
                k = len(str(self.surgery3.cell(row=i, column=j).value))
                y = str(self.surgery3.cell(row=i, column=j).value) + ' ' * (
                    12 - k)
                self.list1.append(y)
            self.text1.insert(END, self.list1)
            self.text1.insert(END, '\n')
            self.list1 = []
    <mask token>

    def pay(self):
        self.framesh()
        self.text1.delete(1.0, END)
        self.list1 = []
        for i in range(1, self.payment3.max_row + 1):
            for j in range(1, self.payment3.max_column + 1):
                k = len(str(self.payment3.cell(row=i, column=j).value))
                y = str(self.payment3.cell(row=i, column=j).value) + ' ' * (
                    12 - k)
                self.list1.append(y)
            self.text1.insert(END, self.list1)
            self.text1.insert(END, '\n')
            self.list1 = []
    <mask token>

    def deathd(self):
        self.framesh()
        self.text1.delete(1.0, END)
        self.list1 = []
        for i in range(1, self.death3.max_row + 1):
            for j in range(1, self.death3.max_column + 1):
                k = len(str(self.death3.cell(row=i, column=j).value))
                y = str(self.death3.cell(row=i, column=j).value) + ' ' * (
                    12 - k)
                self.list1.append(y)
            self.text1.insert(END, self.list1)
            self.text1.insert(END, '\n')
            self.list1 = []

    def framesI(self):
        if self.II == True:
            self.framesh()
            self.text1.delete(1.0, END)
            self.list1 = []
            for i in range(1, self.doctor3.max_row + 1):
                for j in range(1, self.doctor3.max_column + 1):
                    k = len(str(self.doctor3.cell(row=i, column=j).value))
                    y = str(self.doctor3.cell(row=i, column=j).value) + ' ' * (
                        12 - k)
                    self.list1.append(y)
                self.text1.insert(END, self.list1)
                self.text1.insert(END, '\n')
                self.list1 = []
        elif self.I == True:
            self.framesh()
            self.text1.delete(1.0, END)
            self.list1 = []
            for i in range(1, self.patient3.max_row + 1):
                for j in range(1, self.patient3.max_column + 1):
                    k = len(str(self.patient3.cell(row=i, column=j).value))
                    y = str(self.patient3.cell(row=i, column=j).value
                        ) + ' ' * (12 - k)
                    self.list1.append(y)
                self.text1.insert(END, self.list1)
                self.text1.insert(END, '\n')
                self.list1 = []
        elif self.III == True:
            self.framesh()
            self.text1.delete(1.0, END)
            self.list1 = []
            for i in range(1, self.nurse3.max_row + 1):
                for j in range(1, self.nurse3.max_column + 1):
                    k = len(str(self.nurse3.cell(row=i, column=j).value))
                    y = str(self.nurse3.cell(row=i, column=j).value) + ' ' * (
                        12 - k)
                    self.list1.append(y)
                self.text1.insert(END, self.list1)
                self.text1.insert(END, '\n')
                self.list1 = []
        elif self.IIII == True:
            self.framesh()
            self.text1.delete(1.0, END)
            self.list1 = []
            for i in range(1, self.laboratorist3.max_row + 1):
                for j in range(1, self.laboratorist3.max_column + 1):
                    k = len(str(self.laboratorist3.cell(row=i, column=j).value)
                        )
                    y = str(self.laboratorist3.cell(row=i, column=j).value
                        ) + ' ' * (12 - k)
                    self.list1.append(y)
                self.text1.insert(END, self.list1)
                self.text1.insert(END, '\n')
                self.list1 = []
        elif self.IIIII == True:
            self.framesh()
            self.text1.delete(1.0, END)
            self.list1 = []
            for i in range(1, self.pharmacist3.max_row + 1):
                for j in range(1, self.pharmacist3.max_column + 1):
                    k = len(str(self.pharmacist3.cell(row=i, column=j).value))
                    y = str(self.pharmacist3.cell(row=i, column=j).value
                        ) + ' ' * (12 - k)
                    self.list1.append(y)
                self.text1.insert(END, self.list1)
                self.text1.insert(END, '\n')
                self.list1 = []
        elif self.IIIIII == True:
            self.framesh()
            self.text1.delete(1.0, END)
            self.list1 = []
            for i in range(1, self.accountant3.max_row + 1):
                for j in range(1, self.accountant3.max_column + 1):
                    k = len(str(self.accountant3.cell(row=i, column=j).value))
                    y = str(self.accountant3.cell(row=i, column=j).value
                        ) + ' ' * (12 - k)
                    self.list1.append(y)
                self.text1.insert(END, self.list1)
                self.text1.insert(END, '\n')
                self.list1 = []
        elif self.II == True:
            self.framesh()
            self.text1.delete(1.0, END)
            self.list1 = []
            for i in range(1, self.doctor3.max_row + 1):
                for j in range(1, self.doctor3.max_column + 1):
                    k = len(str(self.doctor3.cell(row=i, column=j).value))
                    y = str(self.doctor3.cell(row=i, column=j).value) + ' ' * (
                        12 - k)
                    self.list1.append(y)
                self.text1.insert(END, self.list1)
                self.text1.insert(END, '\n')
                self.list1 = []
        elif self.I == True:
            self.framesh()
            self.text1.delete(1.0, END)
            self.list1 = []
            for i in range(1, self.patient3.max_row + 1):
                for j in range(1, self.patient3.max_column + 1):
                    k = len(str(self.patient3.cell(row=i, column=j).value))
                    y = str(self.patient3.cell(row=i, column=j).value
                        ) + ' ' * (12 - k)
                    self.list1.append(y)
                self.text1.insert(END, self.list1)
                self.text1.insert(END, '\n')
                self.list1 = []
        elif self.III == True:
            self.framesh()
            self.text1.delete(1.0, END)
            self.list1 = []
            for i in range(1, self.nurse3.max_row + 1):
                for j in range(1, self.nurse3.max_column + 1):
                    k = len(str(self.nurse3.cell(row=i, column=j).value))
                    y = str(self.nurse3.cell(row=i, column=j).value) + ' ' * (
                        12 - k)
                    self.list1.append(y)
                self.text1.insert(END, self.list1)
                self.text1.insert(END, '\n')
                self.list1 = []
        elif self.IIII == True:
            self.framesh()
            self.text1.delete(1.0, END)
            self.list1 = []
            for i in range(1, self.laboratorist3.max_row + 1):
                for j in range(1, self.laboratorist3.max_column + 1):
                    k = len(str(self.laboratorist3.cell(row=i, column=j).value)
                        )
                    y = str(self.laboratorist3.cell(row=i, column=j).value
                        ) + ' ' * (12 - k)
                    self.list1.append(y)
                self.text1.insert(END, self.list1)
                self.text1.insert(END, '\n')
                self.list1 = []
        elif self.IIIII == True:
            self.framesh()
            self.text1.delete(1.0, END)
            self.list1 = []
            for i in range(1, self.pharmacist3.max_row + 1):
                for j in range(1, self.pharmacist3.max_column + 1):
                    k = len(str(self.pharmacist3.cell(row=i, column=j).value))
                    y = str(self.pharmacist3.cell(row=i, column=j).value
                        ) + ' ' * (12 - k)
                    self.list1.append(y)
                self.text1.insert(END, self.list1)
                self.text1.insert(END, '\n')
                self.list1 = []
        elif self.IIIIII == True:
            self.framesh()
            self.text1.delete(1.0, END)
            self.list1 = []
            for i in range(1, self.accountant3.max_row + 1):
                for j in range(1, self.accountant3.max_column + 1):
                    k = len(str(self.accountant3.cell(row=i, column=j).value))
                    y = str(self.accountant3.cell(row=i, column=j).value
                        ) + ' ' * (12 - k)
                    self.list1.append(y)
                self.text1.insert(END, self.list1)
                self.text1.insert(END, '\n')
                self.list1 = []

    def framesdoc1(self):
        self.frame1.pack_forget()
        self.frame2.pack_forget()
        self.frame3.pack_forget()
        self.frame4.pack_forget()
        self.frame5.pack_forget()
        self.frame6.pack_forget()
        self.frame7.pack_forget()
        self.frame8.pack_forget()
        self.frameacc.pack_forget()
        self.framedoc2.pack_forget()
        self.framedoc3.pack_forget()
        self.framenur1.pack_forget()
        self.framenur2.pack_forget()
        self.framepharm.pack_forget()
        self.framepass.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.framedoc1.pack()

    def framesdoc2(self):
        self.frame1.pack_forget()
        self.frame2.pack_forget()
        self.frame3.pack_forget()
        self.frame4.pack_forget()
        self.frame5.pack_forget()
        self.frame6.pack_forget()
        self.frame7.pack_forget()
        self.frame8.pack_forget()
        self.frameacc.pack_forget()
        self.framedoc1.pack_forget()
        self.framedoc3.pack_forget()
        self.framenur1.pack_forget()
        self.framenur2.pack_forget()
        self.framepharm.pack_forget()
        self.framepass.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.framedoc2.pack()

    def framesdoc3(self):
        self.frame1.pack_forget()
        self.frame2.pack_forget()
        self.frame3.pack_forget()
        self.frame4.pack_forget()
        self.frame6.pack_forget()
        self.frame5.pack_forget()
        self.frame7.pack_forget()
        self.frame8.pack_forget()
        self.frameacc.pack_forget()
        self.framedoc1.pack_forget()
        self.framedoc2.pack_forget()
        self.framenur1.pack_forget()
        self.framenur2.pack_forget()
        self.framepharm.pack_forget()
        self.framepass.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.framedoc3.pack()
    <mask token>
    <mask token>

    def framesnur1(self):
        self.frame1.pack_forget()
        self.frame2.pack_forget()
        self.frame3.pack_forget()
        self.frame4.pack_forget()
        self.frame5.pack_forget()
        self.frame6.pack_forget()
        self.frame7.pack_forget()
        self.frame8.pack_forget()
        self.framedoc1.pack_forget()
        self.framedoc2.pack_forget()
        self.framedoc3.pack_forget()
        self.frameacc.pack_forget()
        self.framenur2.pack_forget()
        self.framepharm.pack_forget()
        self.framepass.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.framenur1.pack()

    def framesnur2(self):
        self.frame1.pack_forget()
        self.frame2.pack_forget()
        self.frame3.pack_forget()
        self.frame4.pack_forget()
        self.frame5.pack_forget()
        self.frame6.pack_forget()
        self.frame7.pack_forget()
        self.frame8.pack_forget()
        self.framedoc1.pack_forget()
        self.framedoc2.pack_forget()
        self.framedoc3.pack_forget()
        self.frameacc.pack_forget()
        self.framenur1.pack_forget()
        self.framepharm.pack_forget()
        self.framepass.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.framenur2.pack()

    def framesJ(self):
        if self.II == True:
            self.list1 = []
            for i in range(1, self.doctor3.max_row + 1):
                self.list1.append(str(self.doctor3.cell(row=i, column=2).value)
                    )
            if self.login3.get() in self.list1:
                self.f = self.list1.index(self.login3.get()) + 1
                if str(self.doctor3.cell(row=self.f, column=16).value
                    ) == self.pass3.get():
                    self.J = False
                    self.JJ = True
                    self.JJJ = False
                    self.JJJJ = False
                    self.JJJJJ = False
                    self.JJJJJJ = False
                    self.JJJJJJJ = False
                    self.framesdoc1()
                    self.entry112.delete(0, END)
                    self.entry223.delete(0, END)
                else:
                    tkinter.messagebox.showerror('showerror',
                        'Incorrect Password')
            else:
                tkinter.messagebox.showerror('showerror', 'Incorrect Password')
        elif self.I == True:
            self.list1 = []
            for i in range(1, self.patient3.max_row + 1):
                self.list1.append(str(self.patient3.cell(row=i, column=2).
                    value))
            if self.login2.get() in self.list1:
                self.f = self.list1.index(self.login2.get()) + 1
                if str(self.patient3.cell(row=self.f, column=10).value
                    ) == self.pass2.get():
                    self.J = False
                    self.JJ = False
                    self.JJJ = True
                    self.JJJJ = False
                    self.JJJJJ = False
                    self.JJJJJJ = False
                    self.JJJJJJJ = False
                    self.a1()
                    self.entry111.delete(0, END)
                    self.entry222.delete(0, END)
                else:
                    tkinter.messagebox.showerror('showerror',
                        'Incorrect Password')
            else:
                tkinter.messagebox.showerror('showerror', 'Incorrect Password')
        elif self.III == True:
            self.list1 = []
            for i in range(1, self.nurse3.max_row + 1):
                self.list1.append(str(self.nurse3.cell(row=i, column=2).value))
            if self.login4.get() in self.list1:
                self.f = self.list1.index(self.login4.get()) + 1
                if str(self.nurse3.cell(row=self.f, column=9).value
                    ) == self.pass4.get():
                    self.J = False
                    self.JJ = False
                    self.JJJ = False
                    self.JJJJ = True
                    self.JJJJJ = False
                    self.JJJJJJ = False
                    self.JJJJJJJ = False
                    self.framesnur1()
                    self.entry113.delete(0, END)
                    self.entry224.delete(0, END)
                else:
                    tkinter.messagebox.showerror('showerror',
                        'Incorrect Password')
            else:
                tkinter.messagebox.showerror('showerror', 'Incorrect Password')
        elif self.IIII == True:
            self.list1 = []
            for i in range(1, self.laboratorist3.max_row + 1):
                self.list1.append(str(self.laboratorist3.cell(row=i, column
                    =2).value))
            if self.login5.get() in self.list1:
                self.f = self.list1.index(self.login5.get()) + 1
                if str(self.laboratorist3.cell(row=self.f, column=9).value
                    ) == self.pass5.get():
                    self.J = False
                    self.JJ = False
                    self.JJJ = False
                    self.JJJJ = False
                    self.JJJJJ = True
                    self.JJJJJJ = False
                    self.JJJJJJJ = False
                    self.entry114.delete(0, END)
                    self.entry225.delete(0, END)
                    pass
                else:
                    tkinter.messagebox.showerror('showerror',
                        'Incorrect Password')
            else:
                tkinter.messagebox.showerror('showerror', 'Incorrect Password')
        elif self.IIIII == True:
            self.list1 = []
            for i in range(1, self.pharmacist3.max_row + 1):
                self.list1.append(str(self.pharmacist3.cell(row=i, column=2
                    ).value))
            if self.login6.get() in self.list1:
                self.f = self.list1.index(self.login6.get()) + 1
                if str(self.pharmacist3.cell(row=self.f, column=9).value
                    ) == self.pass6.get():
                    self.J = False
                    self.JJ = False
                    self.JJJ = False
                    self.JJJJ = False
                    self.JJJJJ = False
                    self.JJJJJJ = True
                    self.JJJJJJJ = False
                    self.framespharm()
                    self.entry115.delete(0, END)
                    self.entry226.delete(0, END)
                else:
                    tkinter.messagebox.showerror('showerror',
                        'Incorrect Password')
            else:
                tkinter.messagebox.showerror('showerror', 'Incorrect Password')
        elif self.IIIIII == True:
            self.list1 = []
            for i in range(1, self.accountant3.max_row + 1):
                self.list1.append(str(self.accountant3.cell(row=i, column=2
                    ).value))
            if self.login7.get() in self.list1:
                self.f = self.list1.index(self.login7.get()) + 1
                if str(self.accountant3.cell(row=self.f, column=9).value
                    ) == self.pass7.get():
                    self.J = False
                    self.JJ = False
                    self.JJJ = False
                    self.JJJJ = False
                    self.JJJJJ = False
                    self.JJJJJJ = False
                    self.JJJJJJJ = True
                    self.framesacc()
                    self.entry116.delete(0, END)
                    self.entry227.delete(0, END)
                else:
                    tkinter.messagebox.showerror('showerror',
                        'Incorrect Password')
            else:
                tkinter.messagebox.showerror('showerror', 'Incorrect Password')
    <mask token>

    def frames1(self):
        self.framedoc1.pack_forget()
        self.framedoc2.pack_forget()
        self.framedoc3.pack_forget()
        self.framenur1.pack_forget()
        self.framenur2.pack_forget()
        self.frameacc.pack_forget()
        self.framepharm.pack_forget()
        self.frame1.pack_forget()
        self.frame2.pack_forget()
        self.frame3.pack_forget()
        self.frame4.pack_forget()
        self.frame5.pack_forget()
        self.frame6.pack_forget()
        self.frame7.pack_forget()
        self.frame8.pack_forget()
        self.framea.pack_forget()
        self.frameb.pack_forget()
        self.framec.pack_forget()
        self.framed.pack_forget()
        self.framee.pack_forget()
        self.framef.pack_forget()
        self.frameI.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.framepass.pack_forget()
        self.frame1.pack()
        self.entry1.delete(0, END)
        self.entry2.delete(0, END)
        self.report()

    def framespass(self):
        self.framedoc1.pack_forget()
        self.framedoc2.pack_forget()
        self.framedoc3.pack_forget()
        self.framenur1.pack_forget()
        self.framenur2.pack_forget()
        self.frameacc.pack_forget()
        self.framepharm.pack_forget()
        self.frame1.pack_forget()
        self.frame2.pack_forget()
        self.frame3.pack_forget()
        self.frame4.pack_forget()
        self.frame5.pack_forget()
        self.frame6.pack_forget()
        self.frame7.pack_forget()
        self.frame8.pack_forget()
        self.framea.pack_forget()
        self.frameb.pack_forget()
        self.framec.pack_forget()
        self.framed.pack_forget()
        self.framee.pack_forget()
        self.framef.pack_forget()
        self.frameI.pack_forget()
        self.frame1.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.framepass.pack()

    def report(self):
        self.report3.cell(row=2, column=2).value = self.patient3.max_row - 1
        self.report3.cell(row=3, column=2).value = self.doctor3.max_row - 1
        self.report3.cell(row=4, column=2).value = self.nurse3.max_row - 1
        self.report3.cell(row=5, column=2
            ).value = self.laboratorist3.max_row - 1
        self.report3.cell(row=6, column=2).value = self.pharmacist3.max_row - 1
        self.report3.cell(row=7, column=2).value = self.accountant3.max_row - 1
        self.wb3.save('HRMS.xlsx')


<mask token>

<mask token>


class Hrms:

    def __init__(self):
        self.wb3 = openpyxl.load_workbook('HRMS.xlsx')
        self.patient3 = self.wb3.active
        self.patient3 = self.wb3['Patient']
        self.doctor3 = self.wb3['Doctor']
        self.nurse3 = self.wb3['Nurse']
        self.laboratorist3 = self.wb3['Laboratorist']
        self.pharmacist3 = self.wb3['Pharmacist']
        self.accountant3 = self.wb3['Accountant']
        self.appointment3 = self.wb3['Appointment']
        self.surgery3 = self.wb3['Surgeries']
        self.payment3 = self.wb3['Payments']
        self.medicine3 = self.wb3['Medicines']
        self.birth3 = self.wb3['Birth report']
        self.death3 = self.wb3['Death report']
        self.security3 = self.wb3['Security']
        self.report3 = self.wb3['Report']
        window = Tk()
        window.title('Hospital Record Management System')
        window.geometry('1350x490')
        window.resizable(0, 0)
        self.I = False
        self.II = False
        self.III = False
        self.IIII = False
        self.IIIII = False
        self.IIIIII = False
        self.J = False
        self.JJ = False
        self.JJJ = False
        self.JJJJ = False
        self.JJJJJ = False
        self.JJJJJJ = False
        self.frame1 = Frame(window)
        self.frame1.pack()
        label1 = Label(self.frame1, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=0, row=0, columnspan=3)
        label2 = Label(self.frame1, text='')
        label2.grid(column=4, row=0, pady=50)
        button1 = Button(self.frame1, text='Admin', bg='darkgrey', command=
            self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.frame1, text='Patient', bg='darkgrey',
            command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.frame1, text='Doctor', bg='darkgrey', command
            =self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.frame1, text='Nurse', bg='darkgrey', command=
            self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.frame1, text='Laboratorist', bg='darkgrey',
            command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.frame1, text='Pharmacist', bg='darkgrey',
            command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.frame1, text='Accountant', bg='darkgrey',
            command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button8 = Button(self.frame1, text='Home', bg='#444343', command=
            self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        self.frame2 = Frame(window)
        self.frame2.pack()
        label1 = Label(self.frame2, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.frame2, text='               ')
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.frame2, text='Admin', bg='lightgrey', command
            =self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.frame2, text='Patient', bg='darkgrey',
            command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.frame2, text='Doctor', bg='darkgrey', command
            =self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.frame2, text='Nurse', bg='darkgrey', command=
            self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.frame2, text='Laboratorist', bg='darkgrey',
            command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.frame2, text='Pharmacist', bg='darkgrey',
            command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.frame2, text='Accountant', bg='darkgrey',
            command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button8 = Button(self.frame2, text='Home', bg='#444343', command=
            self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        self.login1 = StringVar()
        self.pass1 = StringVar()
        label10 = Label(self.frame2, text='Username:', font=(
            'Times new roman', 12), width=10)
        label10.grid(column=3, row=2)
        self.entry1 = Entry(self.frame2, textvariable=self.login1)
        self.entry1.grid(column=4, row=2)
        label11 = Label(self.frame2, text='Password:', font=(
            'Times new roman', 12))
        label11.grid(column=3, row=3)
        self.entry2 = Entry(self.frame2, textvariable=self.pass1)
        self.entry2.grid(column=4, row=3)
        button8 = Button(self.frame2, text='Login ', bg='darkgrey', command
            =self.framesb)
        button8.grid(column=4, row=4, pady=10, ipadx=40)
        self.frame3 = Frame(window)
        self.frame3.pack()
        label1 = Label(self.frame3, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.frame3, text='               ')
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.frame3, text='Admin', bg='darkgrey', command=
            self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.frame3, text='Patient', bg='lightgrey',
            command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.frame3, text='Doctor', bg='darkgrey', command
            =self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.frame3, text='Nurse', bg='darkgrey', command=
            self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.frame3, text='Laboratorist', bg='darkgrey',
            command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.frame3, text='Pharmacist', bg='darkgrey',
            command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.frame3, text='Accountant', bg='darkgrey',
            command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button8 = Button(self.frame3, text='Home', bg='#444343', command=
            self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        self.login2 = StringVar()
        self.pass2 = StringVar()
        label10 = Label(self.frame3, text='Patient Id:', font=(
            'Times new roman', 12), width=15)
        label10.grid(column=3, row=2)
        self.entry111 = Entry(self.frame3, width=15, textvariable=self.login2)
        self.entry111.grid(column=4, row=2)
        label11 = Label(self.frame3, text='Password:', font=(
            'Times new roman', 12), width=15)
        label11.grid(column=3, row=3)
        self.entry222 = Entry(self.frame3, width=15, textvariable=self.pass2)
        self.entry222.grid(column=4, row=3)
        button1 = Button(self.frame3, text='Login', bg='darkgrey', command=
            self.framesJ)
        button1.grid(column=4, row=4, pady=10, ipadx=40)
        self.frame4 = Frame(window)
        self.frame4.pack()
        label1 = Label(self.frame4, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.frame4, text='               ')
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.frame4, text='Admin', bg='darkgrey', command=
            self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.frame4, text='Patient', bg='darkgrey',
            command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.frame4, text='Doctor', bg='lightgrey',
            command=self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.frame4, text='Nurse', bg='darkgrey', command=
            self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.frame4, text='Laboratorist', bg='darkgrey',
            command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.frame4, text='Pharmacist', bg='darkgrey',
            command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.frame4, text='Accountant', bg='darkgrey',
            command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button8 = Button(self.frame4, text='Home', bg='#444343', command=
            self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        self.login3 = StringVar()
        self.pass3 = StringVar()
        label10 = Label(self.frame4, text='Doctor Id:', font=(
            'Times new roman', 12), width=15)
        label10.grid(column=3, row=2)
        self.entry112 = Entry(self.frame4, width=15, textvariable=self.login3)
        self.entry112.grid(column=4, row=2)
        label11 = Label(self.frame4, text='Password:', font=(
            'Times new roman', 12), width=15)
        label11.grid(column=3, row=3)
        self.entry223 = Entry(self.frame4, width=15, textvariable=self.pass3)
        self.entry223.grid(column=4, row=3)
        button1 = Button(self.frame4, text='Login', bg='darkgrey', command=
            self.framesJ)
        button1.grid(column=4, row=4, pady=10, ipadx=40)
        self.frame5 = Frame(window)
        self.frame5.pack()
        label1 = Label(self.frame5, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.frame5, text='               ')
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.frame5, text='Admin', bg='darkgrey', command=
            self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.frame5, text='Patient', bg='darkgrey',
            command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.frame5, text='Doctor', bg='darkgrey', command
            =self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.frame5, text='Nurse', bg='lightgrey', command
            =self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.frame5, text='Laboratorist', bg='darkgrey',
            command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.frame5, text='Pharmacist', bg='darkgrey',
            command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.frame5, text='Accountant', bg='darkgrey',
            command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button8 = Button(self.frame5, text='Home', bg='#444343', command=
            self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        self.login4 = StringVar()
        self.pass4 = StringVar()
        label10 = Label(self.frame5, text='Nurse Id:', font=(
            'Times new roman', 12), width=15)
        label10.grid(column=3, row=2)
        self.entry113 = Entry(self.frame5, width=15, textvariable=self.login4)
        self.entry113.grid(column=4, row=2)
        label11 = Label(self.frame5, text='Password:', font=(
            'Times new roman', 12), width=15)
        label11.grid(column=3, row=3)
        self.entry224 = Entry(self.frame5, width=15, textvariable=self.pass4)
        self.entry224.grid(column=4, row=3)
        button1 = Button(self.frame5, text='Login', bg='darkgrey', command=
            self.framesJ)
        button1.grid(column=4, row=4, pady=10, ipadx=40)
        self.frame6 = Frame(window)
        self.frame6.pack()
        label1 = Label(self.frame6, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.frame6, text='               ')
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.frame6, text='Admin', bg='darkgrey', command=
            self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.frame6, text='Patient', bg='darkgrey',
            command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.frame6, text='Doctor', bg='darkgrey', command
            =self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.frame6, text='Nurse', bg='darkgrey', command=
            self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.frame6, text='Laboratorist', bg='lightgrey',
            command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.frame6, text='Pharmacist', bg='darkgrey',
            command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.frame6, text='Accountant', bg='darkgrey',
            command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button8 = Button(self.frame6, text='Home', bg='#444343', command=
            self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        self.login5 = StringVar()
        self.pass5 = StringVar()
        label10 = Label(self.frame6, text='Laboratorist Id:', font=(
            'Times new roman', 12), width=15)
        label10.grid(column=3, row=2)
        self.entry114 = Entry(self.frame6, width=15, textvariable=self.login5)
        self.entry114.grid(column=4, row=2)
        label11 = Label(self.frame6, text='Password:', font=(
            'Times new roman', 12), width=15)
        label11.grid(column=3, row=3)
        self.entry225 = Entry(self.frame6, width=15, textvariable=self.pass5)
        self.entry225.grid(column=4, row=3)
        button1 = Button(self.frame6, text='Login', bg='darkgrey', command=
            self.framesJ)
        button1.grid(column=4, row=4, pady=10, ipadx=40)
        self.frame7 = Frame(window)
        self.frame7.pack()
        label1 = Label(self.frame7, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.frame7, text='               ')
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.frame7, text='Admin', bg='darkgrey', command=
            self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.frame7, text='Patient', bg='darkgrey',
            command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.frame7, text='Doctor', bg='darkgrey', command
            =self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.frame7, text='Nurse', bg='darkgrey', command=
            self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.frame7, text='Laboratorist', bg='darkgrey',
            command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.frame7, text='Pharmacist', bg='lightgrey',
            command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.frame7, text='Accountant', bg='darkgrey',
            command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button8 = Button(self.frame7, text='Home', bg='#444343', command=
            self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        self.login6 = StringVar()
        self.pass6 = StringVar()
        label10 = Label(self.frame7, text='Pharmacist Id:', font=(
            'Times new roman', 12), width=15)
        label10.grid(column=3, row=2)
        self.entry115 = Entry(self.frame7, width=15, textvariable=self.login6)
        self.entry115.grid(column=4, row=2)
        label11 = Label(self.frame7, text='Password:', font=(
            'Times new roman', 12), width=15)
        label11.grid(column=3, row=3)
        self.entry226 = Entry(self.frame7, width=15, textvariable=self.pass6)
        self.entry226.grid(column=4, row=3)
        button1 = Button(self.frame7, text='Login', bg='darkgrey', command=
            self.framesJ)
        button1.grid(column=4, row=4, pady=10, ipadx=40)
        self.frame8 = Frame(window)
        self.frame8.pack()
        label1 = Label(self.frame8, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.frame8, text='               ')
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.frame8, text='Admin', bg='darkgrey', command=
            self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.frame8, text='Patient', bg='darkgrey',
            command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.frame8, text='Doctor', bg='darkgrey', command
            =self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.frame8, text='Nurse', bg='darkgrey', command=
            self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.frame8, text='Laboratorist', bg='darkgrey',
            command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.frame8, text='Pharmacist', bg='darkgrey',
            command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.frame8, text='Accountant', bg='lightgrey',
            command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button8 = Button(self.frame8, text='Home', bg='#444343', command=
            self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        self.login7 = StringVar()
        self.pass7 = StringVar()
        label10 = Label(self.frame8, text='Accountant Id:', font=(
            'Times new roman', 12), width=15)
        label10.grid(column=3, row=2)
        self.entry116 = Entry(self.frame8, width=15, textvariable=self.login7)
        self.entry116.grid(column=4, row=2)
        label11 = Label(self.frame8, text='Password:', font=(
            'Times new roman', 12), width=15)
        label11.grid(column=3, row=3)
        self.entry227 = Entry(self.frame8, width=15, textvariable=self.pass7)
        self.entry227.grid(column=4, row=3)
        button1 = Button(self.frame8, text='Login', bg='darkgrey', command=
            self.framesJ)
        button1.grid(column=4, row=4, pady=10, ipadx=40)
        self.framea = Frame(window)
        self.framea.pack()
        label1 = Label(self.framea, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.framea, text='               ')
        label2.grid(column=0, row=0, pady=50)
        labela = Label(self.framea, text='Admin', bg='#60a1f0')
        labela.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.framea, text='Patient', bg='darkgrey',
            command=self.framesb)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.framea, text='Doctor', bg='lightgrey',
            command=self.framesa)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.framea, text='Nurse', bg='darkgrey', command=
            self.framesc)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.framea, text='Laboratorist', bg='darkgrey',
            command=self.framesd)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.framea, text='Pharmacist', bg='darkgrey',
            command=self.framese)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.framea, text='Accountant', bg='darkgrey',
            command=self.framesf)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button7 = Button(self.framea, text='Appointments', bg='darkgrey',
            command=self.appoint)
        button7.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framea, text='Surgeries', bg='darkgrey',
            command=self.surg)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framea, text='Payments', bg='darkgrey',
            command=self.pay)
        button7.grid(column=3, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framea, text='Medicines', bg='darkgrey',
            command=self.medec)
        button7.grid(column=4, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framea, text='Birth report', bg='darkgrey',
            command=self.birthd)
        button7.grid(column=5, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framea, text='Death report', bg='darkgrey',
            command=self.deathd)
        button7.grid(column=6, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framea, text='Change Password', bg='darkgrey',
            command=self.framespass)
        button7.grid(column=7, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.framea, text='Home', bg='#444343', command=
            self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        label12 = Label(self.framea, text='1. Name:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=1)
        label12 = Label(self.framea, text='2. Doc Id:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=2)
        label12 = Label(self.framea, text='3. Age:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=3)
        label12 = Label(self.framea, text='4. Sex:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=4)
        label12 = Label(self.framea, text='5. Qualificatn:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=5)
        label12 = Label(self.framea, text='6. Speciality:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=6)
        label12 = Label(self.framea, text='7. Blood Type:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=7)
        label12 = Label(self.framea, text='8. Address:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=4, row=1)
        label12 = Label(self.framea, text='9. Phone num:', font=(
            'Times new roman', 12), width=15)
        label12.grid(column=4, row=2)
        label12 = Label(self.framea, text='10. Date of birth:', font=(
            'Times new roman', 12), width=15)
        label12.grid(column=4, row=3)
        label12 = Label(self.framea, text='11. Date of join:', font=(
            'Times new roman', 12), width=15)
        label12.grid(column=4, row=4)
        label12 = Label(self.framea, text='12. Salary:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=4, row=5)
        label12 = Label(self.framea, text='13. Working days:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=4, row=6)
        label12 = Label(self.framea, text='14. Timings:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=4, row=7)
        label12 = Label(self.framea, text='15. Office num:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=6, row=1)
        label12 = Label(self.framea, text='16. Password:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=6, row=2)
        self.name1 = StringVar()
        self.id1 = StringVar()
        self.age1 = StringVar()
        self.sex1 = StringVar()
        self.quality1 = StringVar()
        self.special1 = StringVar()
        self.bloodtype1 = StringVar()
        self.address1 = StringVar()
        self.phonenum1 = StringVar()
        self.dateb1 = StringVar()
        self.datej1 = StringVar()
        self.salary1 = StringVar()
        self.work1 = StringVar()
        self.time1 = StringVar()
        self.office1 = StringVar()
        self.password1 = StringVar()
        self.entry29 = Entry(self.framea, textvariable=self.name1)
        self.entry29.grid(column=3, row=1)
        self.entry30 = Entry(self.framea, textvariable=self.id1)
        self.entry30.grid(column=3, row=2)
        self.entry31 = Entry(self.framea, textvariable=self.age1)
        self.entry31.grid(column=3, row=3)
        self.entry32 = Entry(self.framea, textvariable=self.sex1)
        self.entry32.grid(column=3, row=4)
        self.entry33 = Entry(self.framea, textvariable=self.quality1)
        self.entry33.grid(column=3, row=5)
        self.entry34 = Entry(self.framea, textvariable=self.special1)
        self.entry34.grid(column=3, row=6)
        self.entry35 = Entry(self.framea, textvariable=self.bloodtype1)
        self.entry35.grid(column=3, row=7)
        self.entry36 = Entry(self.framea, textvariable=self.address1)
        self.entry36.grid(column=5, row=1)
        self.entry37 = Entry(self.framea, textvariable=self.phonenum1)
        self.entry37.grid(column=5, row=2)
        self.entry38 = Entry(self.framea, textvariable=self.dateb1)
        self.entry38.grid(column=5, row=3)
        self.entry39 = Entry(self.framea, textvariable=self.datej1)
        self.entry39.grid(column=5, row=4)
        self.entry40 = Entry(self.framea, textvariable=self.salary1)
        self.entry40.grid(column=5, row=5)
        self.entry41 = Entry(self.framea, textvariable=self.work1)
        self.entry41.grid(column=5, row=6)
        self.entry42 = Entry(self.framea, textvariable=self.time1)
        self.entry42.grid(column=5, row=7)
        self.entry43 = Entry(self.framea, textvariable=self.office1)
        self.entry43.grid(column=7, row=1)
        self.entry44 = Entry(self.framea, textvariable=self.password1)
        self.entry44.grid(column=7, row=2)
        button11 = Button(self.framea, text='Add Doctor', width=15, bg=
            'darkgrey', command=self.doctor)
        button11.grid(column=6, row=3)
        button12 = Button(self.framea, text='View Doctor List', width=15,
            bg='darkgrey', command=self.framesI)
        button12.grid(column=6, row=4)
        self.frameb = Frame(window)
        self.frameb.pack()
        label1 = Label(self.frameb, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.frameb, text='               ')
        label2.grid(column=0, row=0, pady=50)
        labela = Label(self.frameb, text='Admin', bg='#60a1f0')
        labela.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.frameb, text='Patient', bg='lightgrey',
            command=self.framesb)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.frameb, text='Doctor', bg='darkgrey', command
            =self.framesa)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.frameb, text='Nurse', bg='darkgrey', command=
            self.framesc)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.frameb, text='Laboratorist', bg='darkgrey',
            command=self.framesd)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.frameb, text='Pharmacist', bg='darkgrey',
            command=self.framese)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.frameb, text='Accountant', bg='darkgrey',
            command=self.framesf)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button7 = Button(self.frameb, text='Appointments', bg='darkgrey',
            command=self.appoint)
        button7.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.frameb, text='Surgeries', bg='darkgrey',
            command=self.surg)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.frameb, text='Payments', bg='darkgrey',
            command=self.pay)
        button7.grid(column=3, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.frameb, text='Medicines', bg='darkgrey',
            command=self.medec)
        button7.grid(column=4, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.frameb, text='Birth report', bg='darkgrey',
            command=self.birthd)
        button7.grid(column=5, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.frameb, text='Death report', bg='darkgrey',
            command=self.deathd)
        button7.grid(column=6, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.frameb, text='Change Password', bg='darkgrey',
            command=self.framespass)
        button7.grid(column=7, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.frameb, text='Home', bg='#444343', command=
            self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        label12 = Label(self.frameb, text='1. Name:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=1)
        label12 = Label(self.frameb, text='2. Patient Id:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=2)
        label12 = Label(self.frameb, text='3. Age:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=3)
        label12 = Label(self.frameb, text='4. Sex:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=4)
        label12 = Label(self.frameb, text='5. Blood Type:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=5)
        label12 = Label(self.frameb, text='6. Problem:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=6)
        label12 = Label(self.frameb, text='7. Address:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=7)
        label12 = Label(self.frameb, text='8. Phone num:', font=(
            'Times new roman', 12), width=15)
        label12.grid(column=4, row=1)
        label12 = Label(self.frameb, text='9. Date of join:', font=(
            'Times new roman', 12), width=15)
        label12.grid(column=4, row=2)
        label12 = Label(self.frameb, text='10. Password:', font=(
            'Times new roman', 12), width=15)
        label12.grid(column=4, row=3)
        self.name2 = StringVar()
        self.id2 = StringVar()
        self.age2 = StringVar()
        self.sex2 = StringVar()
        self.bloodtype2 = StringVar()
        self.problem2 = StringVar()
        self.address2 = StringVar()
        self.phonenum2 = StringVar()
        self.datej2 = StringVar()
        self.password2 = StringVar()
        self.entry19 = Entry(self.frameb, textvariable=self.name2)
        self.entry19.grid(column=3, row=1)
        self.entry20 = Entry(self.frameb, textvariable=self.id2)
        self.entry20.grid(column=3, row=2)
        self.entry21 = Entry(self.frameb, textvariable=self.age2)
        self.entry21.grid(column=3, row=3)
        self.entry22 = Entry(self.frameb, textvariable=self.sex2)
        self.entry22.grid(column=3, row=4)
        self.entry23 = Entry(self.frameb, textvariable=self.bloodtype2)
        self.entry23.grid(column=3, row=5)
        self.entry24 = Entry(self.frameb, textvariable=self.problem2)
        self.entry24.grid(column=3, row=6)
        self.entry25 = Entry(self.frameb, textvariable=self.address2)
        self.entry25.grid(column=3, row=7)
        self.entry26 = Entry(self.frameb, textvariable=self.phonenum2)
        self.entry26.grid(column=5, row=1)
        self.entry27 = Entry(self.frameb, textvariable=self.datej2)
        self.entry27.grid(column=5, row=2)
        self.entry28 = Entry(self.frameb, textvariable=self.password2)
        self.entry28.grid(column=5, row=3)
        button9 = Button(self.frameb, text='Add Patient', width=15, bg=
            'darkgrey', command=self.patient)
        button9.grid(column=4, row=4)
        button10 = Button(self.frameb, text='View Patient List', width=15,
            bg='darkgrey', command=self.framesI)
        button10.grid(column=4, row=5)
        self.framec = Frame(window)
        self.framec.pack()
        label1 = Label(self.framec, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.framec, text='               ')
        label2.grid(column=0, row=0, pady=50)
        labela = Label(self.framec, text='Admin', bg='#60a1f0')
        labela.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.framec, text='Patient', bg='darkgrey',
            command=self.framesb)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.framec, text='Doctor', bg='darkgrey', command
            =self.framesa)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.framec, text='Nurse', bg='lightgrey', command
            =self.framesc)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.framec, text='Laboratorist', bg='darkgrey',
            command=self.framesd)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.framec, text='Pharmacist', bg='darkgrey',
            command=self.framese)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.framec, text='Accountant', bg='darkgrey',
            command=self.framesf)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button7 = Button(self.framec, text='Appointments', bg='darkgrey',
            command=self.appoint)
        button7.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framec, text='Surgeries', bg='darkgrey',
            command=self.surg)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framec, text='Payments', bg='darkgrey',
            command=self.pay)
        button7.grid(column=3, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framec, text='Medicines', bg='darkgrey',
            command=self.medec)
        button7.grid(column=4, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framec, text='Birth report', bg='darkgrey',
            command=self.birthd)
        button7.grid(column=5, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framec, text='Death report', bg='darkgrey',
            command=self.deathd)
        button7.grid(column=6, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framec, text='Change Password', bg='darkgrey',
            command=self.framespass)
        button7.grid(column=7, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.framec, text='Home', bg='#444343', command=
            self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        label12 = Label(self.framec, text='1. Name:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=1)
        label12 = Label(self.framec, text='2. Nurse Id:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=2)
        label12 = Label(self.framec, text='3. Age:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=3)
        label12 = Label(self.framec, text='4. Sex:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=4)
        label12 = Label(self.framec, text='5. Blood Type:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=5)
        label12 = Label(self.framec, text='6. Address:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=6)
        label12 = Label(self.framec, text='7. Phone num:', font=(
            'Times new roman', 12), width=15)
        label12.grid(column=2, row=7)
        label12 = Label(self.framec, text='8. Date of join:', font=(
            'Times new roman', 12), width=15)
        label12.grid(column=4, row=1)
        label12 = Label(self.framec, text='9. Password:', font=(
            'Times new roman', 12), width=15)
        label12.grid(column=4, row=2)
        self.name3 = StringVar()
        self.id3 = StringVar()
        self.age3 = StringVar()
        self.sex3 = StringVar()
        self.bloodtype3 = StringVar()
        self.address3 = StringVar()
        self.phonenum3 = StringVar()
        self.datej3 = StringVar()
        self.password3 = StringVar()
        entry45 = Entry(self.framec, textvariable=self.name3)
        entry45.grid(column=3, row=1)
        entry46 = Entry(self.framec, textvariable=self.id3)
        entry46.grid(column=3, row=2)
        entry47 = Entry(self.framec, textvariable=self.age3)
        entry47.grid(column=3, row=3)
        entry48 = Entry(self.framec, textvariable=self.sex3)
        entry48.grid(column=3, row=4)
        entry49 = Entry(self.framec, textvariable=self.bloodtype3)
        entry49.grid(column=3, row=5)
        entry50 = Entry(self.framec, textvariable=self.address3)
        entry50.grid(column=3, row=6)
        entry51 = Entry(self.framec, textvariable=self.phonenum3)
        entry51.grid(column=3, row=7)
        entry52 = Entry(self.framec, textvariable=self.datej3)
        entry52.grid(column=5, row=1)
        entry53 = Entry(self.framec, textvariable=self.password3)
        entry53.grid(column=5, row=2)
        button9 = Button(self.framec, text='Add Nurse', width=15, bg=
            'darkgrey', command=self.nurse)
        button9.grid(column=4, row=3)
        button10 = Button(self.framec, text='View Nurse List', width=15, bg
            ='darkgrey', command=self.framesI)
        button10.grid(column=4, row=4)
        self.framed = Frame(window)
        self.framed.pack()
        label1 = Label(self.framed, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.framed, text='               ')
        label2.grid(column=0, row=0, pady=50)
        labela = Label(self.framed, text='Admin', bg='#60a1f0')
        labela.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.framed, text='Patient', bg='darkgrey',
            command=self.framesb)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.framed, text='Doctor', bg='darkgrey', command
            =self.framesa)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.framed, text='Nurse', bg='darkgrey', command=
            self.framesc)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.framed, text='Laboratorist', bg='lightgrey',
            command=self.framesd)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.framed, text='Pharmacist', bg='darkgrey',
            command=self.framese)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.framed, text='Accountant', bg='darkgrey',
            command=self.framesf)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button7 = Button(self.framed, text='Appointments', bg='darkgrey',
            command=self.appoint)
        button7.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framed, text='Surgeries', bg='darkgrey',
            command=self.surg)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framed, text='Payments', bg='darkgrey',
            command=self.pay)
        button7.grid(column=3, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framed, text='Medicines', bg='darkgrey',
            command=self.medec)
        button7.grid(column=4, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framed, text='Birth report', bg='darkgrey',
            command=self.birthd)
        button7.grid(column=5, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framed, text='Death report', bg='darkgrey',
            command=self.deathd)
        button7.grid(column=6, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framed, text='Change Password', bg='darkgrey',
            command=self.framespass)
        button7.grid(column=7, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.framed, text='Home', bg='#444343', command=
            self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        label12 = Label(self.framed, text='1. Name:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=1)
        label12 = Label(self.framed, text='2. Laboratorist Id:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=2)
        label12 = Label(self.framed, text='3. Age:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=3)
        label12 = Label(self.framed, text='4. Sex:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=4)
        label12 = Label(self.framed, text='5. Blood Type:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=5)
        label12 = Label(self.framed, text='6. Address:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=6)
        label12 = Label(self.framed, text='7. Phone num:', font=(
            'Times new roman', 12), width=15)
        label12.grid(column=2, row=7)
        label12 = Label(self.framed, text='8. Date of join:', font=(
            'Times new roman', 12), width=15)
        label12.grid(column=4, row=1)
        label12 = Label(self.framed, text='9. Password:', font=(
            'Times new roman', 12), width=15)
        label12.grid(column=4, row=2)
        self.name4 = StringVar()
        self.id4 = StringVar()
        self.age4 = StringVar()
        self.sex4 = StringVar()
        self.bloodtype4 = StringVar()
        self.address4 = StringVar()
        self.phonenum4 = StringVar()
        self.datej4 = StringVar()
        self.password4 = StringVar()
        entry54 = Entry(self.framed, textvariable=self.name4)
        entry54.grid(column=3, row=1)
        entry55 = Entry(self.framed, textvariable=self.id4)
        entry55.grid(column=3, row=2)
        entry56 = Entry(self.framed, textvariable=self.age4)
        entry56.grid(column=3, row=3)
        entry57 = Entry(self.framed, textvariable=self.sex4)
        entry57.grid(column=3, row=4)
        entry58 = Entry(self.framed, textvariable=self.bloodtype4)
        entry58.grid(column=3, row=5)
        entry59 = Entry(self.framed, textvariable=self.address4)
        entry59.grid(column=3, row=6)
        entry60 = Entry(self.framed, textvariable=self.phonenum4)
        entry60.grid(column=3, row=7)
        entry61 = Entry(self.framed, textvariable=self.datej4)
        entry61.grid(column=5, row=1)
        entry62 = Entry(self.framed, textvariable=self.password4)
        entry62.grid(column=5, row=2)
        button9 = Button(self.framed, text='Add Lab.st', width=15, bg=
            'darkgrey', command=self.laboratorist)
        button9.grid(column=4, row=3)
        button10 = Button(self.framed, text='View Lab.st List', width=15,
            bg='darkgrey', command=self.framesI)
        button10.grid(column=4, row=4)
        self.framee = Frame(window)
        self.framee.pack()
        label1 = Label(self.framee, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.framee, text='               ')
        label2.grid(column=0, row=0, pady=50)
        labela = Label(self.framee, text='Admin', bg='#60a1f0')
        labela.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.framee, text='Patient', bg='darkgrey',
            command=self.framesb)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.framee, text='Doctor', bg='darkgrey', command
            =self.framesa)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.framee, text='Nurse', bg='darkgrey', command=
            self.framesc)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.framee, text='Laboratorist', bg='darkgrey',
            command=self.framesd)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.framee, text='Pharmacist', bg='lightgrey',
            command=self.framese)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.framee, text='Accountant', bg='darkgrey',
            command=self.framesf)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button7 = Button(self.framee, text='Appointments', bg='darkgrey',
            command=self.appoint)
        button7.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framee, text='Surgeries', bg='darkgrey',
            command=self.surg)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framee, text='Payments', bg='darkgrey',
            command=self.pay)
        button7.grid(column=3, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framee, text='Medicines', bg='darkgrey',
            command=self.medec)
        button7.grid(column=4, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framee, text='Birth report', bg='darkgrey',
            command=self.birthd)
        button7.grid(column=5, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framee, text='Death report', bg='darkgrey',
            command=self.deathd)
        button7.grid(column=6, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framee, text='Change Password', bg='darkgrey',
            command=self.framespass)
        button7.grid(column=7, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.framee, text='Home', bg='#444343', command=
            self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        label12 = Label(self.framee, text='1. Name:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=1)
        label12 = Label(self.framee, text='2. Pharmacist Id:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=2)
        label12 = Label(self.framee, text='3. Age:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=3)
        label12 = Label(self.framee, text='4. Sex:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=4)
        label12 = Label(self.framee, text='5. Blood Type:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=5)
        label12 = Label(self.framee, text='6. Address:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=6)
        label12 = Label(self.framee, text='7. Phone num:', font=(
            'Times new roman', 12), width=15)
        label12.grid(column=2, row=7)
        label12 = Label(self.framee, text='8. Date of join:', font=(
            'Times new roman', 12), width=15)
        label12.grid(column=4, row=1)
        label12 = Label(self.framee, text='9. Password:', font=(
            'Times new roman', 12), width=15)
        label12.grid(column=4, row=2)
        self.name5 = StringVar()
        self.id5 = StringVar()
        self.age5 = StringVar()
        self.sex5 = StringVar()
        self.bloodtype5 = StringVar()
        self.address5 = StringVar()
        self.phonenum5 = StringVar()
        self.datej5 = StringVar()
        self.password5 = StringVar()
        entry63 = Entry(self.framee, textvariable=self.name5)
        entry63.grid(column=3, row=1)
        entry64 = Entry(self.framee, textvariable=self.id5)
        entry64.grid(column=3, row=2)
        entry65 = Entry(self.framee, textvariable=self.age5)
        entry65.grid(column=3, row=3)
        entry66 = Entry(self.framee, textvariable=self.sex5)
        entry66.grid(column=3, row=4)
        entry67 = Entry(self.framee, textvariable=self.bloodtype5)
        entry67.grid(column=3, row=5)
        entry68 = Entry(self.framee, textvariable=self.address5)
        entry68.grid(column=3, row=6)
        entry69 = Entry(self.framee, textvariable=self.phonenum5)
        entry69.grid(column=3, row=7)
        entry70 = Entry(self.framee, textvariable=self.datej5)
        entry70.grid(column=5, row=1)
        entry71 = Entry(self.framee, textvariable=self.password5)
        entry71.grid(column=5, row=2)
        button9 = Button(self.framee, text='Add Pharm.st', width=15, bg=
            'darkgrey', command=self.pharmacist)
        button9.grid(column=4, row=3)
        button10 = Button(self.framee, text='View Pharm.st List', width=15,
            bg='darkgrey', command=self.framesI)
        button10.grid(column=4, row=4)
        self.framef = Frame(window)
        self.framef.pack()
        label1 = Label(self.framef, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.framef, text='               ')
        label2.grid(column=0, row=0, pady=50)
        labela = Label(self.framef, text='Admin', bg='#60a1f0')
        labela.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.framef, text='Patient', bg='darkgrey',
            command=self.framesb)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.framef, text='Doctor', bg='darkgrey', command
            =self.framesa)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.framef, text='Nurse', bg='darkgrey', command=
            self.framesc)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.framef, text='Laboratorist', bg='darkgrey',
            command=self.framesd)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.framef, text='Pharmacist', bg='darkgrey',
            command=self.framese)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.framef, text='Accountant', bg='lightgrey',
            command=self.framesf)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button7 = Button(self.framef, text='Appointments', bg='darkgrey',
            command=self.appoint)
        button7.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framef, text='Surgeries', bg='darkgrey',
            command=self.surg)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framef, text='Payments', bg='darkgrey',
            command=self.pay)
        button7.grid(column=3, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framef, text='Medicines', bg='darkgrey',
            command=self.medec)
        button7.grid(column=4, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framef, text='Birth report', bg='darkgrey',
            command=self.birthd)
        button7.grid(column=5, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framef, text='Death report', bg='darkgrey',
            command=self.deathd)
        button7.grid(column=6, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framef, text='Change Password', bg='darkgrey',
            command=self.framespass)
        button7.grid(column=7, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.framef, text='Home', bg='#444343', command=
            self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        label12 = Label(self.framef, text='1. Name:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=1)
        label12 = Label(self.framef, text='2. Accountant Id:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=2)
        label12 = Label(self.framef, text='3. Age:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=3)
        label12 = Label(self.framef, text='4. Sex:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=4)
        label12 = Label(self.framef, text='5. Blood Type:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=5)
        label12 = Label(self.framef, text='6. Address:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=6)
        label12 = Label(self.framef, text='7. Phone num:', font=(
            'Times new roman', 12), width=15)
        label12.grid(column=2, row=7)
        label12 = Label(self.framef, text='8. Date of join:', font=(
            'Times new roman', 12), width=15)
        label12.grid(column=4, row=1)
        label12 = Label(self.framef, text='9. Password:', font=(
            'Times new roman', 12), width=15)
        label12.grid(column=4, row=2)
        self.name6 = StringVar()
        self.id6 = StringVar()
        self.age6 = StringVar()
        self.sex6 = StringVar()
        self.bloodtype6 = StringVar()
        self.address6 = StringVar()
        self.phonenum6 = StringVar()
        self.datej6 = StringVar()
        self.password6 = StringVar()
        entry72 = Entry(self.framef, textvariable=self.name6)
        entry72.grid(column=3, row=1)
        entry73 = Entry(self.framef, textvariable=self.id6)
        entry73.grid(column=3, row=2)
        entry74 = Entry(self.framef, textvariable=self.age6)
        entry74.grid(column=3, row=3)
        entry75 = Entry(self.framef, textvariable=self.sex6)
        entry75.grid(column=3, row=4)
        entry76 = Entry(self.framef, textvariable=self.bloodtype6)
        entry76.grid(column=3, row=5)
        entry77 = Entry(self.framef, textvariable=self.address6)
        entry77.grid(column=3, row=6)
        entry78 = Entry(self.framef, textvariable=self.phonenum6)
        entry78.grid(column=3, row=7)
        entry79 = Entry(self.framef, textvariable=self.datej6)
        entry79.grid(column=5, row=1)
        entry80 = Entry(self.framef, textvariable=self.password6)
        entry80.grid(column=5, row=2)
        button9 = Button(self.framef, text='Add Account.t', width=15, bg=
            'darkgrey', command=self.accountant)
        button9.grid(column=4, row=3)
        button10 = Button(self.framef, text='View Account.t List', width=15,
            bg='darkgrey', command=self.framesI)
        button10.grid(column=4, row=4)
        self.frameI = Frame(window)
        self.frameI.pack()
        label1 = Label(self.frameI, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.frameI, text='               ')
        label2.grid(column=0, row=0, pady=50)
        labela = Label(self.frameI, text='Admin', bg='#60a1f0')
        labela.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.frameI, text='Patient', bg='darkgrey',
            command=self.framesb)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.frameI, text='Doctor', bg='darkgrey', command
            =self.framesa)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.frameI, text='Nurse', bg='darkgrey', command=
            self.framesc)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.frameI, text='Laboratorist', bg='darkgrey',
            command=self.framesd)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.frameI, text='Pharmacist', bg='darkgrey',
            command=self.framese)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.frameI, text='Accountant', bg='darkgrey',
            command=self.framesf)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button7 = Button(self.frameI, text='Appointments', bg='darkgrey',
            command=self.appoint)
        button7.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.frameI, text='Surgeries', bg='darkgrey',
            command=self.surg)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.frameI, text='Payments', bg='darkgrey',
            command=self.pay)
        button7.grid(column=3, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.frameI, text='Medicines', bg='darkgrey',
            command=self.medec)
        button7.grid(column=4, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.frameI, text='Birth report', bg='darkgrey',
            command=self.birthd)
        button7.grid(column=5, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.frameI, text='Death report', bg='darkgrey',
            command=self.deathd)
        button7.grid(column=6, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.frameI, text='Change Password', bg='darkgrey',
            command=self.framespass)
        button7.grid(column=7, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.frameI, text='Home', bg='#444343', command=
            self.framespass)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        self.text1 = Text(self.frameI, height=20, width=193, font=(
            'Times new roman', 9), bg='lightgrey')
        self.text1.grid(column=1, row=1, columnspan=8, rowspan=7)
        self.framedoc1 = Frame(window)
        self.framedoc1.pack()
        label1 = Label(self.framedoc1, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.framedoc1, text='               ')
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.framedoc1, text='Admin', bg='darkgrey',
            command=self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.framedoc1, text='Patient', bg='darkgrey',
            command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.framedoc1, text='Doctor', bg='darkgrey',
            command=self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.framedoc1, text='Nurse', bg='darkgrey',
            command=self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.framedoc1, text='Laboratorist', bg='darkgrey',
            command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.framedoc1, text='Pharmacist', bg='darkgrey',
            command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.framedoc1, text='Accountant', bg='darkgrey',
            command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button8 = Button(self.framedoc1, text='Appointments', bg=
            'lightgrey', command=self.framesdoc1)
        button8.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framedoc1, text='Surgeries', bg='darkgrey',
            command=self.framesdoc2)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framedoc1, text='Medicines', bg='darkgrey',
            command=self.framesdoc3)
        button7.grid(column=3, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framedoc1, text='Add Appointment', bg=
            'darkgrey', command=self.appointment)
        button7.grid(column=4, row=3, padx=10, pady=10, ipadx=30, columnspan=2)
        button7 = Button(self.framedoc1, text='View Appointments', bg=
            'darkgrey', command=self.appoint1)
        button7.grid(column=4, row=4, padx=10, pady=10, ipadx=30, columnspan=2)
        button7 = Button(self.framedoc1, text='Change Password', bg=
            'darkgrey', command=self.framespass)
        button7.grid(column=4, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.framedoc1, text='Home', bg='#444343', command
            =self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        label12 = Label(self.framedoc1, text='1. Patient Name:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=1)
        label12 = Label(self.framedoc1, text='2. Patient Id:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=2)
        label12 = Label(self.framedoc1, text='3. problem:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=3)
        label12 = Label(self.framedoc1, text='4. day:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=4)
        label12 = Label(self.framedoc1, text='5. Time:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=5)
        label12 = Label(self.framedoc1, text='6. Status:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=6)
        label12 = Label(self.framedoc1, text='7. Doctor Ic:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=7)
        self.app1 = StringVar()
        self.app2 = StringVar()
        self.app3 = StringVar()
        self.app4 = StringVar()
        self.app5 = StringVar()
        self.app6 = StringVar()
        self.app7 = StringVar()
        entry45 = Entry(self.framedoc1, textvariable=self.app1)
        entry45.grid(column=3, row=1)
        entry46 = Entry(self.framedoc1, textvariable=self.app2)
        entry46.grid(column=3, row=2)
        entry47 = Entry(self.framedoc1, textvariable=self.app3)
        entry47.grid(column=3, row=3)
        entry48 = Entry(self.framedoc1, textvariable=self.app4)
        entry48.grid(column=3, row=4)
        entry49 = Entry(self.framedoc1, textvariable=self.app5)
        entry49.grid(column=3, row=5)
        entry50 = Entry(self.framedoc1, textvariable=self.app6)
        entry50.grid(column=3, row=6)
        entry51 = Entry(self.framedoc1, textvariable=self.app7)
        entry51.grid(column=3, row=7)
        self.framedoc2 = Frame(window)
        self.framedoc2.pack()
        label1 = Label(self.framedoc2, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.framedoc2, text='               ')
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.framedoc2, text='Admin', bg='darkgrey',
            command=self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.framedoc2, text='Patient', bg='darkgrey',
            command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.framedoc2, text='Doctor', bg='darkgrey',
            command=self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.framedoc2, text='Nurse', bg='darkgrey',
            command=self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.framedoc2, text='Laboratorist', bg='darkgrey',
            command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.framedoc2, text='Pharmacist', bg='darkgrey',
            command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.framedoc2, text='Accountant', bg='darkgrey',
            command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button8 = Button(self.framedoc2, text='Appointments', bg='darkgrey',
            command=self.framesdoc1)
        button8.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framedoc2, text='Surgeries', bg='lightgrey',
            command=self.framesdoc2)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framedoc2, text='Medicines', bg='darkgrey',
            command=self.framesdoc3)
        button7.grid(column=3, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framedoc2, text='Add Operations', bg=
            'darkgrey', command=self.surg1)
        button7.grid(column=4, row=3, padx=10, pady=10, ipadx=30, columnspan=2)
        button7 = Button(self.framedoc2, text='View Operations', bg=
            'darkgrey', command=self.framesda)
        button7.grid(column=4, row=4, padx=10, pady=10, ipadx=30, columnspan=2)
        button7 = Button(self.framedoc2, text='Change Password', bg=
            'darkgrey', command=self.framespass)
        button7.grid(column=4, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.framedoc2, text='Home', bg='#444343', command
            =self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        label12 = Label(self.framedoc2, text='1. Operation Name:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=1)
        label12 = Label(self.framedoc2, text='2. Patient Id:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=2)
        label12 = Label(self.framedoc2, text='3. Date:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=3)
        label12 = Label(self.framedoc2, text='4. Cost:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=4)
        label12 = Label(self.framedoc2, text='5. Doctor Id:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=5)
        self.sur1 = StringVar()
        self.sur2 = StringVar()
        self.sur3 = StringVar()
        self.sur4 = StringVar()
        self.sur5 = StringVar()
        self.sur6 = StringVar()
        self.sur7 = StringVar()
        entry45 = Entry(self.framedoc2, textvariable=self.sur1)
        entry45.grid(column=3, row=1)
        entry46 = Entry(self.framedoc2, textvariable=self.sur2)
        entry46.grid(column=3, row=2)
        entry47 = Entry(self.framedoc2, textvariable=self.sur3)
        entry47.grid(column=3, row=3)
        entry48 = Entry(self.framedoc2, textvariable=self.sur4)
        entry48.grid(column=3, row=4)
        entry49 = Entry(self.framedoc2, textvariable=self.sur5)
        entry49.grid(column=3, row=5)
        self.framedoc3 = Frame(window)
        self.framedoc3.pack()
        label1 = Label(self.framedoc3, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.framedoc3, text='               ')
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.framedoc3, text='Admin', bg='darkgrey',
            command=self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.framedoc3, text='Patient', bg='darkgrey',
            command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.framedoc3, text='Doctor', bg='darkgrey',
            command=self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.framedoc3, text='Nurse', bg='darkgrey',
            command=self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.framedoc3, text='Laboratorist', bg='darkgrey',
            command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.framedoc3, text='Pharmacist', bg='darkgrey',
            command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.framedoc3, text='Accountant', bg='darkgrey',
            command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button8 = Button(self.framedoc3, text='Appointments', bg='darkgrey',
            command=self.framesdoc1)
        button8.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framedoc3, text='Surgeries', bg='darkgrey',
            command=self.framesdoc2)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framedoc3, text='Medicines', bg='lightgrey',
            command=self.framesdoc3)
        button7.grid(column=3, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framedoc3, text='Add Prescription', bg=
            'darkgrey', command=self.medicine)
        button7.grid(column=4, row=3, padx=10, pady=10, ipadx=30, columnspan=2)
        button7 = Button(self.framedoc3, text='View Prescriptions', bg=
            'darkgrey', command=self.medec1)
        button7.grid(column=4, row=4, padx=10, pady=10, ipadx=30, columnspan=2)
        button7 = Button(self.framedoc3, text='Change Password', bg=
            'darkgrey', command=self.frames1)
        button7.grid(column=4, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.framedoc3, text='Home', bg='#444343', command
            =self.framespass)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        label12 = Label(self.framedoc3, text='1. Patient Id:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=1)
        label12 = Label(self.framedoc3, text='2. Problem:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=2)
        label12 = Label(self.framedoc3, text='3. Prescription:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=3)
        label12 = Label(self.framedoc3, text='4. Cost:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=4)
        label12 = Label(self.framedoc3, text='5. Doctor Id:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=5)
        self.med1 = StringVar()
        self.med2 = StringVar()
        self.med3 = StringVar()
        self.med4 = StringVar()
        self.med5 = StringVar()
        entry45 = Entry(self.framedoc3, textvariable=self.med1)
        entry45.grid(column=3, row=1)
        entry46 = Entry(self.framedoc3, textvariable=self.med2)
        entry46.grid(column=3, row=2)
        entry47 = Entry(self.framedoc3, textvariable=self.med3)
        entry47.grid(column=3, row=3)
        entry48 = Entry(self.framedoc3, textvariable=self.med4)
        entry48.grid(column=3, row=4)
        entry49 = Entry(self.framedoc3, textvariable=self.med5)
        entry49.grid(column=3, row=5)
        self.frameacc = Frame(window)
        self.frameacc.pack()
        label1 = Label(self.frameacc, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.frameacc, text='               ')
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.frameacc, text='Admin', bg='darkgrey',
            command=self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.frameacc, text='Patient', bg='darkgrey',
            command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.frameacc, text='accor', bg='darkgrey',
            command=self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.frameacc, text='Nurse', bg='darkgrey',
            command=self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.frameacc, text='Laboratorist', bg='darkgrey',
            command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.frameacc, text='Pharmacist', bg='darkgrey',
            command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.frameacc, text='Accountant', bg='darkgrey',
            command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button7 = Button(self.frameacc, text='Payments', bg='lightgrey',
            command=self.framesacc)
        button7.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.frameacc, text='Add Payment', bg='darkgrey',
            command=self.payment)
        button7.grid(column=4, row=3, padx=10, pady=10, ipadx=30, columnspan=2)
        button7 = Button(self.frameacc, text='View Payments', bg='darkgrey',
            command=self.pay1)
        button7.grid(column=4, row=4, padx=10, pady=10, ipadx=30, columnspan=2)
        button7 = Button(self.frameacc, text='Change Password', bg=
            'darkgrey', command=self.framespass)
        button7.grid(column=4, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.frameacc, text='Home', bg='#444343', command=
            self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        label12 = Label(self.frameacc, text='1. Patient Id:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=1)
        label12 = Label(self.frameacc, text='2. Doctor fee:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=2)
        label12 = Label(self.frameacc, text='3. Operation fee:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=3)
        label12 = Label(self.frameacc, text='4. Bed fee:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=4)
        label12 = Label(self.frameacc, text='5. Medicine fee:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=5)
        label12 = Label(self.frameacc, text='6. Food fee:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=6)
        label12 = Label(self.frameacc, text='7. Blood fee:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=7)
        self.acc1 = StringVar()
        self.acc2 = StringVar()
        self.acc3 = StringVar()
        self.acc4 = StringVar()
        self.acc5 = StringVar()
        self.acc6 = StringVar()
        self.acc7 = StringVar()
        entry45 = Entry(self.frameacc, textvariable=self.acc1)
        entry45.grid(column=3, row=1)
        entry46 = Entry(self.frameacc, textvariable=self.acc2)
        entry46.grid(column=3, row=2)
        entry47 = Entry(self.frameacc, textvariable=self.acc3)
        entry47.grid(column=3, row=3)
        entry48 = Entry(self.frameacc, textvariable=self.acc4)
        entry48.grid(column=3, row=4)
        entry49 = Entry(self.frameacc, textvariable=self.acc5)
        entry49.grid(column=3, row=5)
        entry49 = Entry(self.frameacc, textvariable=self.acc6)
        entry49.grid(column=3, row=6)
        entry49 = Entry(self.frameacc, textvariable=self.acc7)
        entry49.grid(column=3, row=7)
        self.framepharm = Frame(window)
        self.framepharm.pack()
        label1 = Label(self.framepharm, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.framepharm, text='               ')
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.framepharm, text='Admin', bg='darkgrey',
            command=self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.framepharm, text='Patient', bg='darkgrey',
            command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.framepharm, text='accor', bg='darkgrey',
            command=self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.framepharm, text='Nurse', bg='darkgrey',
            command=self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.framepharm, text='Laboratorist', bg=
            'darkgrey', command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.framepharm, text='Pharmacist', bg='darkgrey',
            command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.framepharm, text='Accountant', bg='darkgrey',
            command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button7 = Button(self.framepharm, text='Medicines', bg='lightgrey',
            command=self.framespharm)
        button7.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framepharm, text='Add Prescriptions', bg=
            'darkgrey', command=self.medicine)
        button7.grid(column=4, row=3, padx=10, pady=10, ipadx=30, columnspan=2)
        button7 = Button(self.framepharm, text='View Prescriptions', bg=
            'darkgrey', command=self.medec2)
        button7.grid(column=4, row=4, padx=10, pady=10, ipadx=30, columnspan=2)
        button7 = Button(self.framepharm, text='Change Password', bg=
            'darkgrey', command=self.framespass)
        button7.grid(column=4, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.framepharm, text='Home', bg='#444343',
            command=self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        label12 = Label(self.framepharm, text='1. Patient Id:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=1)
        label12 = Label(self.framepharm, text='2. Problem:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=2)
        label12 = Label(self.framepharm, text='3. Prescription:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=3)
        label12 = Label(self.framepharm, text='4. Cost:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=4)
        label12 = Label(self.framepharm, text='5. Doctor Id:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=5)
        self.med1 = StringVar()
        self.med2 = StringVar()
        self.med3 = StringVar()
        self.med4 = StringVar()
        self.med5 = StringVar()
        entry45 = Entry(self.framepharm, textvariable=self.med1)
        entry45.grid(column=3, row=1)
        entry46 = Entry(self.framepharm, textvariable=self.med2)
        entry46.grid(column=3, row=2)
        entry47 = Entry(self.framepharm, textvariable=self.med3)
        entry47.grid(column=3, row=3)
        entry48 = Entry(self.framepharm, textvariable=self.med4)
        entry48.grid(column=3, row=4)
        entry49 = Entry(self.framepharm, textvariable=self.med5)
        entry49.grid(column=3, row=5)
        self.framenur1 = Frame(window)
        self.framenur1.pack()
        label1 = Label(self.framenur1, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.framenur1, text='               ')
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.framenur1, text='Admin', bg='darkgrey',
            command=self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.framenur1, text='Patient', bg='darkgrey',
            command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.framenur1, text='Doctor', bg='darkgrey',
            command=self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.framenur1, text='Nurse', bg='darkgrey',
            command=self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.framenur1, text='Laboratorist', bg='darkgrey',
            command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.framenur1, text='Pharmacist', bg='darkgrey',
            command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.framenur1, text='Accountant', bg='darkgrey',
            command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button8 = Button(self.framenur1, text='Birth report', bg=
            'lightgrey', command=self.framesnur1)
        button8.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framenur1, text='Death report', bg='darkgrey',
            command=self.framesnur2)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framenur1, text='Add Birth report', bg=
            'darkgrey', command=self.birthreport)
        button7.grid(column=4, row=3, padx=10, pady=10, ipadx=30, columnspan=2)
        button7 = Button(self.framenur1, text='View Birth report', bg=
            'darkgrey', command=self.birth1)
        button7.grid(column=4, row=4, padx=10, pady=10, ipadx=30, columnspan=2)
        button7 = Button(self.framenur1, text='Change Password', bg=
            'darkgrey', command=self.framespass)
        button7.grid(column=4, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.framenur1, text='Home', bg='#444343', command
            =self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        label12 = Label(self.framenur1, text='1. Date of birth:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=1)
        label12 = Label(self.framenur1, text='2. Time of Birth:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=2)
        label12 = Label(self.framenur1, text='3. Father name:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=3)
        label12 = Label(self.framenur1, text='4. Mother name:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=4)
        label12 = Label(self.framenur1, text='5. Parent Ph. Num:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=5)
        label12 = Label(self.framenur1, text='6. Sex:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=6)
        self.nur1 = StringVar()
        self.nur2 = StringVar()
        self.nur3 = StringVar()
        self.nur4 = StringVar()
        self.nur5 = StringVar()
        self.nur6 = StringVar()
        entry45 = Entry(self.framenur1, textvariable=self.nur1)
        entry45.grid(column=3, row=1)
        entry46 = Entry(self.framenur1, textvariable=self.nur2)
        entry46.grid(column=3, row=2)
        entry47 = Entry(self.framenur1, textvariable=self.nur3)
        entry47.grid(column=3, row=3)
        entry48 = Entry(self.framenur1, textvariable=self.nur4)
        entry48.grid(column=3, row=4)
        entry49 = Entry(self.framenur1, textvariable=self.nur5)
        entry49.grid(column=3, row=5)
        entry49 = Entry(self.framenur1, textvariable=self.nur6)
        entry49.grid(column=3, row=6)
        self.framenur2 = Frame(window)
        self.framenur2.pack()
        label1 = Label(self.framenur2, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.framenur2, text='               ')
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.framenur2, text='Admin', bg='darkgrey',
            command=self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.framenur2, text='Patient', bg='darkgrey',
            command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.framenur2, text='Doctor', bg='darkgrey',
            command=self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.framenur2, text='Nurse', bg='darkgrey',
            command=self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.framenur2, text='Laboratorist', bg='darkgrey',
            command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.framenur2, text='Pharmacist', bg='darkgrey',
            command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.framenur2, text='Accountant', bg='darkgrey',
            command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button8 = Button(self.framenur2, text='Birth report', bg='darkgrey',
            command=self.framesnur1)
        button8.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framenur2, text='Death report', bg=
            'lightgrey', command=self.framesnur2)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framenur2, text='Add Death report', bg=
            'darkgrey', command=self.deathreport)
        button7.grid(column=4, row=3, padx=10, pady=10, ipadx=30, columnspan=2)
        button7 = Button(self.framenur2, text='View Death report', bg=
            'darkgrey', command=self.death1)
        button7.grid(column=4, row=4, padx=10, pady=10, ipadx=30, columnspan=2)
        button7 = Button(self.framenur2, text='Change Password', bg=
            'darkgrey', command=self.framespass)
        button7.grid(column=4, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.framenur2, text='Home', bg='#444343', command
            =self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        label12 = Label(self.framenur2, text="1. Victim's Name:", font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=1)
        label12 = Label(self.framenur2, text='2. Date of birth:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=2)
        label12 = Label(self.framenur2, text='3. Date of Death:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=3)
        label12 = Label(self.framenur2, text='4. Time of Death:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=4)
        label12 = Label(self.framenur2, text='5. Parent Ph. Num:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=5)
        label12 = Label(self.framenur2, text='6. Sex:', font=(
            'Times new roman', 12), width=10)
        label12.grid(column=2, row=6)
        self.dea1 = StringVar()
        self.dea2 = StringVar()
        self.dea3 = StringVar()
        self.dea4 = StringVar()
        self.dea5 = StringVar()
        self.dea6 = StringVar()
        entry45 = Entry(self.framenur2, textvariable=self.dea1)
        entry45.grid(column=3, row=1)
        entry46 = Entry(self.framenur2, textvariable=self.dea2)
        entry46.grid(column=3, row=2)
        entry47 = Entry(self.framenur2, textvariable=self.dea3)
        entry47.grid(column=3, row=3)
        entry48 = Entry(self.framenur2, textvariable=self.dea4)
        entry48.grid(column=3, row=4)
        entry49 = Entry(self.framenur2, textvariable=self.dea5)
        entry49.grid(column=3, row=5)
        entry49 = Entry(self.framenur2, textvariable=self.dea6)
        entry49.grid(column=3, row=6)
        self.framepass = Frame(window)
        self.framepass.pack()
        label1 = Label(self.framepass, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.framepass, text='               ')
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.framepass, text='Admin', bg='darkgrey',
            command=self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.framepass, text='Patient', bg='darkgrey',
            command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.framepass, text='Doctor', bg='darkgrey',
            command=self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.framepass, text='Nurse', bg='darkgrey',
            command=self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.framepass, text='Laboratorist', bg='darkgrey',
            command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.framepass, text='Pharmacist', bg='darkgrey',
            command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.framepass, text='Accountant', bg='darkgrey',
            command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button8 = Button(self.framepass, text='Home', bg='#444343', command
            =self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        button7 = Button(self.framepass, text='Submit', bg='darkgrey',
            command=self.activate)
        button7.grid(column=4, row=4, padx=10, pady=10, ipadx=37.5)
        self.passs = StringVar()
        label11 = Label(self.framepass, text='Enter new password:', font=(
            'Times new roman', 12), width=15)
        label11.grid(column=1, row=4, columnspan=2)
        self.entry333 = Entry(self.framepass, width=15, textvariable=self.passs
            )
        self.entry333.grid(column=3, row=4)
        self.frameda = Frame(window)
        self.frameda.pack()
        label1 = Label(self.frameda, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.frameda, text='               ')
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.frameda, text='Admin', bg='darkgrey', command
            =self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.frameda, text='Patient', bg='darkgrey',
            command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.frameda, text='Doctor', bg='darkgrey',
            command=self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.frameda, text='Nurse', bg='darkgrey', command
            =self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.frameda, text='Laboratorist', bg='darkgrey',
            command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.frameda, text='Pharmacist', bg='darkgrey',
            command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.frameda, text='Accountant', bg='darkgrey',
            command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button7 = Button(self.frameda, text='Appointments', bg='darkgrey',
            command=self.appoint1)
        button7.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.frameda, text='Surgeries', bg='darkgrey',
            command=self.surg1)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.frameda, text='Medicines', bg='darkgrey',
            command=self.medec1)
        button7.grid(column=3, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.frameda, text='Back', bg='darkgrey', command=
            self.framesdoc1)
        button7.grid(column=4, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.frameda, text='Home', bg='#444343', command=
            self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        self.text2 = Text(self.frameda, height=20, width=193, font=(
            'Times new roman', 9), bg='lightgrey')
        self.text2.grid(column=1, row=1, columnspan=8, rowspan=7)
        self.framedb = Frame(window)
        self.framedb.pack()
        label1 = Label(self.framedb, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.framedb, text='               ')
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.framedb, text='Admin', bg='darkgrey', command
            =self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.framedb, text='Patient', bg='darkgrey',
            command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.framedb, text='Doctor', bg='darkgrey',
            command=self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.framedb, text='Nurse', bg='darkgrey', command
            =self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.framedb, text='Laboratorist', bg='darkgrey',
            command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.framedb, text='Pharmacist', bg='darkgrey',
            command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.framedb, text='Accountant', bg='darkgrey',
            command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button7 = Button(self.framedb, text='Birth report', bg='darkgrey',
            command=self.birth1)
        button7.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framedb, text='Death report', bg='darkgrey',
            command=self.death1)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framedb, text='Back', bg='darkgrey', command=
            self.framesnur1)
        button7.grid(column=3, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.framedb, text='Home', bg='#444343', command=
            self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        self.text3 = Text(self.framedb, height=20, width=193, font=(
            'Times new roman', 9), bg='lightgrey')
        self.text3.grid(column=1, row=1, columnspan=8, rowspan=7)
        self.framedc = Frame(window)
        self.framedc.pack()
        label1 = Label(self.framedc, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.framedc, text='               ')
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.framedc, text='Admin', bg='darkgrey', command
            =self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.framedc, text='Patient', bg='darkgrey',
            command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.framedc, text='Doctor', bg='darkgrey',
            command=self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.framedc, text='Nurse', bg='darkgrey', command
            =self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.framedc, text='Laboratorist', bg='darkgrey',
            command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.framedc, text='Pharmacist', bg='darkgrey',
            command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.framedc, text='Accountant', bg='darkgrey',
            command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button7 = Button(self.framedc, text='Payment', bg='lightgrey',
            command=self.pay1)
        button7.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framedc, text='Back', bg='darkgrey', command=
            self.framesacc)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.framedc, text='Home', bg='#444343', command=
            self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        self.text4 = Text(self.framedc, height=20, width=193, font=(
            'Times new roman', 9), bg='lightgrey')
        self.text4.grid(column=1, row=1, columnspan=8, rowspan=7)
        self.framedd = Frame(window)
        self.framedd.pack()
        label1 = Label(self.framedd, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.framedd, text='               ')
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.framedd, text='Admin', bg='darkgrey', command
            =self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.framedd, text='Patient', bg='darkgrey',
            command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.framedd, text='Doctor', bg='darkgrey',
            command=self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.framedd, text='Nurse', bg='darkgrey', command
            =self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.framedd, text='Laboratorist', bg='darkgrey',
            command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.framedd, text='Pharmacist', bg='darkgrey',
            command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.framedd, text='Accountant', bg='darkgrey',
            command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button7 = Button(self.framedd, text='Medicine', bg='lightgrey',
            command=self.medec2)
        button7.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framedd, text='Back', bg='darkgrey', command=
            self.framespharm)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.framedd, text='Home', bg='#444343', command=
            self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        self.text5 = Text(self.framedd, height=20, width=193, font=(
            'Times new roman', 9), bg='lightgrey')
        self.text5.grid(column=1, row=1, columnspan=8, rowspan=7)
        self.framede = Frame(window)
        self.framede.pack()
        label1 = Label(self.framede, text=
            'Hospital Record Management System', font=('Times new roman', 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.framede, text='               ')
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.framede, text='Admin', bg='darkgrey', command
            =self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.framede, text='Patient', bg='darkgrey',
            command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.framede, text='Doctor', bg='darkgrey',
            command=self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.framede, text='Nurse', bg='darkgrey', command
            =self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.framede, text='Laboratorist', bg='darkgrey',
            command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.framede, text='Pharmacist', bg='darkgrey',
            command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.framede, text='Accountant', bg='darkgrey',
            command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button7 = Button(self.framede, text='Appointments', bg='lightgrey',
            command=self.a1)
        button7.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framede, text='Surgeries', bg='lightgrey',
            command=self.a2)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framede, text='Payments', bg='lightgrey',
            command=self.a4)
        button7.grid(column=3, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framede, text='Medicines', bg='lightgrey',
            command=self.a3)
        button7.grid(column=4, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framede, text='Change password', bg=
            'darkgrey', command=self.framespass)
        button7.grid(column=5, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.framede, text='Home', bg='#444343', command=
            self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        self.text6 = Text(self.framede, height=20, width=193, font=(
            'Times new roman', 9), bg='lightgrey')
        self.text6.grid(column=1, row=1, columnspan=8, rowspan=7)
        window.mainloop()

    def framesde(self):
        self.frame1.pack_forget()
        self.frame2.pack_forget()
        self.frame3.pack_forget()
        self.frame4.pack_forget()
        self.frame5.pack_forget()
        self.frame6.pack_forget()
        self.frame7.pack_forget()
        self.frame8.pack_forget()
        self.framede.pack()

    def a1(self):
        self.framesde()
        self.text6.delete(1.0, END)
        self.list1 = []
        self.list2 = []
        for i in range(1, self.appointment3.max_row + 1):
            for j in range(1, self.appointment3.max_column + 1):
                k = len(str(self.appointment3.cell(row=i, column=j).value))
                y = str(self.appointment3.cell(row=i, column=j).value
                    ) + ' ' * (12 - k)
                self.list1.append(y)
            for k in range(1, self.appointment3.max_column + 1):
                z = str(self.appointment3.cell(row=i, column=j).value)
                self.list2.append(z)
            if str(self.login2.get()) in self.list2:
                self.text6.insert(END, self.list1)
                self.text6.insert(END, '\n')
            self.list2 = []
            self.list1 = []
    <mask token>

    def a3(self):
        self.framesde()
        self.text6.delete(1.0, END)
        self.list1 = []
        self.list2 = []
        for i in range(1, self.medicine3.max_row + 1):
            for j in range(1, self.medicine3.max_column + 1):
                k = len(str(self.medicine3.cell(row=i, column=j).value))
                y = str(self.medicine3.cell(row=i, column=j).value) + ' ' * (
                    12 - k)
                self.list1.append(y)
            for k in range(1, self.medicine3.max_column + 1):
                z = str(self.medicine3.cell(row=i, column=j).value)
                self.list2.append(z)
            if str(self.login2.get()) in self.list2:
                self.text6.insert(END, self.list1)
                self.text6.insert(END, '\n')
            self.list2 = []
            self.list1 = []

    def a4(self):
        self.framesde()
        self.text6.delete(1.0, END)
        self.list1 = []
        self.list2 = []
        for i in range(1, self.payment3.max_row + 1):
            for j in range(1, self.payment3.max_column + 1):
                k = len(str(self.payment3.cell(row=i, column=j).value))
                y = str(self.payment3.cell(row=i, column=j).value) + ' ' * (
                    12 - k)
                self.list1.append(y)
            for k in range(1, self.payment3.max_column + 1):
                z = str(self.payment3.cell(row=i, column=j).value)
                self.list2.append(z)
            if str(self.login2.get()) in self.list2:
                self.text6.insert(END, self.list1)
                self.text6.insert(END, '\n')
            self.list2 = []
            self.list1 = []
    <mask token>

    def medec2(self):
        self.framesdd()
        self.text5.delete(1.0, END)
        self.list1 = []
        for i in range(1, self.medicine3.max_row + 1):
            for j in range(1, self.medicine3.max_column + 1):
                k = len(str(self.medicine3.cell(row=i, column=j).value))
                y = str(self.medicine3.cell(row=i, column=j).value) + ' ' * (
                    12 - k)
                self.list1.append(y)
            self.text5.insert(END, self.list1)
            self.text5.insert(END, '\n')
            self.list1 = []

    def framesdc(self):
        self.frameacc.pack_forget()
        self.framedc.pack()
    <mask token>
    <mask token>

    def birth1(self):
        self.framesdb()
        self.text3.delete(1.0, END)
        self.list1 = []
        for i in range(1, self.birth3.max_row + 1):
            for j in range(1, self.birth3.max_column + 1):
                k = len(str(self.birth3.cell(row=i, column=j).value))
                y = str(self.birth3.cell(row=i, column=j).value) + ' ' * (
                    12 - k)
                self.list1.append(y)
            self.text3.insert(END, self.list1)
            self.text3.insert(END, '\n')
            self.list1 = []

    def death1(self):
        self.framesdb()
        self.text3.delete(1.0, END)
        self.list1 = []
        for i in range(1, self.death3.max_row + 1):
            for j in range(1, self.death3.max_column + 1):
                k = len(str(self.death3.cell(row=i, column=j).value))
                y = str(self.death3.cell(row=i, column=j).value) + ' ' * (
                    12 - k)
                self.list1.append(y)
            self.text3.insert(END, self.list1)
            self.text3.insert(END, '\n')
            self.list1 = []

    def framesda(self):
        self.framedoc1.pack_forget()
        self.framedoc2.pack_forget()
        self.framedoc3.pack_forget()
        self.frameda.pack()
    <mask token>

    def birthreport(self):
        self.list1 = [self.nur1.get(), self.nur2.get(), self.nur3.get(),
            self.nur4.get(), self.nur5.get(), self.nur6.get()]
        self.a = 1
        self.b = self.birth3.max_row + 1
        for i in self.list1:
            self.birth3.cell(row=self.b, column=self.a).value = i
            self.a += 1
        self.wb3.save('HRMS.xlsx')

    def payment(self):
        self.list1 = [self.acc1.get(), self.acc2.get(), self.acc3.get(),
            self.acc4.get(), self.acc5.get(), self.acc6.get(), self.acc7.get()]
        self.a = 1
        self.b = self.payment3.max_row + 1
        for i in self.list1:
            self.payment3.cell(row=self.b, column=self.a).value = i
            self.a += 1
        self.wb3.save('HRMS.xlsx')

    def medicine(self):
        self.list1 = [self.med1.get(), self.med2.get(), self.med3.get(),
            self.med4.get(), self.med5.get()]
        self.a = 1
        self.b = self.medicine3.max_row + 1
        for i in self.list1:
            self.medicine3.cell(row=self.b, column=self.a).value = i
            self.a += 1
        self.wb3.save('HRMS.xlsx')

    def surgery(self):
        self.list1 = [self.sur1.get(), self.sur2.get(), self.sur3.get(),
            self.sur4.get(), self.sur5.get()]
        self.a = 1
        self.b = self.surgery3.max_row + 1
        for i in self.list1:
            self.surgery3.cell(row=self.b, column=self.a).value = i
            self.a += 1
        self.wb3.save('HRMS.xlsx')

    def appointment(self):
        self.list1 = [self.app1.get(), self.app2.get(), self.app3.get(),
            self.app4.get(), self.app5.get(), self.app6.get(), self.app7.get()]
        self.a = 1
        self.b = self.appointment3.max_row + 1
        for i in self.list1:
            self.appointment3.cell(row=self.b, column=self.a).value = i
            self.a += 1
        self.wb3.save('HRMS.xlsx')

    def doctor(self):
        self.list1 = [self.name1.get(), self.id1.get(), self.age1.get(),
            self.sex1.get(), self.quality1.get(), self.special1.get(), self
            .bloodtype1.get(), self.address1.get(), self.phonenum1.get(),
            self.dateb1.get(), self.datej1.get(), self.salary1.get(), self.
            work1.get(), self.time1.get(), self.office1.get(), self.
            password1.get()]
        self.a = 1
        self.b = self.doctor3.max_row + 1
        for i in self.list1:
            self.doctor3.cell(row=self.b, column=self.a).value = i
            self.a += 1
        self.wb3.save('HRMS.xlsx')
        self.report()
        self.entry29.delete(0, END)
        self.entry30.delete(0, END)
        self.entry31.delete(0, END)
        self.entry32.delete(0, END)
        self.entry33.delete(0, END)
        self.entry34.delete(0, END)
        self.entry35.delete(0, END)
        self.entry36.delete(0, END)
        self.entry37.delete(0, END)
        self.entry38.delete(0, END)
        self.entry39.delete(0, END)
        self.entry40.delete(0, END)
        self.entry41.delete(0, END)
        self.entry42.delete(0, END)
        self.entry43.delete(0, END)
        self.entry44.delete(0, END)

    def patient(self):
        self.list1 = [self.name2.get(), self.id2.get(), self.age2.get(),
            self.sex2.get(), self.bloodtype2.get(), self.problem2.get(),
            self.address2.get(), self.phonenum2.get(), self.datej2.get(),
            self.password2.get()]
        self.a = 1
        self.b = self.patient3.max_row + 1
        for i in self.list1:
            self.patient3.cell(row=self.b, column=self.a).value = i
            self.a += 1
        self.wb3.save('HRMS.xlsx')
        self.report()
        self.entry19.delete(0, END)
        self.entry20.delete(0, END)
        self.entry21.delete(0, END)
        self.entry22.delete(0, END)
        self.entry23.delete(0, END)
        self.entry24.delete(0, END)
        self.entry25.delete(0, END)
        self.entry26.delete(0, END)
        self.entry27.delete(0, END)
        self.entry28.delete(0, END)

    def nurse(self):
        self.list1 = [self.name3.get(), self.id3.get(), self.age3.get(),
            self.sex3.get(), self.bloodtype3.get(), self.address3.get(),
            self.phonenum3.get(), self.datej3.get(), self.password3.get()]
        self.a = 1
        self.b = self.nurse3.max_row + 1
        for i in self.list1:
            self.nurse3.cell(row=self.b, column=self.a).value = i
            self.a += 1
        self.wb3.save('HRMS.xlsx')
        self.report()
        self.entry45.delete(0, END)
        self.entry46.delete(0, END)
        self.entry47.delete(0, END)
        self.entry48.delete(0, END)
        self.entry49.delete(0, END)
        self.entry50.delete(0, END)
        self.entry51.delete(0, END)
        self.entry52.delete(0, END)
        self.entry53.delete(0, END)

    def laboratorist(self):
        self.list1 = [self.name4.get(), self.id4.get(), self.age4.get(),
            self.sex4.get(), self.bloodtype4.get(), self.address4.get(),
            self.phonenum4.get(), self.datej4.get(), self.password4.get()]
        self.a = 1
        self.b = self.laboratorist3.max_row + 1
        for i in self.list1:
            self.laboratorist3.cell(row=self.b, column=self.a).value = i
            self.a += 1
        self.wb3.save('HRMS.xlsx')
        self.report()
        self.entry54.delete(0, END)
        self.entry55.delete(0, END)
        self.entry56.delete(0, END)
        self.entry57.delete(0, END)
        self.entry58.delete(0, END)
        self.entry59.delete(0, END)
        self.entry60.delete(0, END)
        self.entry61.delete(0, END)
        self.entry62.delete(0, END)

    def pharmacist(self):
        self.list1 = [self.name5.get(), self.id5.get(), self.age5.get(),
            self.sex5.get(), self.bloodtype5.get(), self.address5.get(),
            self.phonenum5.get(), self.datej5.get(), self.password5.get()]
        self.a = 1
        self.b = self.pharmacist3.max_row + 1
        for i in self.list1:
            self.pharmacist3.cell(row=self.b, column=self.a).value = i
            self.a += 1
        self.wb3.save('HRMS.xlsx')
        self.report()
        self.entry63.delete(0, END)
        self.entry64.delete(0, END)
        self.entry65.delete(0, END)
        self.entry66.delete(0, END)
        self.entry67.delete(0, END)
        self.entry68.delete(0, END)
        self.entry69.delete(0, END)
        self.entry70.delete(0, END)
        self.entry71.delete(0, END)

    def accountant(self):
        self.list1 = [self.name6.get(), self.id6.get(), self.age6.get(),
            self.sex6.get(), self.bloodtype6.get(), self.address6.get(),
            self.phonenum6.get(), self.datej6.get(), self.password6.get()]
        self.a = 1
        self.b = self.accountant3.max_row + 1
        for i in self.list1:
            self.accountant3.cell(row=self.b, column=self.a).value = i
            self.a += 1
        self.wb3.save('HRMS.xlsx')
        self.report()
        self.entry72.delete(0, END)
        self.entry73.delete(0, END)
        self.entry74.delete(0, END)
        self.entry75.delete(0, END)
        self.entry76.delete(0, END)
        self.entry77.delete(0, END)
        self.entry78.delete(0, END)
        self.entry79.delete(0, END)
        self.entry80.delete(0, END)

    def frames11(self):
        self.frame1.pack_forget()
        self.frame3.pack_forget()
        self.frame4.pack_forget()
        self.frame5.pack_forget()
        self.frame6.pack_forget()
        self.frame7.pack_forget()
        self.frame8.pack_forget()
        self.framea.pack_forget()
        self.frameb.pack_forget()
        self.framec.pack_forget()
        self.framed.pack_forget()
        self.framee.pack_forget()
        self.framef.pack_forget()
        self.frameI.pack_forget()
        self.frameacc.pack_forget()
        self.framedoc1.pack_forget()
        self.framedoc2.pack_forget()
        self.framedoc3.pack_forget()
        self.framenur1.pack_forget()
        self.framenur2.pack_forget()
        self.framepharm.pack_forget()
        self.framepass.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.frame2.pack()

    def frames12(self):
        self.I = True
        self.II = False
        self.III = False
        self.IIII = False
        self.IIIII = False
        self.IIIIII = False
        self.frame1.pack_forget()
        self.frame2.pack_forget()
        self.frame4.pack_forget()
        self.frame5.pack_forget()
        self.frame6.pack_forget()
        self.frame7.pack_forget()
        self.frame8.pack_forget()
        self.framea.pack_forget()
        self.frameb.pack_forget()
        self.framec.pack_forget()
        self.framed.pack_forget()
        self.framee.pack_forget()
        self.framef.pack_forget()
        self.frameI.pack_forget()
        self.frameacc.pack_forget()
        self.framedoc1.pack_forget()
        self.framedoc2.pack_forget()
        self.framedoc3.pack_forget()
        self.framenur1.pack_forget()
        self.framenur2.pack_forget()
        self.framepharm.pack_forget()
        self.framepass.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.frame3.pack()

    def frames13(self):
        self.I = False
        self.II = True
        self.III = False
        self.IIII = False
        self.IIIII = False
        self.IIIIII = False
        self.frame1.pack_forget()
        self.frame2.pack_forget()
        self.frame3.pack_forget()
        self.frame5.pack_forget()
        self.frame6.pack_forget()
        self.frame7.pack_forget()
        self.frame8.pack_forget()
        self.framea.pack_forget()
        self.frameb.pack_forget()
        self.framec.pack_forget()
        self.framed.pack_forget()
        self.framee.pack_forget()
        self.framef.pack_forget()
        self.frameI.pack_forget()
        self.frameacc.pack_forget()
        self.framedoc1.pack_forget()
        self.framedoc2.pack_forget()
        self.framedoc3.pack_forget()
        self.framenur1.pack_forget()
        self.framenur2.pack_forget()
        self.framepharm.pack_forget()
        self.framepass.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.frame4.pack()

    def frames14(self):
        self.I = False
        self.II = False
        self.III = True
        self.IIII = False
        self.IIIII = False
        self.IIIIII = False
        self.frame1.pack_forget()
        self.frame2.pack_forget()
        self.frame3.pack_forget()
        self.frame4.pack_forget()
        self.frame6.pack_forget()
        self.frame7.pack_forget()
        self.frame8.pack_forget()
        self.framea.pack_forget()
        self.frameb.pack_forget()
        self.framec.pack_forget()
        self.framed.pack_forget()
        self.framee.pack_forget()
        self.framef.pack_forget()
        self.frameI.pack_forget()
        self.frameacc.pack_forget()
        self.framedoc1.pack_forget()
        self.framedoc2.pack_forget()
        self.framedoc3.pack_forget()
        self.framenur1.pack_forget()
        self.framenur2.pack_forget()
        self.framepharm.pack_forget()
        self.framepass.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.frame5.pack()
    <mask token>

    def frames16(self):
        self.I = False
        self.II = False
        self.III = False
        self.IIII = False
        self.IIIII = True
        self.IIIIII = False
        self.frame1.pack_forget()
        self.frame2.pack_forget()
        self.frame3.pack_forget()
        self.frame4.pack_forget()
        self.frame5.pack_forget()
        self.frame6.pack_forget()
        self.frame8.pack_forget()
        self.framea.pack_forget()
        self.frameb.pack_forget()
        self.framec.pack_forget()
        self.framed.pack_forget()
        self.framee.pack_forget()
        self.framef.pack_forget()
        self.frameI.pack_forget()
        self.frameacc.pack_forget()
        self.framedoc1.pack_forget()
        self.framedoc2.pack_forget()
        self.framedoc3.pack_forget()
        self.framenur1.pack_forget()
        self.framenur2.pack_forget()
        self.framepharm.pack_forget()
        self.framepass.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.frame7.pack()

    def frames17(self):
        self.I = False
        self.II = False
        self.III = False
        self.IIII = False
        self.IIIII = False
        self.IIIIII = True
        self.frame1.pack_forget()
        self.frame2.pack_forget()
        self.frame3.pack_forget()
        self.frame4.pack_forget()
        self.frame5.pack_forget()
        self.frame6.pack_forget()
        self.frame7.pack_forget()
        self.framea.pack_forget()
        self.frameb.pack_forget()
        self.framec.pack_forget()
        self.framed.pack_forget()
        self.framee.pack_forget()
        self.framef.pack_forget()
        self.frameI.pack_forget()
        self.frameacc.pack_forget()
        self.framedoc1.pack_forget()
        self.framedoc2.pack_forget()
        self.framedoc3.pack_forget()
        self.framenur1.pack_forget()
        self.framenur2.pack_forget()
        self.framepharm.pack_forget()
        self.framepass.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.frame8.pack()
    <mask token>

    def framesb(self):
        self.I = True
        self.II = False
        self.III = False
        self.IIII = False
        self.IIIII = False
        self.IIIIII = False
        if self.login1.get() == str(self.security3.cell(row=1, column=1).value
            ) and self.pass1.get() == str(self.security3.cell(row=1, column
            =2).value):
            self.J = True
            self.JJ = False
            self.JJJ = False
            self.JJJJ = False
            self.JJJJJ = False
            self.JJJJJJ = False
            self.JJJJJJJ = False
            self.frame2.pack_forget()
            self.framea.pack_forget()
            self.framec.pack_forget()
            self.framed.pack_forget()
            self.framee.pack_forget()
            self.framef.pack_forget()
            self.frameI.pack_forget()
            self.frameacc.pack_forget()
            self.framedoc1.pack_forget()
            self.framedoc2.pack_forget()
            self.framedoc3.pack_forget()
            self.frameda.pack_forget()
            self.framedb.pack_forget()
            self.framedc.pack_forget()
            self.framedd.pack_forget()
            self.framede.pack_forget()
            self.frameb.pack()
            self.entry1.delete(0, END)
            self.entry2.delete(0, END)
        else:
            tkinter.messagebox.showerror('showerror', 'Incorrect Password')

    def framesc(self):
        self.I = False
        self.II = False
        self.III = True
        self.IIII = False
        self.IIIII = False
        self.IIIIII = False
        self.framea.pack_forget()
        self.frameb.pack_forget()
        self.framed.pack_forget()
        self.framee.pack_forget()
        self.framef.pack_forget()
        self.frameI.pack_forget()
        self.frameacc.pack_forget()
        self.framedoc1.pack_forget()
        self.framedoc2.pack_forget()
        self.framedoc3.pack_forget()
        self.framepass.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.framec.pack()

    def framesd(self):
        self.I = False
        self.II = False
        self.III = False
        self.IIII = True
        self.IIIII = False
        self.IIIIII = False
        self.framea.pack_forget()
        self.frameb.pack_forget()
        self.framec.pack_forget()
        self.framee.pack_forget()
        self.framef.pack_forget()
        self.frameI.pack_forget()
        self.frameacc.pack_forget()
        self.framedoc1.pack_forget()
        self.framedoc2.pack_forget()
        self.framedoc3.pack_forget()
        self.framepass.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.framed.pack()

    def framese(self):
        self.I = False
        self.II = False
        self.III = False
        self.IIII = False
        self.IIIII = True
        self.IIIIII = False
        self.framea.pack_forget()
        self.frameb.pack_forget()
        self.framec.pack_forget()
        self.framed.pack_forget()
        self.framef.pack_forget()
        self.frameI.pack_forget()
        self.frameacc.pack_forget()
        self.framedoc1.pack_forget()
        self.framedoc2.pack_forget()
        self.framedoc3.pack_forget()
        self.framepass.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.framee.pack()

    def framesf(self):
        self.I = False
        self.II = False
        self.III = False
        self.IIII = False
        self.IIIII = False
        self.IIIIII = True
        self.framea.pack_forget()
        self.frameb.pack_forget()
        self.framec.pack_forget()
        self.framed.pack_forget()
        self.framee.pack_forget()
        self.frameI.pack_forget()
        self.frameacc.pack_forget()
        self.framedoc1.pack_forget()
        self.framedoc2.pack_forget()
        self.framedoc3.pack_forget()
        self.framepass.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.framef.pack()
    <mask token>

    def framesl(self):
        self.framea.pack_forget()
        self.frameb.pack_forget()
        self.framec.pack_forget()
        self.framed.pack_forget()
        self.framee.pack_forget()
        self.framef.pack_forget()
        self.frameacc.pack_forget()
        self.framedoc1.pack_forget()
        self.framedoc2.pack_forget()
        self.framedoc3.pack_forget()
        self.framenur1.pack_forget()
        self.framenur2.pack_forget()
        self.framepharm.pack_forget()
        self.framepass.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.frameI.pack_forget()
        self.frameda.pack()

    def appoint1(self):
        self.framesl()
        self.text2.delete(1.0, END)
        self.list1 = []
        self.list2 = []
        for i in range(1, self.appointment3.max_row + 1):
            for j in range(1, self.appointment3.max_column + 1):
                k = len(str(self.appointment3.cell(row=i, column=j).value))
                y = str(self.appointment3.cell(row=i, column=j).value
                    ) + ' ' * (12 - k)
                self.list1.append(y)
            for k in range(1, self.appointment3.max_column + 1):
                z = str(self.appointment3.cell(row=i, column=j).value)
                self.list2.append(z)
            if str(self.login3.get()) in self.list2:
                self.text2.insert(END, self.list1)
                self.text2.insert(END, '\n')
            self.list2 = []
            self.list1 = []

    def surg1(self):
        self.framesl()
        self.text2.delete(1.0, END)
        self.list1 = []
        self.list2 = []
        for i in range(1, self.surgery3.max_row + 1):
            for j in range(1, self.surgery3.max_column + 1):
                k = len(str(self.surgery3.cell(row=i, column=j).value))
                y = str(self.surgery3.cell(row=i, column=j).value) + ' ' * (
                    12 - k)
                self.list1.append(y)
            for k in range(1, self.surgery3.max_column + 1):
                z = str(self.surgery3.cell(row=i, column=j).value)
                self.list2.append(z)
            if str(self.login3.get()) in self.list2:
                self.text2.insert(END, self.list1)
                self.text2.insert(END, '\n')
            self.list2 = []
            self.list1 = []

    def medec1(self):
        self.framesl()
        self.text2.delete(1.0, END)
        self.list1 = []
        self.list12 = []
        for i in range(1, self.medicine3.max_row + 1):
            for j in range(1, self.medicine3.max_column + 1):
                k = len(str(self.medicine3.cell(row=i, column=j).value))
                y = str(self.medicine3.cell(row=i, column=j).value) + ' ' * (
                    12 - k)
                self.list1.append(y)
            for k in range(1, self.medicine3.max_column + 1):
                z = str(self.medicine3.cell(row=i, column=j).value)
                self.list2.append(z)
            if str(self.login3.get()) in self.list2:
                self.text2.insert(END, self.list1)
                self.text2.insert(END, '\n')
            self.list2 = []
            self.list1 = []

    def appoint(self):
        self.framesh()
        self.text1.delete(1.0, END)
        self.list1 = []
        for i in range(1, self.appointment3.max_row + 1):
            for j in range(1, self.appointment3.max_column + 1):
                k = len(str(self.appointment3.cell(row=i, column=j).value))
                y = str(self.appointment3.cell(row=i, column=j).value
                    ) + ' ' * (12 - k)
                self.list1.append(y)
            self.text1.insert(END, self.list1)
            self.text1.insert(END, '\n')
            self.list1 = []

    def surg(self):
        self.framesh()
        self.text1.delete(1.0, END)
        self.list1 = []
        for i in range(1, self.surgery3.max_row + 1):
            for j in range(1, self.surgery3.max_column + 1):
                k = len(str(self.surgery3.cell(row=i, column=j).value))
                y = str(self.surgery3.cell(row=i, column=j).value) + ' ' * (
                    12 - k)
                self.list1.append(y)
            self.text1.insert(END, self.list1)
            self.text1.insert(END, '\n')
            self.list1 = []
    <mask token>

    def pay(self):
        self.framesh()
        self.text1.delete(1.0, END)
        self.list1 = []
        for i in range(1, self.payment3.max_row + 1):
            for j in range(1, self.payment3.max_column + 1):
                k = len(str(self.payment3.cell(row=i, column=j).value))
                y = str(self.payment3.cell(row=i, column=j).value) + ' ' * (
                    12 - k)
                self.list1.append(y)
            self.text1.insert(END, self.list1)
            self.text1.insert(END, '\n')
            self.list1 = []

    def birthd(self):
        self.framesh()
        self.text1.delete(1.0, END)
        self.list1 = []
        for i in range(1, self.birth3.max_row + 1):
            for j in range(1, self.birth3.max_column + 1):
                k = len(str(self.birth3.cell(row=i, column=j).value))
                y = str(self.birth3.cell(row=i, column=j).value) + ' ' * (
                    12 - k)
                self.list1.append(y)
            self.text1.insert(END, self.list1)
            self.text1.insert(END, '\n')
            self.list1 = []

    def deathd(self):
        self.framesh()
        self.text1.delete(1.0, END)
        self.list1 = []
        for i in range(1, self.death3.max_row + 1):
            for j in range(1, self.death3.max_column + 1):
                k = len(str(self.death3.cell(row=i, column=j).value))
                y = str(self.death3.cell(row=i, column=j).value) + ' ' * (
                    12 - k)
                self.list1.append(y)
            self.text1.insert(END, self.list1)
            self.text1.insert(END, '\n')
            self.list1 = []

    def framesI(self):
        if self.II == True:
            self.framesh()
            self.text1.delete(1.0, END)
            self.list1 = []
            for i in range(1, self.doctor3.max_row + 1):
                for j in range(1, self.doctor3.max_column + 1):
                    k = len(str(self.doctor3.cell(row=i, column=j).value))
                    y = str(self.doctor3.cell(row=i, column=j).value) + ' ' * (
                        12 - k)
                    self.list1.append(y)
                self.text1.insert(END, self.list1)
                self.text1.insert(END, '\n')
                self.list1 = []
        elif self.I == True:
            self.framesh()
            self.text1.delete(1.0, END)
            self.list1 = []
            for i in range(1, self.patient3.max_row + 1):
                for j in range(1, self.patient3.max_column + 1):
                    k = len(str(self.patient3.cell(row=i, column=j).value))
                    y = str(self.patient3.cell(row=i, column=j).value
                        ) + ' ' * (12 - k)
                    self.list1.append(y)
                self.text1.insert(END, self.list1)
                self.text1.insert(END, '\n')
                self.list1 = []
        elif self.III == True:
            self.framesh()
            self.text1.delete(1.0, END)
            self.list1 = []
            for i in range(1, self.nurse3.max_row + 1):
                for j in range(1, self.nurse3.max_column + 1):
                    k = len(str(self.nurse3.cell(row=i, column=j).value))
                    y = str(self.nurse3.cell(row=i, column=j).value) + ' ' * (
                        12 - k)
                    self.list1.append(y)
                self.text1.insert(END, self.list1)
                self.text1.insert(END, '\n')
                self.list1 = []
        elif self.IIII == True:
            self.framesh()
            self.text1.delete(1.0, END)
            self.list1 = []
            for i in range(1, self.laboratorist3.max_row + 1):
                for j in range(1, self.laboratorist3.max_column + 1):
                    k = len(str(self.laboratorist3.cell(row=i, column=j).value)
                        )
                    y = str(self.laboratorist3.cell(row=i, column=j).value
                        ) + ' ' * (12 - k)
                    self.list1.append(y)
                self.text1.insert(END, self.list1)
                self.text1.insert(END, '\n')
                self.list1 = []
        elif self.IIIII == True:
            self.framesh()
            self.text1.delete(1.0, END)
            self.list1 = []
            for i in range(1, self.pharmacist3.max_row + 1):
                for j in range(1, self.pharmacist3.max_column + 1):
                    k = len(str(self.pharmacist3.cell(row=i, column=j).value))
                    y = str(self.pharmacist3.cell(row=i, column=j).value
                        ) + ' ' * (12 - k)
                    self.list1.append(y)
                self.text1.insert(END, self.list1)
                self.text1.insert(END, '\n')
                self.list1 = []
        elif self.IIIIII == True:
            self.framesh()
            self.text1.delete(1.0, END)
            self.list1 = []
            for i in range(1, self.accountant3.max_row + 1):
                for j in range(1, self.accountant3.max_column + 1):
                    k = len(str(self.accountant3.cell(row=i, column=j).value))
                    y = str(self.accountant3.cell(row=i, column=j).value
                        ) + ' ' * (12 - k)
                    self.list1.append(y)
                self.text1.insert(END, self.list1)
                self.text1.insert(END, '\n')
                self.list1 = []
        elif self.II == True:
            self.framesh()
            self.text1.delete(1.0, END)
            self.list1 = []
            for i in range(1, self.doctor3.max_row + 1):
                for j in range(1, self.doctor3.max_column + 1):
                    k = len(str(self.doctor3.cell(row=i, column=j).value))
                    y = str(self.doctor3.cell(row=i, column=j).value) + ' ' * (
                        12 - k)
                    self.list1.append(y)
                self.text1.insert(END, self.list1)
                self.text1.insert(END, '\n')
                self.list1 = []
        elif self.I == True:
            self.framesh()
            self.text1.delete(1.0, END)
            self.list1 = []
            for i in range(1, self.patient3.max_row + 1):
                for j in range(1, self.patient3.max_column + 1):
                    k = len(str(self.patient3.cell(row=i, column=j).value))
                    y = str(self.patient3.cell(row=i, column=j).value
                        ) + ' ' * (12 - k)
                    self.list1.append(y)
                self.text1.insert(END, self.list1)
                self.text1.insert(END, '\n')
                self.list1 = []
        elif self.III == True:
            self.framesh()
            self.text1.delete(1.0, END)
            self.list1 = []
            for i in range(1, self.nurse3.max_row + 1):
                for j in range(1, self.nurse3.max_column + 1):
                    k = len(str(self.nurse3.cell(row=i, column=j).value))
                    y = str(self.nurse3.cell(row=i, column=j).value) + ' ' * (
                        12 - k)
                    self.list1.append(y)
                self.text1.insert(END, self.list1)
                self.text1.insert(END, '\n')
                self.list1 = []
        elif self.IIII == True:
            self.framesh()
            self.text1.delete(1.0, END)
            self.list1 = []
            for i in range(1, self.laboratorist3.max_row + 1):
                for j in range(1, self.laboratorist3.max_column + 1):
                    k = len(str(self.laboratorist3.cell(row=i, column=j).value)
                        )
                    y = str(self.laboratorist3.cell(row=i, column=j).value
                        ) + ' ' * (12 - k)
                    self.list1.append(y)
                self.text1.insert(END, self.list1)
                self.text1.insert(END, '\n')
                self.list1 = []
        elif self.IIIII == True:
            self.framesh()
            self.text1.delete(1.0, END)
            self.list1 = []
            for i in range(1, self.pharmacist3.max_row + 1):
                for j in range(1, self.pharmacist3.max_column + 1):
                    k = len(str(self.pharmacist3.cell(row=i, column=j).value))
                    y = str(self.pharmacist3.cell(row=i, column=j).value
                        ) + ' ' * (12 - k)
                    self.list1.append(y)
                self.text1.insert(END, self.list1)
                self.text1.insert(END, '\n')
                self.list1 = []
        elif self.IIIIII == True:
            self.framesh()
            self.text1.delete(1.0, END)
            self.list1 = []
            for i in range(1, self.accountant3.max_row + 1):
                for j in range(1, self.accountant3.max_column + 1):
                    k = len(str(self.accountant3.cell(row=i, column=j).value))
                    y = str(self.accountant3.cell(row=i, column=j).value
                        ) + ' ' * (12 - k)
                    self.list1.append(y)
                self.text1.insert(END, self.list1)
                self.text1.insert(END, '\n')
                self.list1 = []

    def framesdoc1(self):
        self.frame1.pack_forget()
        self.frame2.pack_forget()
        self.frame3.pack_forget()
        self.frame4.pack_forget()
        self.frame5.pack_forget()
        self.frame6.pack_forget()
        self.frame7.pack_forget()
        self.frame8.pack_forget()
        self.frameacc.pack_forget()
        self.framedoc2.pack_forget()
        self.framedoc3.pack_forget()
        self.framenur1.pack_forget()
        self.framenur2.pack_forget()
        self.framepharm.pack_forget()
        self.framepass.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.framedoc1.pack()

    def framesdoc2(self):
        self.frame1.pack_forget()
        self.frame2.pack_forget()
        self.frame3.pack_forget()
        self.frame4.pack_forget()
        self.frame5.pack_forget()
        self.frame6.pack_forget()
        self.frame7.pack_forget()
        self.frame8.pack_forget()
        self.frameacc.pack_forget()
        self.framedoc1.pack_forget()
        self.framedoc3.pack_forget()
        self.framenur1.pack_forget()
        self.framenur2.pack_forget()
        self.framepharm.pack_forget()
        self.framepass.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.framedoc2.pack()

    def framesdoc3(self):
        self.frame1.pack_forget()
        self.frame2.pack_forget()
        self.frame3.pack_forget()
        self.frame4.pack_forget()
        self.frame6.pack_forget()
        self.frame5.pack_forget()
        self.frame7.pack_forget()
        self.frame8.pack_forget()
        self.frameacc.pack_forget()
        self.framedoc1.pack_forget()
        self.framedoc2.pack_forget()
        self.framenur1.pack_forget()
        self.framenur2.pack_forget()
        self.framepharm.pack_forget()
        self.framepass.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.framedoc3.pack()
    <mask token>
    <mask token>

    def framesnur1(self):
        self.frame1.pack_forget()
        self.frame2.pack_forget()
        self.frame3.pack_forget()
        self.frame4.pack_forget()
        self.frame5.pack_forget()
        self.frame6.pack_forget()
        self.frame7.pack_forget()
        self.frame8.pack_forget()
        self.framedoc1.pack_forget()
        self.framedoc2.pack_forget()
        self.framedoc3.pack_forget()
        self.frameacc.pack_forget()
        self.framenur2.pack_forget()
        self.framepharm.pack_forget()
        self.framepass.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.framenur1.pack()

    def framesnur2(self):
        self.frame1.pack_forget()
        self.frame2.pack_forget()
        self.frame3.pack_forget()
        self.frame4.pack_forget()
        self.frame5.pack_forget()
        self.frame6.pack_forget()
        self.frame7.pack_forget()
        self.frame8.pack_forget()
        self.framedoc1.pack_forget()
        self.framedoc2.pack_forget()
        self.framedoc3.pack_forget()
        self.frameacc.pack_forget()
        self.framenur1.pack_forget()
        self.framepharm.pack_forget()
        self.framepass.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.framenur2.pack()

    def framesJ(self):
        if self.II == True:
            self.list1 = []
            for i in range(1, self.doctor3.max_row + 1):
                self.list1.append(str(self.doctor3.cell(row=i, column=2).value)
                    )
            if self.login3.get() in self.list1:
                self.f = self.list1.index(self.login3.get()) + 1
                if str(self.doctor3.cell(row=self.f, column=16).value
                    ) == self.pass3.get():
                    self.J = False
                    self.JJ = True
                    self.JJJ = False
                    self.JJJJ = False
                    self.JJJJJ = False
                    self.JJJJJJ = False
                    self.JJJJJJJ = False
                    self.framesdoc1()
                    self.entry112.delete(0, END)
                    self.entry223.delete(0, END)
                else:
                    tkinter.messagebox.showerror('showerror',
                        'Incorrect Password')
            else:
                tkinter.messagebox.showerror('showerror', 'Incorrect Password')
        elif self.I == True:
            self.list1 = []
            for i in range(1, self.patient3.max_row + 1):
                self.list1.append(str(self.patient3.cell(row=i, column=2).
                    value))
            if self.login2.get() in self.list1:
                self.f = self.list1.index(self.login2.get()) + 1
                if str(self.patient3.cell(row=self.f, column=10).value
                    ) == self.pass2.get():
                    self.J = False
                    self.JJ = False
                    self.JJJ = True
                    self.JJJJ = False
                    self.JJJJJ = False
                    self.JJJJJJ = False
                    self.JJJJJJJ = False
                    self.a1()
                    self.entry111.delete(0, END)
                    self.entry222.delete(0, END)
                else:
                    tkinter.messagebox.showerror('showerror',
                        'Incorrect Password')
            else:
                tkinter.messagebox.showerror('showerror', 'Incorrect Password')
        elif self.III == True:
            self.list1 = []
            for i in range(1, self.nurse3.max_row + 1):
                self.list1.append(str(self.nurse3.cell(row=i, column=2).value))
            if self.login4.get() in self.list1:
                self.f = self.list1.index(self.login4.get()) + 1
                if str(self.nurse3.cell(row=self.f, column=9).value
                    ) == self.pass4.get():
                    self.J = False
                    self.JJ = False
                    self.JJJ = False
                    self.JJJJ = True
                    self.JJJJJ = False
                    self.JJJJJJ = False
                    self.JJJJJJJ = False
                    self.framesnur1()
                    self.entry113.delete(0, END)
                    self.entry224.delete(0, END)
                else:
                    tkinter.messagebox.showerror('showerror',
                        'Incorrect Password')
            else:
                tkinter.messagebox.showerror('showerror', 'Incorrect Password')
        elif self.IIII == True:
            self.list1 = []
            for i in range(1, self.laboratorist3.max_row + 1):
                self.list1.append(str(self.laboratorist3.cell(row=i, column
                    =2).value))
            if self.login5.get() in self.list1:
                self.f = self.list1.index(self.login5.get()) + 1
                if str(self.laboratorist3.cell(row=self.f, column=9).value
                    ) == self.pass5.get():
                    self.J = False
                    self.JJ = False
                    self.JJJ = False
                    self.JJJJ = False
                    self.JJJJJ = True
                    self.JJJJJJ = False
                    self.JJJJJJJ = False
                    self.entry114.delete(0, END)
                    self.entry225.delete(0, END)
                    pass
                else:
                    tkinter.messagebox.showerror('showerror',
                        'Incorrect Password')
            else:
                tkinter.messagebox.showerror('showerror', 'Incorrect Password')
        elif self.IIIII == True:
            self.list1 = []
            for i in range(1, self.pharmacist3.max_row + 1):
                self.list1.append(str(self.pharmacist3.cell(row=i, column=2
                    ).value))
            if self.login6.get() in self.list1:
                self.f = self.list1.index(self.login6.get()) + 1
                if str(self.pharmacist3.cell(row=self.f, column=9).value
                    ) == self.pass6.get():
                    self.J = False
                    self.JJ = False
                    self.JJJ = False
                    self.JJJJ = False
                    self.JJJJJ = False
                    self.JJJJJJ = True
                    self.JJJJJJJ = False
                    self.framespharm()
                    self.entry115.delete(0, END)
                    self.entry226.delete(0, END)
                else:
                    tkinter.messagebox.showerror('showerror',
                        'Incorrect Password')
            else:
                tkinter.messagebox.showerror('showerror', 'Incorrect Password')
        elif self.IIIIII == True:
            self.list1 = []
            for i in range(1, self.accountant3.max_row + 1):
                self.list1.append(str(self.accountant3.cell(row=i, column=2
                    ).value))
            if self.login7.get() in self.list1:
                self.f = self.list1.index(self.login7.get()) + 1
                if str(self.accountant3.cell(row=self.f, column=9).value
                    ) == self.pass7.get():
                    self.J = False
                    self.JJ = False
                    self.JJJ = False
                    self.JJJJ = False
                    self.JJJJJ = False
                    self.JJJJJJ = False
                    self.JJJJJJJ = True
                    self.framesacc()
                    self.entry116.delete(0, END)
                    self.entry227.delete(0, END)
                else:
                    tkinter.messagebox.showerror('showerror',
                        'Incorrect Password')
            else:
                tkinter.messagebox.showerror('showerror', 'Incorrect Password')

    def activate(self):
        if self.J == True:
            self.security3.cell(row=1, column=2).value = self.passs.get()
            self.wb3.save('HRMS.xlsx')
        elif self.JJ == True:
            self.list1 = []
            for i in range(1, self.doctor3.max_row + 1):
                self.list1.append(str(self.doctor3.cell(row=i, column=2).value)
                    )
            self.f = self.list1.index(self.login3.get()) + 1
            self.doctor3.cell(row=self.f, column=16).value = self.passs.get()
            self.wb3.save('HRMS.xlsx')
        elif self.JJJ == True:
            self.list1 = []
            for i in range(1, self.patient3.max_row + 1):
                self.list1.append(str(self.patient3.cell(row=i, column=2).
                    value))
            self.f = self.list1.index(self.login2.get()) + 1
            self.patient3.cell(row=self.f, column=10).value = self.passs.get()
            self.wb3.save('HRMS.xlsx')
        elif self.JJJJ == True:
            self.list1 = []
            for i in range(1, self.nurse3.max_row + 1):
                self.list1.append(str(self.nurse3.cell(row=i, column=2).value))
            self.f = self.list1.index(self.login3.get()) + 1
            self.nurse3.cell(row=self.f, column=9).value = self.passs.get()
            self.wb3.save('HRMS.xlsx')
        elif self.JJJJJ == True:
            self.list1 = []
            for i in range(1, self.laboratorist3.max_row + 1):
                self.list1.append(str(self.laboratorist3.cell(row=i, column
                    =2).value))
            self.f = self.list1.index(self.login3.get()) + 1
            self.laboratorist3.cell(row=self.f, column=9
                ).value = self.passs.get()
            self.wb3.save('HRMS.xlsx')
        elif self.JJJJJJ == True:
            self.list1 = []
            for i in range(1, self.pharmacist3.max_row + 1):
                self.list1.append(str(self.pharmacist3.cell(row=i, column=2
                    ).value))
            self.f = self.list1.index(self.login3.get()) + 1
            self.pharmacist3.cell(row=self.f, column=9).value = self.passs.get(
                )
            self.wb3.save('HRMS.xlsx')
        elif self.JJJJJJJ == True:
            self.list1 = []
            for i in range(1, self.accountant3.max_row + 1):
                self.list1.append(str(self.accountant3.cell(row=i, column=2
                    ).value))
            self.f = self.list1.index(self.login3.get()) + 1
            self.accountant3.cell(row=self.f, column=9).value = self.passs.get(
                )
            self.wb3.save('HRMS.xlsx')
        self.frames1()
        self.entry333.delete(0, END)

    def frames1(self):
        self.framedoc1.pack_forget()
        self.framedoc2.pack_forget()
        self.framedoc3.pack_forget()
        self.framenur1.pack_forget()
        self.framenur2.pack_forget()
        self.frameacc.pack_forget()
        self.framepharm.pack_forget()
        self.frame1.pack_forget()
        self.frame2.pack_forget()
        self.frame3.pack_forget()
        self.frame4.pack_forget()
        self.frame5.pack_forget()
        self.frame6.pack_forget()
        self.frame7.pack_forget()
        self.frame8.pack_forget()
        self.framea.pack_forget()
        self.frameb.pack_forget()
        self.framec.pack_forget()
        self.framed.pack_forget()
        self.framee.pack_forget()
        self.framef.pack_forget()
        self.frameI.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.framepass.pack_forget()
        self.frame1.pack()
        self.entry1.delete(0, END)
        self.entry2.delete(0, END)
        self.report()

    def framespass(self):
        self.framedoc1.pack_forget()
        self.framedoc2.pack_forget()
        self.framedoc3.pack_forget()
        self.framenur1.pack_forget()
        self.framenur2.pack_forget()
        self.frameacc.pack_forget()
        self.framepharm.pack_forget()
        self.frame1.pack_forget()
        self.frame2.pack_forget()
        self.frame3.pack_forget()
        self.frame4.pack_forget()
        self.frame5.pack_forget()
        self.frame6.pack_forget()
        self.frame7.pack_forget()
        self.frame8.pack_forget()
        self.framea.pack_forget()
        self.frameb.pack_forget()
        self.framec.pack_forget()
        self.framed.pack_forget()
        self.framee.pack_forget()
        self.framef.pack_forget()
        self.frameI.pack_forget()
        self.frame1.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.framepass.pack()

    def report(self):
        self.report3.cell(row=2, column=2).value = self.patient3.max_row - 1
        self.report3.cell(row=3, column=2).value = self.doctor3.max_row - 1
        self.report3.cell(row=4, column=2).value = self.nurse3.max_row - 1
        self.report3.cell(row=5, column=2
            ).value = self.laboratorist3.max_row - 1
        self.report3.cell(row=6, column=2).value = self.pharmacist3.max_row - 1
        self.report3.cell(row=7, column=2).value = self.accountant3.max_row - 1
        self.wb3.save('HRMS.xlsx')


<mask token>

import openpyxl
from tkinter import *
import tkinter.messagebox
import tkinter.simpledialog
import tkinter.colorchooser

class Hrms:
    def __init__(self):
        self.wb3 = openpyxl.load_workbook("HRMS.xlsx")
        self.patient3 = self.wb3.active
        self.patient3 = self.wb3["Patient"]
        self.doctor3 = self.wb3["Doctor"]
        self.nurse3 = self.wb3["Nurse"]
        self.laboratorist3 = self.wb3["Laboratorist"]
        self.pharmacist3 = self.wb3["Pharmacist"]
        self.accountant3 = self.wb3["Accountant"]
        self.appointment3 = self.wb3["Appointment"]
        self.surgery3 = self.wb3["Surgeries"]
        self.payment3 = self.wb3["Payments"]
        self.medicine3 = self.wb3["Medicines"]
        self.birth3 = self.wb3["Birth report"]
        self.death3 = self.wb3["Death report"]
        self.security3 = self.wb3["Security"]
        self.report3 = self.wb3["Report"]
        window = Tk()
        window.title("Hospital Record Management System")
        window.geometry("1350x490")
        window.resizable(0, 0)
        self.I = False
        self.II = False
        self.III = False
        self.IIII = False
        self.IIIII = False
        self.IIIIII = False
        self.J = False
        self.JJ = False
        self.JJJ = False
        self.JJJJ = False
        self.JJJJJ = False
        self.JJJJJJ = False
        self.frame1 = Frame(window)
        self.frame1.pack()
        label1 = Label(self.frame1, text="Hospital Record Management System", font=("Times new roman", 16))
        label1.grid(column=0, row=0, columnspan=3)
        label2 = Label(self.frame1, text="")
        label2.grid(column=4, row=0, pady=50)
        button1 = Button(self.frame1, text="Admin", bg="darkgrey", command=self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.frame1, text="Patient", bg="darkgrey", command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.frame1, text="Doctor", bg="darkgrey", command=self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.frame1, text="Nurse", bg="darkgrey", command=self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.frame1, text="Laboratorist", bg="darkgrey", command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.frame1, text="Pharmacist", bg="darkgrey", command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.frame1, text="Accountant", bg="darkgrey", command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button8 = Button(self.frame1, text="Home", bg="#444343", command=self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        self.frame2 = Frame(window)
        self.frame2.pack()
        label1 = Label(self.frame2, text="Hospital Record Management System", font=("Times new roman", 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.frame2, text="               ")
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.frame2, text="Admin", bg="lightgrey", command=self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.frame2, text="Patient", bg="darkgrey", command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.frame2, text="Doctor", bg="darkgrey", command=self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.frame2, text="Nurse", bg="darkgrey", command=self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.frame2, text="Laboratorist", bg="darkgrey", command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.frame2, text="Pharmacist", bg="darkgrey", command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.frame2, text="Accountant", bg="darkgrey", command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button8 = Button(self.frame2, text="Home", bg="#444343", command=self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        self.login1 = StringVar()
        self.pass1 = StringVar()
        label10 = Label(self.frame2,text="Username:", font=("Times new roman", 12), width=10)
        label10.grid(column=3, row=2)
        self.entry1 = Entry(self.frame2, textvariable=self.login1)
        self.entry1.grid(column=4, row=2)
        label11 = Label(self.frame2,text="Password:", font=("Times new roman", 12))
        label11.grid(column=3, row=3)
        self.entry2 = Entry(self.frame2, textvariable=self.pass1)
        self.entry2.grid(column=4, row=3)
        button8 = Button(self.frame2,text="Login ", bg="darkgrey", command=self.framesb)
        button8.grid(column=4, row=4, pady=10, ipadx=40)
        self.frame3 = Frame(window)
        self.frame3.pack()
        label1 = Label(self.frame3, text="Hospital Record Management System", font=("Times new roman", 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.frame3, text="               ")
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.frame3, text="Admin", bg="darkgrey", command=self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.frame3, text="Patient", bg="lightgrey", command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.frame3, text="Doctor", bg="darkgrey", command=self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.frame3, text="Nurse", bg="darkgrey", command=self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.frame3, text="Laboratorist", bg="darkgrey", command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.frame3, text="Pharmacist", bg="darkgrey", command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.frame3, text="Accountant", bg="darkgrey", command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button8 = Button(self.frame3, text="Home", bg="#444343", command=self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        self.login2 = StringVar()
        self.pass2 = StringVar()
        label10 = Label(self.frame3, text="Patient Id:", font=("Times new roman", 12), width=15)
        label10.grid(column=3, row=2)
        self.entry111 = Entry(self.frame3, width=15, textvariable=self.login2)
        self.entry111.grid(column=4, row=2)
        label11 = Label(self.frame3, text="Password:", font=("Times new roman", 12), width=15)
        label11.grid(column=3, row=3)
        self.entry222 = Entry(self.frame3, width=15, textvariable=self.pass2)
        self.entry222.grid(column=4, row=3)
        button1 = Button(self.frame3, text="Login", bg="darkgrey", command=self.framesJ)
        button1.grid(column=4, row=4, pady=10, ipadx=40)
        self.frame4 = Frame(window)
        self.frame4.pack()
        label1 = Label(self.frame4, text="Hospital Record Management System", font=("Times new roman", 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.frame4, text="               ")
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.frame4, text="Admin", bg="darkgrey", command=self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.frame4, text="Patient", bg="darkgrey", command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.frame4, text="Doctor", bg="lightgrey", command=self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.frame4, text="Nurse", bg="darkgrey", command=self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.frame4, text="Laboratorist", bg="darkgrey", command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.frame4, text="Pharmacist", bg="darkgrey", command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.frame4, text="Accountant", bg="darkgrey", command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button8 = Button(self.frame4, text="Home", bg="#444343", command=self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        self.login3 = StringVar()
        self.pass3 = StringVar()
        label10 = Label(self.frame4, text="Doctor Id:", font=("Times new roman", 12), width=15)
        label10.grid(column=3, row=2)
        self.entry112 = Entry(self.frame4, width=15, textvariable=self.login3)
        self.entry112.grid(column=4, row=2)
        label11 = Label(self.frame4, text="Password:", font=("Times new roman", 12), width=15)
        label11.grid(column=3, row=3)
        self.entry223 = Entry(self.frame4, width=15, textvariable=self.pass3)
        self.entry223.grid(column=4, row=3)
        button1 = Button(self.frame4, text="Login", bg="darkgrey", command=self.framesJ)
        button1.grid(column=4, row=4, pady=10, ipadx=40)
        self.frame5 = Frame(window)
        self.frame5.pack()
        label1 = Label(self.frame5, text="Hospital Record Management System", font=("Times new roman", 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.frame5, text="               ")
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.frame5, text="Admin", bg="darkgrey", command=self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.frame5, text="Patient", bg="darkgrey", command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.frame5, text="Doctor", bg="darkgrey", command=self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.frame5, text="Nurse", bg="lightgrey", command=self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.frame5, text="Laboratorist", bg="darkgrey", command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.frame5, text="Pharmacist", bg="darkgrey", command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.frame5, text="Accountant", bg="darkgrey", command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button8 = Button(self.frame5, text="Home", bg="#444343", command=self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        self.login4 = StringVar()
        self.pass4 = StringVar()
        label10 = Label(self.frame5, text="Nurse Id:", font=("Times new roman", 12), width=15)
        label10.grid(column=3, row=2)
        self.entry113 = Entry(self.frame5, width=15, textvariable=self.login4)
        self.entry113.grid(column=4, row=2)
        label11 = Label(self.frame5, text="Password:", font=("Times new roman", 12), width=15)
        label11.grid(column=3, row=3)
        self.entry224 = Entry(self.frame5, width=15, textvariable=self.pass4)
        self.entry224.grid(column=4, row=3)
        button1 = Button(self.frame5, text="Login", bg="darkgrey", command=self.framesJ)
        button1.grid(column=4, row=4, pady=10, ipadx=40)
        self.frame6 = Frame(window)
        self.frame6.pack()
        label1 = Label(self.frame6, text="Hospital Record Management System", font=("Times new roman", 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.frame6, text="               ")
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.frame6, text="Admin", bg="darkgrey", command=self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.frame6, text="Patient", bg="darkgrey", command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.frame6, text="Doctor", bg="darkgrey", command=self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.frame6, text="Nurse", bg="darkgrey", command=self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.frame6, text="Laboratorist", bg="lightgrey", command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.frame6, text="Pharmacist", bg="darkgrey", command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.frame6, text="Accountant", bg="darkgrey", command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button8 = Button(self.frame6, text="Home", bg="#444343", command=self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        self.login5 = StringVar()
        self.pass5 = StringVar()
        label10 = Label(self.frame6, text="Laboratorist Id:", font=("Times new roman", 12), width=15)
        label10.grid(column=3, row=2)
        self.entry114 = Entry(self.frame6, width=15, textvariable=self.login5)
        self.entry114.grid(column=4, row=2)
        label11 = Label(self.frame6, text="Password:", font=("Times new roman", 12), width=15)
        label11.grid(column=3, row=3)
        self.entry225 = Entry(self.frame6, width=15, textvariable=self.pass5)
        self.entry225.grid(column=4, row=3)
        button1 = Button(self.frame6, text="Login", bg="darkgrey", command=self.framesJ)
        button1.grid(column=4, row=4, pady=10, ipadx=40)
        self.frame7 = Frame(window)
        self.frame7.pack()
        label1 = Label(self.frame7, text="Hospital Record Management System", font=("Times new roman", 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.frame7, text="               ")
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.frame7, text="Admin", bg="darkgrey", command=self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.frame7, text="Patient", bg="darkgrey", command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.frame7, text="Doctor", bg="darkgrey", command=self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.frame7, text="Nurse", bg="darkgrey", command=self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.frame7, text="Laboratorist", bg="darkgrey", command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.frame7, text="Pharmacist", bg="lightgrey", command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.frame7, text="Accountant", bg="darkgrey", command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button8 = Button(self.frame7, text="Home", bg="#444343", command=self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        self.login6 = StringVar()
        self.pass6 = StringVar()
        label10 = Label(self.frame7, text="Pharmacist Id:", font=("Times new roman", 12), width=15)
        label10.grid(column=3, row=2)
        self.entry115 = Entry(self.frame7, width=15, textvariable=self.login6)
        self.entry115.grid(column=4, row=2)
        label11 = Label(self.frame7, text="Password:", font=("Times new roman", 12), width=15)
        label11.grid(column=3, row=3)
        self.entry226 = Entry(self.frame7, width=15, textvariable=self.pass6)
        self.entry226.grid(column=4, row=3)
        button1 = Button(self.frame7, text="Login", bg="darkgrey", command=self.framesJ)
        button1.grid(column=4, row=4, pady=10, ipadx=40)
        self.frame8 = Frame(window)
        self.frame8.pack()
        label1 = Label(self.frame8, text="Hospital Record Management System", font=("Times new roman", 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.frame8, text="               ")
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.frame8, text="Admin", bg="darkgrey", command=self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.frame8, text="Patient", bg="darkgrey", command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.frame8, text="Doctor", bg="darkgrey", command=self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.frame8, text="Nurse", bg="darkgrey", command=self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.frame8, text="Laboratorist", bg="darkgrey", command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.frame8, text="Pharmacist", bg="darkgrey", command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.frame8, text="Accountant", bg="lightgrey", command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button8 = Button(self.frame8, text="Home", bg="#444343", command=self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        self.login7 = StringVar()
        self.pass7 = StringVar()
        label10 = Label(self.frame8, text="Accountant Id:", font=("Times new roman", 12), width=15)
        label10.grid(column=3, row=2)
        self.entry116 = Entry(self.frame8, width=15, textvariable=self.login7)
        self.entry116.grid(column=4, row=2)
        label11 = Label(self.frame8, text="Password:", font=("Times new roman", 12), width=15)
        label11.grid(column=3, row=3)
        self.entry227 = Entry(self.frame8, width=15, textvariable=self.pass7)
        self.entry227.grid(column=4, row=3)
        button1 = Button(self.frame8, text="Login", bg="darkgrey", command=self.framesJ)
        button1.grid(column=4, row=4, pady=10, ipadx=40)
        self.framea = Frame(window)
        self.framea.pack()
        label1 = Label(self.framea, text="Hospital Record Management System", font=("Times new roman", 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.framea, text="               ")
        label2.grid(column=0, row=0, pady=50)
        labela = Label(self.framea, text="Admin", bg="#60a1f0")
        labela.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.framea, text="Patient", bg="darkgrey", command=self.framesb)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.framea, text="Doctor", bg="lightgrey", command=self.framesa)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.framea, text="Nurse", bg="darkgrey", command=self.framesc)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.framea, text="Laboratorist", bg="darkgrey", command=self.framesd)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.framea, text="Pharmacist", bg="darkgrey", command=self.framese)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.framea, text="Accountant", bg="darkgrey", command=self.framesf)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button7 = Button(self.framea, text="Appointments", bg="darkgrey", command=self.appoint)
        button7.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framea, text="Surgeries", bg="darkgrey", command=self.surg)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framea, text="Payments", bg="darkgrey", command=self.pay)
        button7.grid(column=3, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framea, text="Medicines", bg="darkgrey", command=self.medec)
        button7.grid(column=4, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framea, text="Birth report", bg="darkgrey", command=self.birthd)
        button7.grid(column=5, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framea, text="Death report", bg="darkgrey", command=self.deathd)
        button7.grid(column=6, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framea, text="Change Password", bg="darkgrey", command=self.framespass)
        button7.grid(column=7, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.framea, text="Home", bg="#444343", command=self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        label12 = Label(self.framea, text="1. Name:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=1)
        label12 = Label(self.framea, text="2. Doc Id:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=2)
        label12 = Label(self.framea, text="3. Age:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=3)
        label12 = Label(self.framea, text="4. Sex:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=4)
        label12 = Label(self.framea, text="5. Qualificatn:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=5)
        label12 = Label(self.framea, text="6. Speciality:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=6)
        label12 = Label(self.framea, text="7. Blood Type:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=7)
        label12 = Label(self.framea, text="8. Address:", font=("Times new roman", 12), width=10)
        label12.grid(column=4, row=1)
        label12 = Label(self.framea, text="9. Phone num:", font=("Times new roman", 12), width=15)
        label12.grid(column=4, row=2)
        label12 = Label(self.framea, text="10. Date of birth:", font=("Times new roman", 12), width=15)
        label12.grid(column=4, row=3)
        label12 = Label(self.framea, text="11. Date of join:", font=("Times new roman", 12), width=15)
        label12.grid(column=4, row=4)
        label12 = Label(self.framea, text="12. Salary:", font=("Times new roman", 12), width=10)
        label12.grid(column=4, row=5)
        label12 = Label(self.framea, text="13. Working days:", font=("Times new roman", 12), width=10)
        label12.grid(column=4, row=6)
        label12 = Label(self.framea, text="14. Timings:", font=("Times new roman", 12), width=10)
        label12.grid(column=4, row=7)
        label12 = Label(self.framea, text="15. Office num:", font=("Times new roman", 12), width=10)
        label12.grid(column=6, row=1)
        label12 = Label(self.framea, text="16. Password:", font=("Times new roman", 12), width=10)
        label12.grid(column=6, row=2)
        self.name1 = StringVar()
        self.id1 = StringVar()
        self.age1 = StringVar()
        self.sex1 = StringVar()
        self.quality1 = StringVar()
        self.special1 = StringVar()
        self.bloodtype1 = StringVar()
        self.address1 = StringVar()
        self.phonenum1 = StringVar()
        self.dateb1 = StringVar()
        self.datej1 = StringVar()
        self.salary1 = StringVar()
        self.work1 = StringVar()
        self.time1 = StringVar()
        self.office1 = StringVar()
        self.password1 = StringVar()
        self.entry29 = Entry(self.framea, textvariable=self.name1)
        self.entry29.grid(column=3, row=1)
        self.entry30 = Entry(self.framea, textvariable=self.id1)
        self.entry30.grid(column=3, row=2)
        self.entry31 = Entry(self.framea, textvariable=self.age1)
        self.entry31.grid(column=3, row=3)
        self.entry32 = Entry(self.framea, textvariable=self.sex1)
        self.entry32.grid(column=3, row=4)
        self.entry33 = Entry(self.framea, textvariable=self.quality1)
        self.entry33.grid(column=3, row=5)
        self.entry34 = Entry(self.framea, textvariable=self.special1)
        self.entry34.grid(column=3, row=6)
        self.entry35 = Entry(self.framea, textvariable=self.bloodtype1)
        self.entry35.grid(column=3, row=7)
        self.entry36 = Entry(self.framea, textvariable=self.address1)
        self.entry36.grid(column=5, row=1)
        self.entry37 = Entry(self.framea, textvariable=self.phonenum1)
        self.entry37.grid(column=5, row=2)
        self.entry38 = Entry(self.framea, textvariable=self.dateb1)
        self.entry38.grid(column=5, row=3)
        self.entry39 = Entry(self.framea, textvariable=self.datej1)
        self.entry39.grid(column=5, row=4)
        self.entry40 = Entry(self.framea, textvariable=self.salary1)
        self.entry40.grid(column=5, row=5)
        self.entry41 = Entry(self.framea, textvariable=self.work1)
        self.entry41.grid(column=5, row=6)
        self.entry42 = Entry(self.framea, textvariable=self.time1)
        self.entry42.grid(column=5, row=7)
        self.entry43 = Entry(self.framea, textvariable=self.office1)
        self.entry43.grid(column=7, row=1)
        self.entry44 = Entry(self.framea, textvariable=self.password1)
        self.entry44.grid(column=7, row=2)
        button11 = Button(self.framea, text="Add Doctor", width=15, bg="darkgrey", command=self.doctor)
        button11.grid(column=6, row=3)
        button12 = Button(self.framea, text="View Doctor List", width=15, bg="darkgrey", command=self.framesI)
        button12.grid(column=6, row=4)
        self.frameb = Frame(window)
        self.frameb.pack()
        label1 = Label(self.frameb, text="Hospital Record Management System", font=("Times new roman", 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.frameb, text="               ")
        label2.grid(column=0, row=0, pady=50)
        labela = Label(self.frameb, text="Admin", bg="#60a1f0")
        labela.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.frameb, text="Patient", bg="lightgrey", command=self.framesb)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.frameb, text="Doctor", bg="darkgrey", command=self.framesa)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.frameb, text="Nurse", bg="darkgrey", command=self.framesc)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.frameb, text="Laboratorist", bg="darkgrey", command=self.framesd)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.frameb, text="Pharmacist", bg="darkgrey", command=self.framese)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.frameb, text="Accountant", bg="darkgrey", command=self.framesf)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button7 = Button(self.frameb, text="Appointments", bg="darkgrey", command=self.appoint)
        button7.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.frameb, text="Surgeries", bg="darkgrey", command=self.surg)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.frameb, text="Payments", bg="darkgrey", command=self.pay)
        button7.grid(column=3, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.frameb, text="Medicines", bg="darkgrey", command=self.medec)
        button7.grid(column=4, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.frameb, text="Birth report", bg="darkgrey", command=self.birthd)
        button7.grid(column=5, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.frameb, text="Death report", bg="darkgrey", command=self.deathd)
        button7.grid(column=6, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.frameb, text="Change Password", bg="darkgrey", command=self.framespass)
        button7.grid(column=7, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.frameb, text="Home", bg="#444343", command=self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        label12 = Label(self.frameb, text="1. Name:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=1)
        label12 = Label(self.frameb, text="2. Patient Id:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=2)
        label12 = Label(self.frameb, text="3. Age:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=3)
        label12 = Label(self.frameb, text="4. Sex:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=4)
        label12 = Label(self.frameb, text="5. Blood Type:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=5)
        label12 = Label(self.frameb, text="6. Problem:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=6)
        label12 = Label(self.frameb, text="7. Address:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=7)
        label12 = Label(self.frameb, text="8. Phone num:", font=("Times new roman", 12), width=15)
        label12.grid(column=4, row=1)
        label12 = Label(self.frameb, text="9. Date of join:", font=("Times new roman", 12), width=15)
        label12.grid(column=4, row=2)
        label12 = Label(self.frameb, text="10. Password:", font=("Times new roman", 12), width=15)
        label12.grid(column=4, row=3)
        self.name2 = StringVar()
        self.id2 = StringVar()
        self.age2 = StringVar()
        self.sex2 = StringVar()
        self.bloodtype2 = StringVar()
        self.problem2 = StringVar()
        self.address2 = StringVar()
        self.phonenum2 = StringVar()
        self.datej2 = StringVar()
        self.password2 = StringVar()
        self.entry19 = Entry(self.frameb, textvariable=self.name2)
        self.entry19.grid(column=3, row=1)
        self.entry20 = Entry(self.frameb, textvariable=self.id2)
        self.entry20.grid(column=3, row=2)
        self.entry21 = Entry(self.frameb, textvariable=self.age2)
        self.entry21.grid(column=3, row=3)
        self.entry22 = Entry(self.frameb, textvariable=self.sex2)
        self.entry22.grid(column=3, row=4)
        self.entry23 = Entry(self.frameb, textvariable=self.bloodtype2)
        self.entry23.grid(column=3, row=5)
        self.entry24 = Entry(self.frameb, textvariable=self.problem2)
        self.entry24.grid(column=3, row=6)
        self.entry25 = Entry(self.frameb, textvariable=self.address2)
        self.entry25.grid(column=3, row=7)
        self.entry26 = Entry(self.frameb, textvariable=self.phonenum2)
        self.entry26.grid(column=5, row=1)
        self.entry27 = Entry(self.frameb, textvariable=self.datej2)
        self.entry27.grid(column=5, row=2)
        self.entry28 = Entry(self.frameb, textvariable=self.password2)
        self.entry28.grid(column=5, row=3)
        button9 = Button(self.frameb,text="Add Patient", width=15, bg="darkgrey", command=self.patient)
        button9.grid(column=4, row=4)
        button10 = Button(self.frameb,text="View Patient List", width=15, bg="darkgrey", command=self.framesI)
        button10.grid(column=4, row=5)
        self.framec = Frame(window)
        self.framec.pack()
        label1 = Label(self.framec, text="Hospital Record Management System", font=("Times new roman", 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.framec, text="               ")
        label2.grid(column=0, row=0, pady=50)
        labela = Label(self.framec, text="Admin", bg="#60a1f0")
        labela.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.framec, text="Patient", bg="darkgrey", command=self.framesb)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.framec, text="Doctor", bg="darkgrey", command=self.framesa)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.framec, text="Nurse", bg="lightgrey", command=self.framesc)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.framec, text="Laboratorist", bg="darkgrey", command=self.framesd)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.framec, text="Pharmacist", bg="darkgrey", command=self.framese)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.framec, text="Accountant", bg="darkgrey", command=self.framesf)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button7 = Button(self.framec, text="Appointments", bg="darkgrey", command=self.appoint)
        button7.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framec, text="Surgeries", bg="darkgrey", command=self.surg)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framec, text="Payments", bg="darkgrey", command=self.pay)
        button7.grid(column=3, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framec, text="Medicines", bg="darkgrey", command=self.medec)
        button7.grid(column=4, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framec, text="Birth report", bg="darkgrey", command=self.birthd)
        button7.grid(column=5, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framec, text="Death report", bg="darkgrey", command=self.deathd)
        button7.grid(column=6, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framec, text="Change Password", bg="darkgrey", command=self.framespass)
        button7.grid(column=7, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.framec, text="Home", bg="#444343", command=self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        label12 = Label(self.framec, text="1. Name:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=1)
        label12 = Label(self.framec, text="2. Nurse Id:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=2)
        label12 = Label(self.framec, text="3. Age:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=3)
        label12 = Label(self.framec, text="4. Sex:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=4)
        label12 = Label(self.framec, text="5. Blood Type:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=5)
        label12 = Label(self.framec, text="6. Address:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=6)
        label12 = Label(self.framec, text="7. Phone num:", font=("Times new roman", 12), width=15)
        label12.grid(column=2, row=7)
        label12 = Label(self.framec, text="8. Date of join:", font=("Times new roman", 12), width=15)
        label12.grid(column=4, row=1)
        label12 = Label(self.framec, text="9. Password:", font=("Times new roman", 12), width=15)
        label12.grid(column=4, row=2)
        self.name3 = StringVar()
        self.id3 = StringVar()
        self.age3 = StringVar()
        self.sex3 = StringVar()
        self.bloodtype3 = StringVar()
        self.address3 = StringVar()
        self.phonenum3 = StringVar()
        self.datej3 = StringVar()
        self.password3 = StringVar()
        entry45 = Entry(self.framec, textvariable=self.name3)
        entry45.grid(column=3, row=1)
        entry46 = Entry(self.framec, textvariable=self.id3)
        entry46.grid(column=3, row=2)
        entry47 = Entry(self.framec, textvariable=self.age3)
        entry47.grid(column=3, row=3)
        entry48 = Entry(self.framec, textvariable=self.sex3)
        entry48.grid(column=3, row=4)
        entry49 = Entry(self.framec, textvariable=self.bloodtype3)
        entry49.grid(column=3, row=5)
        entry50 = Entry(self.framec, textvariable=self.address3)
        entry50.grid(column=3, row=6)
        entry51 = Entry(self.framec, textvariable=self.phonenum3)
        entry51.grid(column=3, row=7)
        entry52 = Entry(self.framec, textvariable=self.datej3)
        entry52.grid(column=5, row=1)
        entry53 = Entry(self.framec, textvariable=self.password3)
        entry53.grid(column=5, row=2)
        button9 = Button(self.framec, text="Add Nurse", width=15, bg="darkgrey", command = self.nurse)
        button9.grid(column=4, row=3)
        button10 = Button(self.framec, text="View Nurse List", width=15, bg="darkgrey", command=self.framesI)
        button10.grid(column=4, row=4)
        self.framed = Frame(window)
        self.framed.pack()
        label1 = Label(self.framed, text="Hospital Record Management System", font=("Times new roman", 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.framed, text="               ")
        label2.grid(column=0, row=0, pady=50)
        labela = Label(self.framed, text="Admin", bg="#60a1f0")
        labela.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.framed, text="Patient", bg="darkgrey", command=self.framesb)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.framed, text="Doctor", bg="darkgrey", command=self.framesa)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.framed, text="Nurse", bg="darkgrey", command=self.framesc)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.framed, text="Laboratorist", bg="lightgrey", command=self.framesd)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.framed, text="Pharmacist", bg="darkgrey", command=self.framese)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.framed, text="Accountant", bg="darkgrey", command=self.framesf)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button7 = Button(self.framed, text="Appointments", bg="darkgrey", command=self.appoint)
        button7.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framed, text="Surgeries", bg="darkgrey", command=self.surg)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framed, text="Payments", bg="darkgrey", command=self.pay)
        button7.grid(column=3, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framed, text="Medicines", bg="darkgrey", command=self.medec)
        button7.grid(column=4, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framed, text="Birth report", bg="darkgrey", command=self.birthd)
        button7.grid(column=5, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framed, text="Death report", bg="darkgrey", command=self.deathd)
        button7.grid(column=6, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framed, text="Change Password", bg="darkgrey", command=self.framespass)
        button7.grid(column=7, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.framed, text="Home", bg="#444343", command=self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        label12 = Label(self.framed, text="1. Name:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=1)
        label12 = Label(self.framed, text="2. Laboratorist Id:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=2)
        label12 = Label(self.framed, text="3. Age:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=3)
        label12 = Label(self.framed, text="4. Sex:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=4)
        label12 = Label(self.framed, text="5. Blood Type:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=5)
        label12 = Label(self.framed, text="6. Address:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=6)
        label12 = Label(self.framed, text="7. Phone num:", font=("Times new roman", 12), width=15)
        label12.grid(column=2, row=7)
        label12 = Label(self.framed, text="8. Date of join:", font=("Times new roman", 12), width=15)
        label12.grid(column=4, row=1)
        label12 = Label(self.framed, text="9. Password:", font=("Times new roman", 12), width=15)
        label12.grid(column=4, row=2)
        self.name4 = StringVar()
        self.id4 = StringVar()
        self.age4 = StringVar()
        self.sex4 = StringVar()
        self.bloodtype4 = StringVar()
        self.address4 = StringVar()
        self.phonenum4 = StringVar()
        self.datej4 = StringVar()
        self.password4 = StringVar()
        entry54 = Entry(self.framed, textvariable=self.name4)
        entry54.grid(column=3, row=1)
        entry55 = Entry(self.framed, textvariable=self.id4)
        entry55.grid(column=3, row=2)
        entry56 = Entry(self.framed, textvariable=self.age4)
        entry56.grid(column=3, row=3)
        entry57 = Entry(self.framed, textvariable=self.sex4)
        entry57.grid(column=3, row=4)
        entry58 = Entry(self.framed, textvariable=self.bloodtype4)
        entry58.grid(column=3, row=5)
        entry59 = Entry(self.framed, textvariable=self.address4)
        entry59.grid(column=3, row=6)
        entry60 = Entry(self.framed, textvariable=self.phonenum4)
        entry60.grid(column=3, row=7)
        entry61 = Entry(self.framed, textvariable=self.datej4)
        entry61.grid(column=5, row=1)
        entry62 = Entry(self.framed, textvariable=self.password4)
        entry62.grid(column=5, row=2)
        button9 = Button(self.framed, text="Add Lab.st", width=15, bg="darkgrey", command = self.laboratorist)
        button9.grid(column=4, row=3)
        button10 = Button(self.framed, text="View Lab.st List", width=15, bg="darkgrey", command=self.framesI)
        button10.grid(column=4, row=4)
        self.framee = Frame(window)
        self.framee.pack()
        label1 = Label(self.framee, text="Hospital Record Management System", font=("Times new roman", 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.framee, text="               ")
        label2.grid(column=0, row=0, pady=50)
        labela = Label(self.framee, text="Admin", bg="#60a1f0")
        labela.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.framee, text="Patient", bg="darkgrey", command=self.framesb)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.framee, text="Doctor", bg="darkgrey", command=self.framesa)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.framee, text="Nurse", bg="darkgrey", command=self.framesc)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.framee, text="Laboratorist", bg="darkgrey", command=self.framesd)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.framee, text="Pharmacist", bg="lightgrey", command=self.framese)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.framee, text="Accountant", bg="darkgrey", command=self.framesf)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button7 = Button(self.framee, text="Appointments", bg="darkgrey", command=self.appoint)
        button7.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framee, text="Surgeries", bg="darkgrey", command=self.surg)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framee, text="Payments", bg="darkgrey", command=self.pay)
        button7.grid(column=3, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framee, text="Medicines", bg="darkgrey", command=self.medec)
        button7.grid(column=4, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framee, text="Birth report", bg="darkgrey", command=self.birthd)
        button7.grid(column=5, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framee, text="Death report", bg="darkgrey", command=self.deathd)
        button7.grid(column=6, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framee, text="Change Password", bg="darkgrey", command=self.framespass)
        button7.grid(column=7, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.framee, text="Home", bg="#444343", command=self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        label12 = Label(self.framee, text="1. Name:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=1)
        label12 = Label(self.framee, text="2. Pharmacist Id:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=2)
        label12 = Label(self.framee, text="3. Age:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=3)
        label12 = Label(self.framee, text="4. Sex:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=4)
        label12 = Label(self.framee, text="5. Blood Type:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=5)
        label12 = Label(self.framee, text="6. Address:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=6)
        label12 = Label(self.framee, text="7. Phone num:", font=("Times new roman", 12), width=15)
        label12.grid(column=2, row=7)
        label12 = Label(self.framee, text="8. Date of join:", font=("Times new roman", 12), width=15)
        label12.grid(column=4, row=1)
        label12 = Label(self.framee, text="9. Password:", font=("Times new roman", 12), width=15)
        label12.grid(column=4, row=2)
        self.name5 = StringVar()
        self.id5 = StringVar()
        self.age5 = StringVar()
        self.sex5 = StringVar()
        self.bloodtype5 = StringVar()
        self.address5 = StringVar()
        self.phonenum5 = StringVar()
        self.datej5 = StringVar()
        self.password5 = StringVar()
        entry63 = Entry(self.framee, textvariable=self.name5)
        entry63.grid(column=3, row=1)
        entry64 = Entry(self.framee, textvariable=self.id5)
        entry64.grid(column=3, row=2)
        entry65 = Entry(self.framee, textvariable=self.age5)
        entry65.grid(column=3, row=3)
        entry66 = Entry(self.framee, textvariable=self.sex5)
        entry66.grid(column=3, row=4)
        entry67 = Entry(self.framee, textvariable=self.bloodtype5)
        entry67.grid(column=3, row=5)
        entry68 = Entry(self.framee, textvariable=self.address5)
        entry68.grid(column=3, row=6)
        entry69 = Entry(self.framee, textvariable=self.phonenum5)
        entry69.grid(column=3, row=7)
        entry70 = Entry(self.framee, textvariable=self.datej5)
        entry70.grid(column=5, row=1)
        entry71 = Entry(self.framee, textvariable=self.password5)
        entry71.grid(column=5, row=2)
        button9 = Button(self.framee, text="Add Pharm.st", width=15, bg="darkgrey", command = self.pharmacist)
        button9.grid(column=4, row=3)
        button10 = Button(self.framee, text="View Pharm.st List", width=15, bg="darkgrey", command=self.framesI)
        button10.grid(column=4, row=4)
        self.framef = Frame(window)
        self.framef.pack()
        label1 = Label(self.framef, text="Hospital Record Management System", font=("Times new roman", 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.framef, text="               ")
        label2.grid(column=0, row=0, pady=50)
        labela = Label(self.framef, text="Admin", bg="#60a1f0")
        labela.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.framef, text="Patient", bg="darkgrey", command=self.framesb)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.framef, text="Doctor", bg="darkgrey", command=self.framesa)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.framef, text="Nurse", bg="darkgrey", command=self.framesc)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.framef, text="Laboratorist", bg="darkgrey", command=self.framesd)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.framef, text="Pharmacist", bg="darkgrey", command=self.framese)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.framef, text="Accountant", bg="lightgrey", command=self.framesf)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button7 = Button(self.framef, text="Appointments", bg="darkgrey", command=self.appoint)
        button7.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framef, text="Surgeries", bg="darkgrey", command=self.surg)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framef, text="Payments", bg="darkgrey", command=self.pay)
        button7.grid(column=3, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framef, text="Medicines", bg="darkgrey", command=self.medec)
        button7.grid(column=4, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framef, text="Birth report", bg="darkgrey", command=self.birthd)
        button7.grid(column=5, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framef, text="Death report", bg="darkgrey", command=self.deathd)
        button7.grid(column=6, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framef, text="Change Password", bg="darkgrey", command=self.framespass)
        button7.grid(column=7, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.framef, text="Home", bg="#444343", command=self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        label12 = Label(self.framef, text="1. Name:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=1)
        label12 = Label(self.framef, text="2. Accountant Id:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=2)
        label12 = Label(self.framef, text="3. Age:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=3)
        label12 = Label(self.framef, text="4. Sex:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=4)
        label12 = Label(self.framef, text="5. Blood Type:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=5)
        label12 = Label(self.framef, text="6. Address:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=6)
        label12 = Label(self.framef, text="7. Phone num:", font=("Times new roman", 12), width=15)
        label12.grid(column=2, row=7)
        label12 = Label(self.framef, text="8. Date of join:", font=("Times new roman", 12), width=15)
        label12.grid(column=4, row=1)
        label12 = Label(self.framef, text="9. Password:", font=("Times new roman", 12), width=15)
        label12.grid(column=4, row=2)
        self.name6 = StringVar()
        self.id6 = StringVar()
        self.age6 = StringVar()
        self.sex6 = StringVar()
        self.bloodtype6 = StringVar()
        self.address6 = StringVar()
        self.phonenum6 = StringVar()
        self.datej6 = StringVar()
        self.password6 = StringVar()
        entry72 = Entry(self.framef, textvariable=self.name6)
        entry72.grid(column=3, row=1)
        entry73 = Entry(self.framef, textvariable=self.id6)
        entry73.grid(column=3, row=2)
        entry74 = Entry(self.framef, textvariable=self.age6)
        entry74.grid(column=3, row=3)
        entry75 = Entry(self.framef, textvariable=self.sex6)
        entry75.grid(column=3, row=4)
        entry76 = Entry(self.framef, textvariable=self.bloodtype6)
        entry76.grid(column=3, row=5)
        entry77 = Entry(self.framef, textvariable=self.address6)
        entry77.grid(column=3, row=6)
        entry78 = Entry(self.framef, textvariable=self.phonenum6)
        entry78.grid(column=3, row=7)
        entry79 = Entry(self.framef, textvariable=self.datej6)
        entry79.grid(column=5, row=1)
        entry80 = Entry(self.framef, textvariable=self.password6)
        entry80.grid(column=5, row=2)
        button9 = Button(self.framef, text="Add Account.t", width=15, bg="darkgrey", command = self.accountant)
        button9.grid(column=4, row=3)
        button10 = Button(self.framef, text="View Account.t List", width=15, bg="darkgrey", command=self.framesI)
        button10.grid(column=4, row=4)
        self.frameI = Frame(window)
        self.frameI.pack()
        label1 = Label(self.frameI, text="Hospital Record Management System", font=("Times new roman", 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.frameI, text="               ")
        label2.grid(column=0, row=0, pady=50)
        labela = Label(self.frameI, text="Admin", bg="#60a1f0")
        labela.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.frameI, text="Patient", bg="darkgrey", command=self.framesb)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.frameI, text="Doctor", bg="darkgrey", command=self.framesa)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.frameI, text="Nurse", bg="darkgrey", command=self.framesc)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.frameI, text="Laboratorist", bg="darkgrey", command=self.framesd)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.frameI, text="Pharmacist", bg="darkgrey", command=self.framese)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.frameI, text="Accountant", bg="darkgrey", command=self.framesf)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button7 = Button(self.frameI, text="Appointments", bg="darkgrey", command=self.appoint)
        button7.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.frameI, text="Surgeries", bg="darkgrey", command=self.surg)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.frameI, text="Payments", bg="darkgrey", command=self.pay)
        button7.grid(column=3, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.frameI, text="Medicines", bg="darkgrey", command=self.medec)
        button7.grid(column=4, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.frameI, text="Birth report", bg="darkgrey", command=self.birthd)
        button7.grid(column=5, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.frameI, text="Death report", bg="darkgrey", command=self.deathd)
        button7.grid(column=6, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.frameI, text="Change Password", bg="darkgrey", command=self.framespass)
        button7.grid(column=7, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.frameI, text="Home", bg="#444343", command=self.framespass)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        self.text1 = Text(self.frameI,height=20, width=193, font=("Times new roman", 9), bg = "lightgrey")
        self.text1.grid(column=1, row=1, columnspan=8, rowspan=7)
        self.framedoc1 = Frame(window)
        self.framedoc1.pack()
        label1 = Label(self.framedoc1, text="Hospital Record Management System", font=("Times new roman", 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.framedoc1, text="               ")
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.framedoc1, text="Admin", bg="darkgrey", command=self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.framedoc1, text="Patient", bg="darkgrey", command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.framedoc1, text="Doctor", bg="darkgrey", command=self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.framedoc1, text="Nurse", bg="darkgrey", command=self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.framedoc1, text="Laboratorist", bg="darkgrey", command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.framedoc1, text="Pharmacist", bg="darkgrey", command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.framedoc1, text="Accountant", bg="darkgrey", command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button8 = Button(self.framedoc1, text="Appointments", bg="lightgrey", command=self.framesdoc1)
        button8.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framedoc1, text="Surgeries", bg="darkgrey", command=self.framesdoc2)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framedoc1, text="Medicines", bg="darkgrey", command=self.framesdoc3)
        button7.grid(column=3, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framedoc1, text="Add Appointment", bg="darkgrey", command=self.appointment)
        button7.grid(column=4, row=3, padx=10, pady=10, ipadx=30, columnspan=2)
        button7 = Button(self.framedoc1, text="View Appointments", bg="darkgrey", command=self.appoint1)
        button7.grid(column=4, row=4, padx=10, pady=10, ipadx=30, columnspan=2)
        button7 = Button(self.framedoc1, text="Change Password", bg="darkgrey", command=self.framespass)
        button7.grid(column=4, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.framedoc1, text="Home", bg="#444343", command=self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        label12 = Label(self.framedoc1, text="1. Patient Name:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=1)
        label12 = Label(self.framedoc1, text="2. Patient Id:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=2)
        label12 = Label(self.framedoc1, text="3. problem:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=3)
        label12 = Label(self.framedoc1, text="4. day:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=4)
        label12 = Label(self.framedoc1, text="5. Time:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=5)
        label12 = Label(self.framedoc1, text="6. Status:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=6)
        label12 = Label(self.framedoc1, text="7. Doctor Ic:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=7)
        self.app1 = StringVar()
        self.app2 = StringVar()
        self.app3 = StringVar()
        self.app4 = StringVar()
        self.app5 = StringVar()
        self.app6 = StringVar()
        self.app7 = StringVar()
        entry45 = Entry(self.framedoc1, textvariable=self.app1)
        entry45.grid(column=3, row=1)
        entry46 = Entry(self.framedoc1, textvariable=self.app2)
        entry46.grid(column=3, row=2)
        entry47 = Entry(self.framedoc1, textvariable=self.app3)
        entry47.grid(column=3, row=3)
        entry48 = Entry(self.framedoc1, textvariable=self.app4)
        entry48.grid(column=3, row=4)
        entry49 = Entry(self.framedoc1, textvariable=self.app5)
        entry49.grid(column=3, row=5)
        entry50 = Entry(self.framedoc1, textvariable=self.app6)
        entry50.grid(column=3, row=6)
        entry51 = Entry(self.framedoc1, textvariable=self.app7)
        entry51.grid(column=3, row=7)

        self.framedoc2 = Frame(window)
        self.framedoc2.pack()
        label1 = Label(self.framedoc2, text="Hospital Record Management System", font=("Times new roman", 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.framedoc2, text="               ")
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.framedoc2, text="Admin", bg="darkgrey", command=self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.framedoc2, text="Patient", bg="darkgrey", command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.framedoc2, text="Doctor", bg="darkgrey", command=self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.framedoc2, text="Nurse", bg="darkgrey", command=self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.framedoc2, text="Laboratorist", bg="darkgrey", command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.framedoc2, text="Pharmacist", bg="darkgrey", command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.framedoc2, text="Accountant", bg="darkgrey", command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button8 = Button(self.framedoc2, text="Appointments", bg="darkgrey", command=self.framesdoc1)
        button8.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framedoc2, text="Surgeries", bg="lightgrey", command=self.framesdoc2)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framedoc2, text="Medicines", bg="darkgrey", command=self.framesdoc3)
        button7.grid(column=3, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framedoc2, text="Add Operations", bg="darkgrey", command=self.surg1)
        button7.grid(column=4, row=3, padx=10, pady=10, ipadx=30, columnspan=2)
        button7 = Button(self.framedoc2, text="View Operations", bg="darkgrey", command=self.framesda)
        button7.grid(column=4, row=4, padx=10, pady=10, ipadx=30, columnspan=2)
        button7 = Button(self.framedoc2, text="Change Password", bg="darkgrey", command=self.framespass)
        button7.grid(column=4, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.framedoc2, text="Home", bg="#444343", command=self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        label12 = Label(self.framedoc2, text="1. Operation Name:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=1)
        label12 = Label(self.framedoc2, text="2. Patient Id:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=2)
        label12 = Label(self.framedoc2, text="3. Date:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=3)
        label12 = Label(self.framedoc2, text="4. Cost:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=4)
        label12 = Label(self.framedoc2, text="5. Doctor Id:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=5)
        self.sur1 = StringVar()
        self.sur2 = StringVar()
        self.sur3 = StringVar()
        self.sur4 = StringVar()
        self.sur5 = StringVar()
        self.sur6 = StringVar()
        self.sur7 = StringVar()
        entry45 = Entry(self.framedoc2, textvariable=self.sur1)
        entry45.grid(column=3, row=1)
        entry46 = Entry(self.framedoc2, textvariable=self.sur2)
        entry46.grid(column=3, row=2)
        entry47 = Entry(self.framedoc2, textvariable=self.sur3)
        entry47.grid(column=3, row=3)
        entry48 = Entry(self.framedoc2, textvariable=self.sur4)
        entry48.grid(column=3, row=4)
        entry49 = Entry(self.framedoc2, textvariable=self.sur5)
        entry49.grid(column=3, row=5)

        self.framedoc3 = Frame(window)
        self.framedoc3.pack()
        label1 = Label(self.framedoc3, text="Hospital Record Management System", font=("Times new roman", 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.framedoc3, text="               ")
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.framedoc3, text="Admin", bg="darkgrey", command=self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.framedoc3, text="Patient", bg="darkgrey", command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.framedoc3, text="Doctor", bg="darkgrey", command=self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.framedoc3, text="Nurse", bg="darkgrey", command=self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.framedoc3, text="Laboratorist", bg="darkgrey", command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.framedoc3, text="Pharmacist", bg="darkgrey", command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.framedoc3, text="Accountant", bg="darkgrey", command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button8 = Button(self.framedoc3, text="Appointments", bg="darkgrey", command=self.framesdoc1)
        button8.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framedoc3, text="Surgeries", bg="darkgrey", command=self.framesdoc2)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framedoc3, text="Medicines", bg="lightgrey", command=self.framesdoc3)
        button7.grid(column=3, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framedoc3, text="Add Prescription", bg="darkgrey", command=self.medicine)
        button7.grid(column=4, row=3, padx=10, pady=10, ipadx=30, columnspan=2)
        button7 = Button(self.framedoc3, text="View Prescriptions", bg="darkgrey", command=self.medec1)
        button7.grid(column=4, row=4, padx=10, pady=10, ipadx=30, columnspan=2)
        button7 = Button(self.framedoc3, text="Change Password", bg="darkgrey", command=self.frames1)
        button7.grid(column=4, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.framedoc3, text="Home", bg="#444343", command=self.framespass)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        label12 = Label(self.framedoc3, text="1. Patient Id:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=1)
        label12 = Label(self.framedoc3, text="2. Problem:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=2)
        label12 = Label(self.framedoc3, text="3. Prescription:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=3)
        label12 = Label(self.framedoc3, text="4. Cost:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=4)
        label12 = Label(self.framedoc3, text="5. Doctor Id:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=5)
        self.med1 = StringVar()
        self.med2 = StringVar()
        self.med3 = StringVar()
        self.med4 = StringVar()
        self.med5 = StringVar()
        entry45 = Entry(self.framedoc3, textvariable=self.med1)
        entry45.grid(column=3, row=1)
        entry46 = Entry(self.framedoc3, textvariable=self.med2)
        entry46.grid(column=3, row=2)
        entry47 = Entry(self.framedoc3, textvariable=self.med3)
        entry47.grid(column=3, row=3)
        entry48 = Entry(self.framedoc3, textvariable=self.med4)
        entry48.grid(column=3, row=4)
        entry49 = Entry(self.framedoc3, textvariable=self.med5)
        entry49.grid(column=3, row=5)
        self.frameacc = Frame(window)
        self.frameacc.pack()
        label1 = Label(self.frameacc, text="Hospital Record Management System", font=("Times new roman", 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.frameacc, text="               ")
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.frameacc, text="Admin", bg="darkgrey", command=self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.frameacc, text="Patient", bg="darkgrey", command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.frameacc, text="accor", bg="darkgrey", command=self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.frameacc, text="Nurse", bg="darkgrey", command=self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.frameacc, text="Laboratorist", bg="darkgrey", command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.frameacc, text="Pharmacist", bg="darkgrey", command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.frameacc, text="Accountant", bg="darkgrey", command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button7 = Button(self.frameacc, text="Payments", bg="lightgrey", command=self.framesacc)
        button7.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.frameacc, text="Add Payment", bg="darkgrey", command=self.payment)
        button7.grid(column=4, row=3, padx=10, pady=10, ipadx=30, columnspan=2)
        button7 = Button(self.frameacc, text="View Payments", bg="darkgrey", command=self.pay1)
        button7.grid(column=4, row=4, padx=10, pady=10, ipadx=30, columnspan=2)
        button7 = Button(self.frameacc, text="Change Password", bg="darkgrey", command=self.framespass)
        button7.grid(column=4, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.frameacc, text="Home", bg="#444343", command=self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        label12 = Label(self.frameacc, text="1. Patient Id:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=1)
        label12 = Label(self.frameacc, text="2. Doctor fee:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=2)
        label12 = Label(self.frameacc, text="3. Operation fee:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=3)
        label12 = Label(self.frameacc, text="4. Bed fee:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=4)
        label12 = Label(self.frameacc, text="5. Medicine fee:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=5)
        label12 = Label(self.frameacc, text="6. Food fee:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=6)
        label12 = Label(self.frameacc, text="7. Blood fee:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=7)
        self.acc1 = StringVar()
        self.acc2 = StringVar()
        self.acc3 = StringVar()
        self.acc4 = StringVar()
        self.acc5 = StringVar()
        self.acc6 = StringVar()
        self.acc7 = StringVar()
        entry45 = Entry(self.frameacc, textvariable=self.acc1)
        entry45.grid(column=3, row=1)
        entry46 = Entry(self.frameacc, textvariable=self.acc2)
        entry46.grid(column=3, row=2)
        entry47 = Entry(self.frameacc, textvariable=self.acc3)
        entry47.grid(column=3, row=3)
        entry48 = Entry(self.frameacc, textvariable=self.acc4)
        entry48.grid(column=3, row=4)
        entry49 = Entry(self.frameacc, textvariable=self.acc5)
        entry49.grid(column=3, row=5)
        entry49 = Entry(self.frameacc, textvariable=self.acc6)
        entry49.grid(column=3, row=6)
        entry49 = Entry(self.frameacc, textvariable=self.acc7)
        entry49.grid(column=3, row=7)
        self.framepharm = Frame(window)
        self.framepharm.pack()
        label1 = Label(self.framepharm, text="Hospital Record Management System", font=("Times new roman", 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.framepharm, text="               ")
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.framepharm, text="Admin", bg="darkgrey", command=self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.framepharm, text="Patient", bg="darkgrey", command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.framepharm, text="accor", bg="darkgrey", command=self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.framepharm, text="Nurse", bg="darkgrey", command=self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.framepharm, text="Laboratorist", bg="darkgrey", command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.framepharm, text="Pharmacist", bg="darkgrey", command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.framepharm, text="Accountant", bg="darkgrey", command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button7 = Button(self.framepharm, text="Medicines", bg="lightgrey", command=self.framespharm)
        button7.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framepharm, text="Add Prescriptions", bg="darkgrey", command=self.medicine)
        button7.grid(column=4, row=3, padx=10, pady=10, ipadx=30, columnspan=2)
        button7 = Button(self.framepharm, text="View Prescriptions", bg="darkgrey", command=self.medec2)
        button7.grid(column=4, row=4, padx=10, pady=10, ipadx=30, columnspan=2)
        button7 = Button(self.framepharm, text="Change Password", bg="darkgrey", command=self.framespass)
        button7.grid(column=4, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.framepharm, text="Home", bg="#444343", command=self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        label12 = Label(self.framepharm, text="1. Patient Id:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=1)
        label12 = Label(self.framepharm, text="2. Problem:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=2)
        label12 = Label(self.framepharm, text="3. Prescription:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=3)
        label12 = Label(self.framepharm, text="4. Cost:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=4)
        label12 = Label(self.framepharm, text="5. Doctor Id:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=5)
        self.med1 = StringVar()
        self.med2 = StringVar()
        self.med3 = StringVar()
        self.med4 = StringVar()
        self.med5 = StringVar()
        entry45 = Entry(self.framepharm, textvariable=self.med1)
        entry45.grid(column=3, row=1)
        entry46 = Entry(self.framepharm, textvariable=self.med2)
        entry46.grid(column=3, row=2)
        entry47 = Entry(self.framepharm, textvariable=self.med3)
        entry47.grid(column=3, row=3)
        entry48 = Entry(self.framepharm, textvariable=self.med4)
        entry48.grid(column=3, row=4)
        entry49 = Entry(self.framepharm, textvariable=self.med5)
        entry49.grid(column=3, row=5)
        self.framenur1 = Frame(window)
        self.framenur1.pack()
        label1 = Label(self.framenur1, text="Hospital Record Management System", font=("Times new roman", 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.framenur1, text="               ")
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.framenur1, text="Admin", bg="darkgrey", command=self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.framenur1, text="Patient", bg="darkgrey", command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.framenur1, text="Doctor", bg="darkgrey", command=self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.framenur1, text="Nurse", bg="darkgrey", command=self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.framenur1, text="Laboratorist", bg="darkgrey", command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.framenur1, text="Pharmacist", bg="darkgrey", command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.framenur1, text="Accountant", bg="darkgrey", command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button8 = Button(self.framenur1, text="Birth report", bg="lightgrey", command=self.framesnur1)
        button8.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framenur1, text="Death report", bg="darkgrey", command=self.framesnur2)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framenur1, text="Add Birth report", bg="darkgrey", command=self.birthreport)
        button7.grid(column=4, row=3, padx=10, pady=10, ipadx=30, columnspan=2)
        button7 = Button(self.framenur1, text="View Birth report", bg="darkgrey", command=self.birth1)
        button7.grid(column=4, row=4, padx=10, pady=10, ipadx=30, columnspan=2)
        button7 = Button(self.framenur1, text="Change Password", bg="darkgrey", command=self.framespass)
        button7.grid(column=4, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.framenur1, text="Home", bg="#444343", command=self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        label12 = Label(self.framenur1, text="1. Date of birth:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=1)
        label12 = Label(self.framenur1, text="2. Time of Birth:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=2)
        label12 = Label(self.framenur1, text="3. Father name:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=3)
        label12 = Label(self.framenur1, text="4. Mother name:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=4)
        label12 = Label(self.framenur1, text="5. Parent Ph. Num:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=5)
        label12 = Label(self.framenur1, text="6. Sex:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=6)
        self.nur1 = StringVar()
        self.nur2 = StringVar()
        self.nur3 = StringVar()
        self.nur4 = StringVar()
        self.nur5 = StringVar()
        self.nur6 = StringVar()
        entry45 = Entry(self.framenur1, textvariable=self.nur1)
        entry45.grid(column=3, row=1)
        entry46 = Entry(self.framenur1, textvariable=self.nur2)
        entry46.grid(column=3, row=2)
        entry47 = Entry(self.framenur1, textvariable=self.nur3)
        entry47.grid(column=3, row=3)
        entry48 = Entry(self.framenur1, textvariable=self.nur4)
        entry48.grid(column=3, row=4)
        entry49 = Entry(self.framenur1, textvariable=self.nur5)
        entry49.grid(column=3, row=5)
        entry49 = Entry(self.framenur1, textvariable=self.nur6)
        entry49.grid(column=3, row=6)
        self.framenur2 = Frame(window)
        self.framenur2.pack()
        label1 = Label(self.framenur2, text="Hospital Record Management System", font=("Times new roman", 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.framenur2, text="               ")
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.framenur2, text="Admin", bg="darkgrey", command=self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.framenur2, text="Patient", bg="darkgrey", command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.framenur2, text="Doctor", bg="darkgrey", command=self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.framenur2, text="Nurse", bg="darkgrey", command=self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.framenur2, text="Laboratorist", bg="darkgrey", command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.framenur2, text="Pharmacist", bg="darkgrey", command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.framenur2, text="Accountant", bg="darkgrey", command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button8 = Button(self.framenur2, text="Birth report", bg="darkgrey", command=self.framesnur1)
        button8.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framenur2, text="Death report", bg="lightgrey", command=self.framesnur2)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framenur2, text="Add Death report", bg="darkgrey", command=self.deathreport)
        button7.grid(column=4, row=3, padx=10, pady=10, ipadx=30, columnspan=2)
        button7 = Button(self.framenur2, text="View Death report", bg="darkgrey", command=self.death1)
        button7.grid(column=4, row=4, padx=10, pady=10, ipadx=30, columnspan=2)
        button7 = Button(self.framenur2, text="Change Password", bg="darkgrey", command=self.framespass)
        button7.grid(column=4, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.framenur2, text="Home", bg="#444343", command=self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        label12 = Label(self.framenur2, text="1. Victim's Name:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=1)
        label12 = Label(self.framenur2, text="2. Date of birth:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=2)
        label12 = Label(self.framenur2, text="3. Date of Death:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=3)
        label12 = Label(self.framenur2, text="4. Time of Death:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=4)
        label12 = Label(self.framenur2, text="5. Parent Ph. Num:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=5)
        label12 = Label(self.framenur2, text="6. Sex:", font=("Times new roman", 12), width=10)
        label12.grid(column=2, row=6)
        self.dea1 = StringVar()
        self.dea2 = StringVar()
        self.dea3 = StringVar()
        self.dea4 = StringVar()
        self.dea5 = StringVar()
        self.dea6 = StringVar()
        entry45 = Entry(self.framenur2, textvariable=self.dea1)
        entry45.grid(column=3, row=1)
        entry46 = Entry(self.framenur2, textvariable=self.dea2)
        entry46.grid(column=3, row=2)
        entry47 = Entry(self.framenur2, textvariable=self.dea3)
        entry47.grid(column=3, row=3)
        entry48 = Entry(self.framenur2, textvariable=self.dea4)
        entry48.grid(column=3, row=4)
        entry49 = Entry(self.framenur2, textvariable=self.dea5)
        entry49.grid(column=3, row=5)
        entry49 = Entry(self.framenur2, textvariable=self.dea6)
        entry49.grid(column=3, row=6)
        self.framepass = Frame(window)
        self.framepass.pack()
        label1 = Label(self.framepass, text="Hospital Record Management System", font=("Times new roman", 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.framepass, text="               ")
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.framepass, text="Admin", bg="darkgrey", command=self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.framepass, text="Patient", bg="darkgrey", command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.framepass, text="Doctor", bg="darkgrey", command=self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.framepass, text="Nurse", bg="darkgrey", command=self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.framepass, text="Laboratorist", bg="darkgrey", command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.framepass, text="Pharmacist", bg="darkgrey", command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.framepass, text="Accountant", bg="darkgrey", command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button8 = Button(self.framepass, text="Home", bg="#444343", command=self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        button7 = Button(self.framepass, text="Submit", bg="darkgrey", command=self.activate)
        button7.grid(column=4, row=4, padx=10, pady=10, ipadx=37.5)
        self.passs = StringVar()
        label11 = Label(self.framepass, text="Enter new password:", font=("Times new roman", 12), width=15)
        label11.grid(column=1, row=4, columnspan=2)
        self.entry333 = Entry(self.framepass, width=15, textvariable=self.passs)
        self.entry333.grid(column=3, row=4)
        self.frameda = Frame(window)
        self.frameda.pack()
        label1 = Label(self.frameda, text="Hospital Record Management System", font=("Times new roman", 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.frameda, text="               ")
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.frameda, text="Admin", bg="darkgrey", command=self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.frameda, text="Patient", bg="darkgrey", command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.frameda, text="Doctor", bg="darkgrey", command=self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.frameda, text="Nurse", bg="darkgrey", command=self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.frameda, text="Laboratorist", bg="darkgrey", command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.frameda, text="Pharmacist", bg="darkgrey", command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.frameda, text="Accountant", bg="darkgrey", command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button7 = Button(self.frameda, text="Appointments", bg="darkgrey", command=self.appoint1)
        button7.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.frameda, text="Surgeries", bg="darkgrey", command=self.surg1)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.frameda, text="Medicines", bg="darkgrey", command=self.medec1)
        button7.grid(column=3, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.frameda, text="Back", bg="darkgrey", command=self.framesdoc1)
        button7.grid(column=4, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.frameda, text="Home", bg="#444343", command=self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        self.text2 = Text(self.frameda, height=20, width=193, font=("Times new roman", 9), bg="lightgrey")
        self.text2.grid(column=1, row=1, columnspan=8, rowspan=7)
        self.framedb = Frame(window)
        self.framedb.pack()
        label1 = Label(self.framedb, text="Hospital Record Management System", font=("Times new roman", 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.framedb, text="               ")
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.framedb, text="Admin", bg="darkgrey", command=self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.framedb, text="Patient", bg="darkgrey", command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.framedb, text="Doctor", bg="darkgrey", command=self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.framedb, text="Nurse", bg="darkgrey", command=self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.framedb, text="Laboratorist", bg="darkgrey", command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.framedb, text="Pharmacist", bg="darkgrey", command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.framedb, text="Accountant", bg="darkgrey", command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button7 = Button(self.framedb, text="Birth report", bg="darkgrey", command=self.birth1)
        button7.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framedb, text="Death report", bg="darkgrey", command=self.death1)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framedb, text="Back", bg="darkgrey", command=self.framesnur1)
        button7.grid(column=3, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.framedb, text="Home", bg="#444343", command=self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        self.text3 = Text(self.framedb, height=20, width=193, font=("Times new roman", 9), bg="lightgrey")
        self.text3.grid(column=1, row=1, columnspan=8, rowspan=7)
        self.framedc = Frame(window)
        self.framedc.pack()
        label1 = Label(self.framedc, text="Hospital Record Management System", font=("Times new roman", 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.framedc, text="               ")
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.framedc, text="Admin", bg="darkgrey", command=self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.framedc, text="Patient", bg="darkgrey", command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.framedc, text="Doctor", bg="darkgrey", command=self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.framedc, text="Nurse", bg="darkgrey", command=self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.framedc, text="Laboratorist", bg="darkgrey", command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.framedc, text="Pharmacist", bg="darkgrey", command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.framedc, text="Accountant", bg="darkgrey", command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button7 = Button(self.framedc, text="Payment", bg="lightgrey", command=self.pay1)
        button7.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framedc, text="Back", bg="darkgrey", command=self.framesacc)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.framedc, text="Home", bg="#444343", command=self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        self.text4 = Text(self.framedc, height=20, width=193, font=("Times new roman", 9), bg="lightgrey")
        self.text4.grid(column=1, row=1, columnspan=8, rowspan=7)
        self.framedd = Frame(window)
        self.framedd.pack()
        label1 = Label(self.framedd, text="Hospital Record Management System", font=("Times new roman", 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.framedd, text="               ")
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.framedd, text="Admin", bg="darkgrey", command=self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.framedd, text="Patient", bg="darkgrey", command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.framedd, text="Doctor", bg="darkgrey", command=self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.framedd, text="Nurse", bg="darkgrey", command=self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.framedd, text="Laboratorist", bg="darkgrey", command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.framedd, text="Pharmacist", bg="darkgrey", command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.framedd, text="Accountant", bg="darkgrey", command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button7 = Button(self.framedd, text="Medicine", bg="lightgrey", command=self.medec2)
        button7.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framedd, text="Back", bg="darkgrey", command=self.framespharm)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.framedd, text="Home", bg="#444343", command=self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        self.text5 = Text(self.framedd, height=20, width=193, font=("Times new roman", 9), bg="lightgrey")
        self.text5.grid(column=1, row=1, columnspan=8, rowspan=7)
        self.framede = Frame(window)
        self.framede.pack()
        label1 = Label(self.framede, text="Hospital Record Management System", font=("Times new roman", 16))
        label1.grid(column=2, row=0, columnspan=4)
        label2 = Label(self.framede, text="               ")
        label2.grid(column=0, row=0, pady=50)
        button1 = Button(self.framede, text="Admin", bg="darkgrey", command=self.frames11)
        button1.grid(column=0, row=1, pady=10, ipadx=50)
        button2 = Button(self.framede, text="Patient", bg="darkgrey", command=self.frames12)
        button2.grid(column=0, row=2, pady=10, ipadx=50)
        button3 = Button(self.framede, text="Doctor", bg="darkgrey", command=self.frames13)
        button3.grid(column=0, row=3, pady=10, ipadx=50)
        button4 = Button(self.framede, text="Nurse", bg="darkgrey", command=self.frames14)
        button4.grid(column=0, row=4, pady=10, ipadx=52.5)
        button5 = Button(self.framede, text="Laboratorist", bg="darkgrey", command=self.frames15)
        button5.grid(column=0, row=5, pady=10, ipadx=37.5)
        button6 = Button(self.framede, text="Pharmacist", bg="darkgrey", command=self.frames16)
        button6.grid(column=0, row=6, pady=10, ipadx=39.5)
        button7 = Button(self.framede, text="Accountant", bg="darkgrey", command=self.frames17)
        button7.grid(column=0, row=7, padx=10, pady=10, ipadx=37.5)
        button7 = Button(self.framede, text="Appointments", bg="lightgrey", command=self.a1)
        button7.grid(column=1, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framede, text="Surgeries", bg="lightgrey", command=self.a2)
        button7.grid(column=2, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framede, text="Payments", bg="lightgrey", command=self.a4)
        button7.grid(column=3, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framede, text="Medicines", bg="lightgrey", command=self.a3)
        button7.grid(column=4, row=8, padx=10, pady=10, ipadx=27.5)
        button7 = Button(self.framede, text="Change password", bg="darkgrey", command=self.framespass)
        button7.grid(column=5, row=8, padx=10, pady=10, ipadx=30, columnspan=2)
        button8 = Button(self.framede, text="Home", bg="#444343", command=self.frames1)
        button8.grid(column=0, row=8, padx=5, pady=10, ipadx=53.5)
        self.text6 = Text(self.framede, height=20, width=193, font=("Times new roman", 9), bg="lightgrey")
        self.text6.grid(column=1, row=1, columnspan=8, rowspan=7)
        window.mainloop()
    def framesde(self):
        self.frame1.pack_forget()
        self.frame2.pack_forget()
        self.frame3.pack_forget()
        self.frame4.pack_forget()
        self.frame5.pack_forget()
        self.frame6.pack_forget()
        self.frame7.pack_forget()
        self.frame8.pack_forget()
        self.framede.pack()
    def a1(self):
        self.framesde()
        self.text6.delete(1.0, END)
        self.list1 = []
        self.list2 = []
        for i in range(1, self.appointment3.max_row + 1):
            for j in range(1, self.appointment3.max_column + 1):
                k = len(str(self.appointment3.cell(row=i, column=j).value))
                y = str(self.appointment3.cell(row=i, column=j).value) + " " * (12 - k)
                self.list1.append(y)
            for k in range(1, self.appointment3.max_column + 1):
                z = str(self.appointment3.cell(row=i, column=j).value)
                self.list2.append(z)
            if str(self.login2.get()) in self.list2:
                self.text6.insert(END, self.list1)
                self.text6.insert(END, "\n")
            self.list2 = []
            self.list1 = []
    def a2(self):
        self.framesde()
        self.text6.delete(1.0, END)
        self.list1 = []
        self.list2 = []
        for i in range(1, self.surgery3.max_row + 1):
            for j in range(1, self.surgery3.max_column + 1):
                k = len(str(self.surgery3.cell(row=i, column=j).value))
                y = str(self.surgery3.cell(row=i, column=j).value) + " " * (12 - k)
                self.list1.append(y)
            for k in range(1, self.surgery3.max_column + 1):
                z = str(self.surgery3.cell(row=i, column=j).value)
                self.list2.append(z)
            if str(self.login2.get()) in self.list2:
                self.text6.insert(END, self.list1)
                self.text6.insert(END, "\n")
            self.list2 = []
            self.list1 = []
    def a3(self):
        self.framesde()
        self.text6.delete(1.0, END)
        self.list1 = []
        self.list2 = []
        for i in range(1, self.medicine3.max_row + 1):
            for j in range(1, self.medicine3.max_column + 1):
                k = len(str(self.medicine3.cell(row=i, column=j).value))
                y = str(self.medicine3.cell(row=i, column=j).value) + " " * (12 - k)
                self.list1.append(y)
            for k in range(1, self.medicine3.max_column + 1):
                z = str(self.medicine3.cell(row=i, column=j).value)
                self.list2.append(z)
            if str(self.login2.get()) in self.list2:
                self.text6.insert(END, self.list1)
                self.text6.insert(END, "\n")
            self.list2 = []
            self.list1 = []
    def a4(self):
        self.framesde()
        self.text6.delete(1.0, END)
        self.list1 = []
        self.list2 = []
        for i in range(1, self.payment3.max_row + 1):
            for j in range(1, self.payment3.max_column + 1):
                k = len(str(self.payment3.cell(row=i, column=j).value))
                y = str(self.payment3.cell(row=i, column=j).value) + " " * (12 - k)
                self.list1.append(y)
            for k in range(1, self.payment3.max_column + 1):
                z = str(self.payment3.cell(row=i, column=j).value)
                self.list2.append(z)
            if str(self.login2.get()) in self.list2:
                self.text6.insert(END, self.list1)
                self.text6.insert(END, "\n")
            self.list2 = []
            self.list1 = []
    def framesdd(self):
        self.framepharm.pack_forget()
        self.framedd.pack()
    def medec2(self):
        self.framesdd()
        self.text5.delete(1.0, END)
        self.list1 = []
        for i in range(1, self.medicine3.max_row + 1):
            for j in range(1, self.medicine3.max_column + 1):
                k = len(str(self.medicine3.cell(row=i, column=j).value))
                y = str(self.medicine3.cell(row=i, column=j).value) + " " * (12 - k)
                self.list1.append(y)
            self.text5.insert(END, self.list1)
            self.text5.insert(END, "\n")
            self.list1 = []
    def framesdc(self):
        self.frameacc.pack_forget()
        self.framedc.pack()
    def pay1(self):
        self.framesdc()
        self.text4.delete(1.0, END)
        self.list1 = []
        for i in range(1, self.payment3.max_row + 1):
            for j in range(1, self.payment3.max_column + 1):
                k = len(str(self.payment3.cell(row=i, column=j).value))
                y = str(self.payment3.cell(row=i, column=j).value) + " " * (12 - k)
                self.list1.append(y)
            self.text4.insert(END, self.list1)
            self.text4.insert(END, "\n")
            self.list1 = []
    def framesdb(self):
        self.framenur1.pack_forget()
        self.framenur2.pack_forget()
        self.framedb.pack()
    def birth1(self):
        self.framesdb()
        self.text3.delete(1.0, END)
        self.list1 = []
        for i in range(1, self.birth3.max_row + 1):
            for j in range(1, self.birth3.max_column + 1):
                k = len(str(self.birth3.cell(row=i, column=j).value))
                y = str(self.birth3.cell(row=i, column=j).value) + " " * (12 - k)
                self.list1.append(y)
            self.text3.insert(END, self.list1)
            self.text3.insert(END, "\n")
            self.list1 = []
    def death1(self):
        self.framesdb()
        self.text3.delete(1.0, END)
        self.list1 = []
        for i in range(1, self.death3.max_row + 1):
            for j in range(1, self.death3.max_column + 1):
                k = len(str(self.death3.cell(row=i, column=j).value))
                y = str(self.death3.cell(row=i, column=j).value) + " " * (12 - k)
                self.list1.append(y)
            self.text3.insert(END, self.list1)
            self.text3.insert(END, "\n")
            self.list1 = []
    def framesda(self):
        self.framedoc1.pack_forget()
        self.framedoc2.pack_forget()
        self.framedoc3.pack_forget()
        self.frameda.pack()
    def deathreport(self):
        self.list1 = [self.dea1.get(), self.dea2.get(), self.dea3.get(), self.dea4.get(), self.dea5.get(),
                      self.dea6.get()]
        self.a = 1
        self.b = self.death3.max_row + 1
        for i in self.list1:
            self.death3.cell(row=self.b, column=self.a).value = i
            self.a += 1
        self.wb3.save("HRMS.xlsx")
    def birthreport(self):
        self.list1 = [self.nur1.get(), self.nur2.get(), self.nur3.get(), self.nur4.get(), self.nur5.get(),
                      self.nur6.get()]
        self.a = 1
        self.b = self.birth3.max_row + 1
        for i in self.list1:
            self.birth3.cell(row=self.b, column=self.a).value = i
            self.a += 1
        self.wb3.save("HRMS.xlsx")
    def payment(self):
        self.list1 = [self.acc1.get(), self.acc2.get(), self.acc3.get(), self.acc4.get(), self.acc5.get(), self.acc6.get(), self.acc7.get()]
        self.a = 1
        self.b = self.payment3.max_row + 1
        for i in self.list1:
            self.payment3.cell(row=self.b, column=self.a).value = i
            self.a += 1
        self.wb3.save("HRMS.xlsx")
    def medicine(self):
        self.list1 = [self.med1.get(), self.med2.get(), self.med3.get(), self.med4.get(), self.med5.get()]
        self.a = 1
        self.b = self.medicine3.max_row + 1
        for i in self.list1:
            self.medicine3.cell(row=self.b, column=self.a).value = i
            self.a += 1
        self.wb3.save("HRMS.xlsx")
    def surgery(self):
        self.list1 = [self.sur1.get(), self.sur2.get(), self.sur3.get(), self.sur4.get(), self.sur5.get()]
        self.a = 1
        self.b = self.surgery3.max_row + 1
        for i in self.list1:
            self.surgery3.cell(row=self.b, column=self.a).value = i
            self.a += 1
        self.wb3.save("HRMS.xlsx")
    def appointment(self):
        self.list1 = [self.app1.get(), self.app2.get(), self.app3.get(), self.app4.get(), self.app5.get(),
                      self.app6.get(), self.app7.get()]
        self.a = 1
        self.b = self.appointment3.max_row + 1
        for i in self.list1:
            self.appointment3.cell(row=self.b, column=self.a).value = i
            self.a += 1
        self.wb3.save("HRMS.xlsx")
    def doctor(self):
        self.list1 = [self.name1.get(), self.id1.get(), self.age1.get(), self.sex1.get(),self.quality1.get(),self.special1.get(), self.bloodtype1.get(),
                      self.address1.get(), self.phonenum1.get(), self.dateb1.get(), self.datej1.get(), self.salary1.get(), self.work1.get(), self.time1.get(), self.office1.get(), self.password1.get()]
        self.a = 1
        self.b = self.doctor3.max_row + 1
        for i in self.list1:
            self.doctor3.cell(row=self.b, column=self.a).value = i
            self.a += 1
        self.wb3.save("HRMS.xlsx")
        self.report()
        self.entry29.delete(0, END)
        self.entry30.delete(0, END)
        self.entry31.delete(0, END)
        self.entry32.delete(0, END)
        self.entry33.delete(0, END)
        self.entry34.delete(0, END)
        self.entry35.delete(0, END)
        self.entry36.delete(0, END)
        self.entry37.delete(0, END)
        self.entry38.delete(0, END)
        self.entry39.delete(0, END)
        self.entry40.delete(0, END)
        self.entry41.delete(0, END)
        self.entry42.delete(0, END)
        self.entry43.delete(0, END)
        self.entry44.delete(0, END)
    def patient(self):
        self.list1 = [self.name2.get(), self.id2.get(), self.age2.get(), self.sex2.get(), self.bloodtype2.get(), self.problem2.get(), self.address2.get(), self.phonenum2.get(), self.datej2.get(), self.password2.get()]
        self.a = 1
        self.b = self.patient3.max_row + 1
        for i in self.list1:
            self.patient3.cell(row=self.b, column=self.a).value = i
            self.a += 1
        self.wb3.save("HRMS.xlsx")
        self.report()
        self.entry19.delete(0, END)
        self.entry20.delete(0, END)
        self.entry21.delete(0, END)
        self.entry22.delete(0, END)
        self.entry23.delete(0, END)
        self.entry24.delete(0, END)
        self.entry25.delete(0, END)
        self.entry26.delete(0, END)
        self.entry27.delete(0, END)
        self.entry28.delete(0, END)
    def nurse(self):
        self.list1 = [self.name3.get(), self.id3.get(), self.age3.get(), self.sex3.get(), self.bloodtype3.get(), self.address3.get(), self.phonenum3.get(), self.datej3.get(), self.password3.get()]
        self.a = 1
        self.b = self.nurse3.max_row + 1
        for i in self.list1:
            self.nurse3.cell(row=self.b, column=self.a).value = i
            self.a += 1
        self.wb3.save("HRMS.xlsx")
        self.report()
        self.entry45.delete(0, END)
        self.entry46.delete(0, END)
        self.entry47.delete(0, END)
        self.entry48.delete(0, END)
        self.entry49.delete(0, END)
        self.entry50.delete(0, END)
        self.entry51.delete(0, END)
        self.entry52.delete(0, END)
        self.entry53.delete(0, END)
    def laboratorist(self):
        self.list1 = [self.name4.get(), self.id4.get(), self.age4.get(), self.sex4.get(), self.bloodtype4.get(), self.address4.get(), self.phonenum4.get(), self.datej4.get(), self.password4.get()]
        self.a = 1
        self.b  = self.laboratorist3.max_row + 1
        for i in self.list1:
            self.laboratorist3.cell(row=self.b, column=self.a).value = i
            self.a += 1
        self.wb3.save("HRMS.xlsx")
        self.report()
        self.entry54.delete(0, END)
        self.entry55.delete(0, END)
        self.entry56.delete(0, END)
        self.entry57.delete(0, END)
        self.entry58.delete(0, END)
        self.entry59.delete(0, END)
        self.entry60.delete(0, END)
        self.entry61.delete(0, END)
        self.entry62.delete(0, END)
    def pharmacist(self):
        self.list1 = [self.name5.get(), self.id5.get(), self.age5.get(), self.sex5.get(), self.bloodtype5.get(), self.address5.get(), self.phonenum5.get(), self.datej5.get(), self.password5.get()]
        self.a = 1
        self.b = self.pharmacist3.max_row + 1
        for i in self.list1:
            self.pharmacist3.cell(row=self.b, column=self.a).value = i
            self.a += 1
        self.wb3.save("HRMS.xlsx")
        self.report()
        self.entry63.delete(0, END)
        self.entry64.delete(0, END)
        self.entry65.delete(0, END)
        self.entry66.delete(0, END)
        self.entry67.delete(0, END)
        self.entry68.delete(0, END)
        self.entry69.delete(0, END)
        self.entry70.delete(0, END)
        self.entry71.delete(0, END)
    def accountant(self):
        self.list1 = [self.name6.get(), self.id6.get(), self.age6.get(), self.sex6.get(), self.bloodtype6.get(), self.address6.get(), self.phonenum6.get(), self.datej6.get(), self.password6.get()]
        self.a = 1
        self.b = self.accountant3.max_row + 1
        for i in self.list1:
            self.accountant3.cell(row=self.b, column=self.a).value = i
            self.a += 1
        self.wb3.save("HRMS.xlsx")
        self.report()
        self.entry72.delete(0, END)
        self.entry73.delete(0, END)
        self.entry74.delete(0, END)
        self.entry75.delete(0, END)
        self.entry76.delete(0, END)
        self.entry77.delete(0, END)
        self.entry78.delete(0, END)
        self.entry79.delete(0, END)
        self.entry80.delete(0, END)
    def frames11(self):
        self.frame1.pack_forget()
        self.frame3.pack_forget()
        self.frame4.pack_forget()
        self.frame5.pack_forget()
        self.frame6.pack_forget()
        self.frame7.pack_forget()
        self.frame8.pack_forget()
        self.framea.pack_forget()
        self.frameb.pack_forget()
        self.framec.pack_forget()
        self.framed.pack_forget()
        self.framee.pack_forget()
        self.framef.pack_forget()
        self.frameI.pack_forget()
        self.frameacc.pack_forget()
        self.framedoc1.pack_forget()
        self.framedoc2.pack_forget()
        self.framedoc3.pack_forget()
        self.framenur1.pack_forget()
        self.framenur2.pack_forget()
        self.framepharm.pack_forget()
        self.framepass.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.frame2.pack()
    def frames12(self):
        self.I = True
        self.II = False
        self.III = False
        self.IIII = False
        self.IIIII = False
        self.IIIIII = False
        self.frame1.pack_forget()
        self.frame2.pack_forget()
        self.frame4.pack_forget()
        self.frame5.pack_forget()
        self.frame6.pack_forget()
        self.frame7.pack_forget()
        self.frame8.pack_forget()
        self.framea.pack_forget()
        self.frameb.pack_forget()
        self.framec.pack_forget()
        self.framed.pack_forget()
        self.framee.pack_forget()
        self.framef.pack_forget()
        self.frameI.pack_forget()
        self.frameacc.pack_forget()
        self.framedoc1.pack_forget()
        self.framedoc2.pack_forget()
        self.framedoc3.pack_forget()
        self.framenur1.pack_forget()
        self.framenur2.pack_forget()
        self.framepharm.pack_forget()
        self.framepass.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.frame3.pack()
    def frames13(self):
        self.I = False
        self.II = True
        self.III = False
        self.IIII = False
        self.IIIII = False
        self.IIIIII = False
        self.frame1.pack_forget()
        self.frame2.pack_forget()
        self.frame3.pack_forget()
        self.frame5.pack_forget()
        self.frame6.pack_forget()
        self.frame7.pack_forget()
        self.frame8.pack_forget()
        self.framea.pack_forget()
        self.frameb.pack_forget()
        self.framec.pack_forget()
        self.framed.pack_forget()
        self.framee.pack_forget()
        self.framef.pack_forget()
        self.frameI.pack_forget()
        self.frameacc.pack_forget()
        self.framedoc1.pack_forget()
        self.framedoc2.pack_forget()
        self.framedoc3.pack_forget()
        self.framenur1.pack_forget()
        self.framenur2.pack_forget()
        self.framepharm.pack_forget()
        self.framepass.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.frame4.pack()
    def frames14(self):
        self.I = False
        self.II = False
        self.III = True
        self.IIII = False
        self.IIIII = False
        self.IIIIII = False
        self.frame1.pack_forget()
        self.frame2.pack_forget()
        self.frame3.pack_forget()
        self.frame4.pack_forget()
        self.frame6.pack_forget()
        self.frame7.pack_forget()
        self.frame8.pack_forget()
        self.framea.pack_forget()
        self.frameb.pack_forget()
        self.framec.pack_forget()
        self.framed.pack_forget()
        self.framee.pack_forget()
        self.framef.pack_forget()
        self.frameI.pack_forget()
        self.frameacc.pack_forget()
        self.framedoc1.pack_forget()
        self.framedoc2.pack_forget()
        self.framedoc3.pack_forget()
        self.framenur1.pack_forget()
        self.framenur2.pack_forget()
        self.framepharm.pack_forget()
        self.framepass.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.frame5.pack()
    def frames15(self):
        self.I = False
        self.II = False
        self.III = False
        self.IIII = True
        self.IIIII = False
        self.IIIIII = False
        self.frame1.pack_forget()
        self.frame2.pack_forget()
        self.frame3.pack_forget()
        self.frame4.pack_forget()
        self.frame5.pack_forget()
        self.frame7.pack_forget()
        self.frame8.pack_forget()
        self.framea.pack_forget()
        self.frameb.pack_forget()
        self.framec.pack_forget()
        self.framed.pack_forget()
        self.framee.pack_forget()
        self.framef.pack_forget()
        self.frameI.pack_forget()
        self.frameacc.pack_forget()
        self.framedoc1.pack_forget()
        self.framedoc2.pack_forget()
        self.framedoc3.pack_forget()
        self.framenur1.pack_forget()
        self.framenur2.pack_forget()
        self.framepharm.pack_forget()
        self.framepass.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.frame6.pack()
    def frames16(self):
        self.I = False
        self.II = False
        self.III = False
        self.IIII = False
        self.IIIII = True
        self.IIIIII = False
        self.frame1.pack_forget()
        self.frame2.pack_forget()
        self.frame3.pack_forget()
        self.frame4.pack_forget()
        self.frame5.pack_forget()
        self.frame6.pack_forget()
        self.frame8.pack_forget()
        self.framea.pack_forget()
        self.frameb.pack_forget()
        self.framec.pack_forget()
        self.framed.pack_forget()
        self.framee.pack_forget()
        self.framef.pack_forget()
        self.frameI.pack_forget()
        self.frameacc.pack_forget()
        self.framedoc1.pack_forget()
        self.framedoc2.pack_forget()
        self.framedoc3.pack_forget()
        self.framenur1.pack_forget()
        self.framenur2.pack_forget()
        self.framepharm.pack_forget()
        self.framepass.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.frame7.pack()
    def frames17(self):
        self.I = False
        self.II = False
        self.III = False
        self.IIII = False
        self.IIIII = False
        self.IIIIII = True
        self.frame1.pack_forget()
        self.frame2.pack_forget()
        self.frame3.pack_forget()
        self.frame4.pack_forget()
        self.frame5.pack_forget()
        self.frame6.pack_forget()
        self.frame7.pack_forget()
        self.framea.pack_forget()
        self.frameb.pack_forget()
        self.framec.pack_forget()
        self.framed.pack_forget()
        self.framee.pack_forget()
        self.framef.pack_forget()
        self.frameI.pack_forget()
        self.frameacc.pack_forget()
        self.framedoc1.pack_forget()
        self.framedoc2.pack_forget()
        self.framedoc3.pack_forget()
        self.framenur1.pack_forget()
        self.framenur2.pack_forget()
        self.framepharm.pack_forget()
        self.framepass.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.frame8.pack()
    def framesa(self):
        self.I = False
        self.II = True
        self.III = False
        self.IIII = False
        self.IIIII = False
        self.IIIIII = False
        self.frameb.pack_forget()
        self.framec.pack_forget()
        self.framed.pack_forget()
        self.framee.pack_forget()
        self.framef.pack_forget()
        self.frameI.pack_forget()
        self.frameda.pack_forget()
        self.frameacc.pack_forget()
        self.framedoc1.pack_forget()
        self.framedoc2.pack_forget()
        self.framedoc3.pack_forget()
        self.framepass.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.framea.pack()
    def framesb(self):
        self.I = True
        self.II = False
        self.III = False
        self.IIII = False
        self.IIIII = False
        self.IIIIII = False
        if self.login1.get()==str(self.security3.cell(row=1,column=1).value) and self.pass1.get()==str(self.security3.cell(row=1, column=2).value):
            self.J = True
            self.JJ = False
            self.JJJ = False
            self.JJJJ = False
            self.JJJJJ = False
            self.JJJJJJ = False
            self.JJJJJJJ = False
            self.frame2.pack_forget()
            self.framea.pack_forget()
            self.framec.pack_forget()
            self.framed.pack_forget()
            self.framee.pack_forget()
            self.framef.pack_forget()
            self.frameI.pack_forget()
            self.frameacc.pack_forget()
            self.framedoc1.pack_forget()
            self.framedoc2.pack_forget()
            self.framedoc3.pack_forget()
            self.frameda.pack_forget()
            self.framedb.pack_forget()
            self.framedc.pack_forget()
            self.framedd.pack_forget()
            self.framede.pack_forget()
            self.frameb.pack()
            self.entry1.delete(0, END)
            self.entry2.delete(0, END)
        else:
            tkinter.messagebox.showerror("showerror", "Incorrect Password")
    def framesc(self):
        self.I = False
        self.II = False
        self.III = True
        self.IIII = False
        self.IIIII = False
        self.IIIIII = False
        self.framea.pack_forget()
        self.frameb.pack_forget()
        self.framed.pack_forget()
        self.framee.pack_forget()
        self.framef.pack_forget()
        self.frameI.pack_forget()
        self.frameacc.pack_forget()
        self.framedoc1.pack_forget()
        self.framedoc2.pack_forget()
        self.framedoc3.pack_forget()
        self.framepass.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.framec.pack()
    def framesd(self):
        self.I = False
        self.II = False
        self.III = False
        self.IIII = True
        self.IIIII = False
        self.IIIIII = False
        self.framea.pack_forget()
        self.frameb.pack_forget()
        self.framec.pack_forget()
        self.framee.pack_forget()
        self.framef.pack_forget()
        self.frameI.pack_forget()
        self.frameacc.pack_forget()
        self.framedoc1.pack_forget()
        self.framedoc2.pack_forget()
        self.framedoc3.pack_forget()
        self.framepass.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.framed.pack()
    def framese(self):
        self.I = False
        self.II = False
        self.III = False
        self.IIII = False
        self.IIIII = True
        self.IIIIII = False
        self.framea.pack_forget()
        self.frameb.pack_forget()
        self.framec.pack_forget()
        self.framed.pack_forget()
        self.framef.pack_forget()
        self.frameI.pack_forget()
        self.frameacc.pack_forget()
        self.framedoc1.pack_forget()
        self.framedoc2.pack_forget()
        self.framedoc3.pack_forget()
        self.framepass.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.framee.pack()
    def framesf(self):
        self.I = False
        self.II = False
        self.III = False
        self.IIII = False
        self.IIIII = False
        self.IIIIII = True
        self.framea.pack_forget()
        self.frameb.pack_forget()
        self.framec.pack_forget()
        self.framed.pack_forget()
        self.framee.pack_forget()
        self.frameI.pack_forget()
        self.frameacc.pack_forget()
        self.framedoc1.pack_forget()
        self.framedoc2.pack_forget()
        self.framedoc3.pack_forget()
        self.framepass.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.framef.pack()
    def framesh(self):
        self.framea.pack_forget()
        self.frameb.pack_forget()
        self.framec.pack_forget()
        self.framed.pack_forget()
        self.framee.pack_forget()
        self.framef.pack_forget()
        self.frameacc.pack_forget()
        self.framedoc1.pack_forget()
        self.framedoc2.pack_forget()
        self.framedoc3.pack_forget()
        self.framenur1.pack_forget()
        self.framenur2.pack_forget()
        self.framepharm.pack_forget()
        self.framepass.pack_forget()
        self.frameda.pack_forget()
        self.frameI.pack()
    def framesl(self):
        self.framea.pack_forget()
        self.frameb.pack_forget()
        self.framec.pack_forget()
        self.framed.pack_forget()
        self.framee.pack_forget()
        self.framef.pack_forget()
        self.frameacc.pack_forget()
        self.framedoc1.pack_forget()
        self.framedoc2.pack_forget()
        self.framedoc3.pack_forget()
        self.framenur1.pack_forget()
        self.framenur2.pack_forget()
        self.framepharm.pack_forget()
        self.framepass.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.frameI.pack_forget()
        self.frameda.pack()
    def appoint1(self):
        self.framesl()
        self.text2.delete(1.0, END)
        self.list1 = []
        self.list2 = []
        for i in range(1, self.appointment3.max_row + 1):
            for j in range(1, self.appointment3.max_column + 1):
                k = len(str(self.appointment3.cell(row=i, column=j).value))
                y = str(self.appointment3.cell(row=i, column=j).value) + " " * (12 - k)
                self.list1.append(y)
            for k in range(1, self.appointment3.max_column + 1):
                z = str(self.appointment3.cell(row=i, column=j).value)
                self.list2.append(z)
            if str(self.login3.get()) in self.list2:
                self.text2.insert(END, self.list1)
                self.text2.insert(END, "\n")
            self.list2 = []
            self.list1 = []
    def surg1(self):
        self.framesl()
        self.text2.delete(1.0, END)
        self.list1 = []
        self.list2 = []
        for i in range(1, self.surgery3.max_row + 1):
            for j in range(1, self.surgery3.max_column + 1):
                k = len(str(self.surgery3.cell(row=i, column=j).value))
                y = str(self.surgery3.cell(row=i, column=j).value) + " " * (12 - k)
                self.list1.append(y)
            for k in range(1, self.surgery3.max_column + 1):
                z = str(self.surgery3.cell(row=i, column=j).value)
                self.list2.append(z)
            if str(self.login3.get()) in self.list2:
                self.text2.insert(END, self.list1)
                self.text2.insert(END, "\n")
            self.list2 = []
            self.list1 = []
    def medec1(self):
        self.framesl()
        self.text2.delete(1.0, END)
        self.list1 = []
        self.list12 = []
        for i in range(1, self.medicine3.max_row + 1):
            for j in range(1, self.medicine3.max_column + 1):
                k = len(str(self.medicine3.cell(row=i, column=j).value))
                y = str(self.medicine3.cell(row=i, column=j).value) + " " * (12 - k)
                self.list1.append(y)
            for k in range(1, self.medicine3.max_column + 1):
                z = str(self.medicine3.cell(row=i, column=j).value)
                self.list2.append(z)
            if str(self.login3.get()) in self.list2:
                self.text2.insert(END, self.list1)
                self.text2.insert(END, "\n")
            self.list2 = []
            self.list1 = []
    def appoint(self):
        self.framesh()
        self.text1.delete(1.0, END)
        self.list1 = []
        for i in range(1, self.appointment3.max_row + 1):
            for j in range(1, self.appointment3.max_column + 1):
                k = len(str(self.appointment3.cell(row=i, column=j).value))
                y = str(self.appointment3.cell(row=i, column=j).value) + " " * (12 - k)
                self.list1.append(y)
            self.text1.insert(END, self.list1)
            self.text1.insert(END, "\n")
            self.list1 = []
    def surg(self):
        self.framesh()
        self.text1.delete(1.0, END)
        self.list1 = []
        for i in range(1, self.surgery3.max_row + 1):
            for j in range(1, self.surgery3.max_column + 1):
                k = len(str(self.surgery3.cell(row=i, column=j).value))
                y = str(self.surgery3.cell(row=i, column=j).value) + " " * (12 - k)
                self.list1.append(y)
            self.text1.insert(END, self.list1)
            self.text1.insert(END, "\n")
            self.list1 = []
    def medec(self):
        self.framesh()
        self.text1.delete(1.0, END)
        self.list1 = []
        for i in range(1, self.medicine3.max_row + 1):
            for j in range(1, self.medicine3.max_column + 1):
                k = len(str(self.medicine3.cell(row=i, column=j).value))
                y = str(self.medicine3.cell(row=i, column=j).value) + " " * (12 - k)
                self.list1.append(y)
            self.text1.insert(END, self.list1)
            self.text1.insert(END, "\n")
            self.list1 = []
    def pay(self):
        self.framesh()
        self.text1.delete(1.0, END)
        self.list1 = []
        for i in range(1, self.payment3.max_row + 1):
            for j in range(1, self.payment3.max_column + 1):
                k = len(str(self.payment3.cell(row=i, column=j).value))
                y = str(self.payment3.cell(row=i, column=j).value) + " " * (12 - k)
                self.list1.append(y)
            self.text1.insert(END, self.list1)
            self.text1.insert(END, "\n")
            self.list1 = []
    def birthd(self):
        self.framesh()
        self.text1.delete(1.0, END)
        self.list1 = []
        for i in range(1, self.birth3.max_row + 1):
            for j in range(1, self.birth3.max_column + 1):
                k = len(str(self.birth3.cell(row=i, column=j).value))
                y = str(self.birth3.cell(row=i, column=j).value) + " " * (12 - k)
                self.list1.append(y)
            self.text1.insert(END, self.list1)
            self.text1.insert(END, "\n")
            self.list1 = []
    def deathd(self):
        self.framesh()
        self.text1.delete(1.0, END)
        self.list1 = []
        for i in range(1, self.death3.max_row + 1):
            for j in range(1, self.death3.max_column + 1):
                k = len(str(self.death3.cell(row=i, column=j).value))
                y = str(self.death3.cell(row=i, column=j).value) + " " * (12 - k)
                self.list1.append(y)
            self.text1.insert(END, self.list1)
            self.text1.insert(END, "\n")
            self.list1 = []
    def framesI(self):
        if self.II == True:
            self.framesh()
            self.text1.delete(1.0, END)
            self.list1 = []
            for i in range(1,self.doctor3.max_row + 1):
                for j in range(1, self.doctor3.max_column + 1):
                    k = len(str(self.doctor3.cell(row = i, column = j).value))
                    y = str(self.doctor3.cell(row = i, column = j).value) + " " * (12 - k)
                    self.list1.append(y)
                self.text1.insert(END, self.list1)
                self.text1.insert(END, "\n")
                self.list1 = []
        elif self.I == True:
            self.framesh()
            self.text1.delete(1.0, END)
            self.list1 = []
            for i in range(1,self.patient3.max_row + 1):
                for j in range(1, self.patient3.max_column + 1):
                    k = len(str(self.patient3.cell(row = i, column = j).value))
                    y = str(self.patient3.cell(row = i, column = j).value) + " " * (12 - k)
                    self.list1.append(y)
                self.text1.insert(END, self.list1)
                self.text1.insert(END, "\n")
                self.list1 = []
        elif self.III == True:
            self.framesh()
            self.text1.delete(1.0, END)
            self.list1 = []
            for i in range(1,self.nurse3.max_row + 1):
                for j in range(1, self.nurse3.max_column + 1):
                    k = len(str(self.nurse3.cell(row = i, column = j).value))
                    y = str(self.nurse3.cell(row = i, column = j).value) + " " * (12 - k)
                    self.list1.append(y)
                self.text1.insert(END, self.list1)
                self.text1.insert(END, "\n")
                self.list1 = []
        elif self.IIII == True:
            self.framesh()
            self.text1.delete(1.0, END)
            self.list1 = []
            for i in range(1,self.laboratorist3.max_row + 1):
                for j in range(1, self.laboratorist3.max_column + 1):
                    k = len(str(self.laboratorist3.cell(row = i, column = j).value))
                    y = str(self.laboratorist3.cell(row = i, column = j).value) + " " * (12 - k)
                    self.list1.append(y)
                self.text1.insert(END, self.list1)
                self.text1.insert(END, "\n")
                self.list1 = []
        elif self.IIIII == True:
            self.framesh()
            self.text1.delete(1.0, END)
            self.list1 = []
            for i in range(1,self.pharmacist3.max_row + 1):
                for j in range(1, self.pharmacist3.max_column + 1):
                    k = len(str(self.pharmacist3.cell(row = i, column = j).value))
                    y = str(self.pharmacist3.cell(row = i, column = j).value) + " " * (12 - k)
                    self.list1.append(y)
                self.text1.insert(END, self.list1)
                self.text1.insert(END, "\n")
                self.list1 = []
        elif self.IIIIII == True:
            self.framesh()
            self.text1.delete(1.0, END)
            self.list1 = []
            for i in range(1,self.accountant3.max_row + 1):
                for j in range(1, self.accountant3.max_column + 1):
                    k = len(str(self.accountant3.cell(row = i, column = j).value))
                    y = str(self.accountant3.cell(row = i, column = j).value) + " " * (12 - k)
                    self.list1.append(y)
                self.text1.insert(END, self.list1)
                self.text1.insert(END, "\n")
                self.list1 = []
        elif self.II == True:
            self.framesh()
            self.text1.delete(1.0, END)
            self.list1 = []
            for i in range(1,self.doctor3.max_row + 1):
                for j in range(1, self.doctor3.max_column + 1):
                    k = len(str(self.doctor3.cell(row = i, column = j).value))
                    y = str(self.doctor3.cell(row = i, column = j).value) + " " * (12 - k)
                    self.list1.append(y)
                self.text1.insert(END, self.list1)
                self.text1.insert(END, "\n")
                self.list1 = []
        elif self.I == True:
            self.framesh()
            self.text1.delete(1.0, END)
            self.list1 = []
            for i in range(1,self.patient3.max_row + 1):
                for j in range(1, self.patient3.max_column + 1):
                    k = len(str(self.patient3.cell(row = i, column = j).value))
                    y = str(self.patient3.cell(row = i, column = j).value) + " " * (12 - k)
                    self.list1.append(y)
                self.text1.insert(END, self.list1)
                self.text1.insert(END, "\n")
                self.list1 = []
        elif self.III == True:
            self.framesh()
            self.text1.delete(1.0, END)
            self.list1 = []
            for i in range(1,self.nurse3.max_row + 1):
                for j in range(1, self.nurse3.max_column + 1):
                    k = len(str(self.nurse3.cell(row = i, column = j).value))
                    y = str(self.nurse3.cell(row = i, column = j).value) + " " * (12 - k)
                    self.list1.append(y)
                self.text1.insert(END, self.list1)
                self.text1.insert(END, "\n")
                self.list1 = []
        elif self.IIII == True:
            self.framesh()
            self.text1.delete(1.0, END)
            self.list1 = []
            for i in range(1,self.laboratorist3.max_row + 1):
                for j in range(1, self.laboratorist3.max_column + 1):
                    k = len(str(self.laboratorist3.cell(row = i, column = j).value))
                    y = str(self.laboratorist3.cell(row = i, column = j).value) + " " * (12 - k)
                    self.list1.append(y)
                self.text1.insert(END, self.list1)
                self.text1.insert(END, "\n")
                self.list1 = []
        elif self.IIIII == True:
            self.framesh()
            self.text1.delete(1.0, END)
            self.list1 = []
            for i in range(1,self.pharmacist3.max_row + 1):
                for j in range(1, self.pharmacist3.max_column + 1):
                    k = len(str(self.pharmacist3.cell(row = i, column = j).value))
                    y = str(self.pharmacist3.cell(row = i, column = j).value) + " " * (12 - k)
                    self.list1.append(y)
                self.text1.insert(END, self.list1)
                self.text1.insert(END, "\n")
                self.list1 = []
        elif self.IIIIII == True:
            self.framesh()
            self.text1.delete(1.0, END)
            self.list1 = []
            for i in range(1,self.accountant3.max_row + 1):
                for j in range(1, self.accountant3.max_column + 1):
                    k = len(str(self.accountant3.cell(row = i, column = j).value))
                    y = str(self.accountant3.cell(row = i, column = j).value) + " " * (12 - k)
                    self.list1.append(y)
                self.text1.insert(END, self.list1)
                self.text1.insert(END, "\n")
                self.list1 = []
    def framesdoc1(self):
        self.frame1.pack_forget()
        self.frame2.pack_forget()
        self.frame3.pack_forget()
        self.frame4.pack_forget()
        self.frame5.pack_forget()
        self.frame6.pack_forget()
        self.frame7.pack_forget()
        self.frame8.pack_forget()
        self.frameacc.pack_forget()
        self.framedoc2.pack_forget()
        self.framedoc3.pack_forget()
        self.framenur1.pack_forget()
        self.framenur2.pack_forget()
        self.framepharm.pack_forget()
        self.framepass.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.framedoc1.pack()
    def framesdoc2(self):
        self.frame1.pack_forget()
        self.frame2.pack_forget()
        self.frame3.pack_forget()
        self.frame4.pack_forget()
        self.frame5.pack_forget()
        self.frame6.pack_forget()
        self.frame7.pack_forget()
        self.frame8.pack_forget()
        self.frameacc.pack_forget()
        self.framedoc1.pack_forget()
        self.framedoc3.pack_forget()
        self.framenur1.pack_forget()
        self.framenur2.pack_forget()
        self.framepharm.pack_forget()
        self.framepass.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.framedoc2.pack()
    def framesdoc3(self):
        self.frame1.pack_forget()
        self.frame2.pack_forget()
        self.frame3.pack_forget()
        self.frame4.pack_forget()
        self.frame6.pack_forget()
        self.frame5.pack_forget()
        self.frame7.pack_forget()
        self.frame8.pack_forget()
        self.frameacc.pack_forget()
        self.framedoc1.pack_forget()
        self.framedoc2.pack_forget()
        self.framenur1.pack_forget()
        self.framenur2.pack_forget()
        self.framepharm.pack_forget()
        self.framepass.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.framedoc3.pack()
    def framesacc(self):
        self.frame1.pack_forget()
        self.frame2.pack_forget()
        self.frame3.pack_forget()
        self.frame4.pack_forget()
        self.frame5.pack_forget()
        self.frame6.pack_forget()
        self.frame7.pack_forget()
        self.frame8.pack_forget()
        self.framedoc1.pack_forget()
        self.framedoc2.pack_forget()
        self.framedoc3.pack_forget()
        self.framenur1.pack_forget()
        self.framenur2.pack_forget()
        self.framepharm.pack_forget()
        self.framepass.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.frameacc.pack()
    def framespharm(self):
        self.frame1.pack_forget()
        self.frame2.pack_forget()
        self.frame3.pack_forget()
        self.frame4.pack_forget()
        self.frame5.pack_forget()
        self.frame6.pack_forget()
        self.frame7.pack_forget()
        self.frame8.pack_forget()
        self.framedoc1.pack_forget()
        self.framedoc2.pack_forget()
        self.framedoc3.pack_forget()
        self.frameacc.pack_forget()
        self.framenur1.pack_forget()
        self.framenur2.pack_forget()
        self.framepass.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.framepharm.pack()
    def framesnur1(self):
        self.frame1.pack_forget()
        self.frame2.pack_forget()
        self.frame3.pack_forget()
        self.frame4.pack_forget()
        self.frame5.pack_forget()
        self.frame6.pack_forget()
        self.frame7.pack_forget()
        self.frame8.pack_forget()
        self.framedoc1.pack_forget()
        self.framedoc2.pack_forget()
        self.framedoc3.pack_forget()
        self.frameacc.pack_forget()
        self.framenur2.pack_forget()
        self.framepharm.pack_forget()
        self.framepass.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.framenur1.pack()
    def framesnur2(self):
        self.frame1.pack_forget()
        self.frame2.pack_forget()
        self.frame3.pack_forget()
        self.frame4.pack_forget()
        self.frame5.pack_forget()
        self.frame6.pack_forget()
        self.frame7.pack_forget()
        self.frame8.pack_forget()
        self.framedoc1.pack_forget()
        self.framedoc2.pack_forget()
        self.framedoc3.pack_forget()
        self.frameacc.pack_forget()
        self.framenur1.pack_forget()
        self.framepharm.pack_forget()
        self.framepass.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.framenur2.pack()
    def framesJ(self):
        if self.II == True:
            self.list1 = []
            for i in range(1, self.doctor3.max_row + 1):
                self.list1.append(str(self.doctor3.cell(row=i, column=2).value))
            if self.login3.get() in self.list1:
                self.f = self.list1.index(self.login3.get()) + 1
                if str(self.doctor3.cell(row=self.f, column=16).value) == self.pass3.get():
                    self.J = False
                    self.JJ = True
                    self.JJJ = False
                    self.JJJJ = False
                    self.JJJJJ = False
                    self.JJJJJJ = False
                    self.JJJJJJJ = False
                    self.framesdoc1()
                    self.entry112.delete(0, END)
                    self.entry223.delete(0, END)
                else:
                    tkinter.messagebox.showerror("showerror", "Incorrect Password")
            else:
                tkinter.messagebox.showerror("showerror", "Incorrect Password")
        elif self.I == True:
            self.list1 = []
            for i in range(1, self.patient3.max_row + 1):
                self.list1.append(str(self.patient3.cell(row=i, column=2).value))
            if self.login2.get() in self.list1:
                self.f = self.list1.index(self.login2.get()) + 1
                if str(self.patient3.cell(row=self.f, column=10).value) == self.pass2.get():
                    self.J = False
                    self.JJ = False
                    self.JJJ = True
                    self.JJJJ = False
                    self.JJJJJ = False
                    self.JJJJJJ = False
                    self.JJJJJJJ = False
                    self.a1()
                    self.entry111.delete(0, END)
                    self.entry222.delete(0, END)
                else:
                    tkinter.messagebox.showerror("showerror", "Incorrect Password")
            else:
                tkinter.messagebox.showerror("showerror", "Incorrect Password")
        elif self.III == True:
            self.list1 = []
            for i in range(1, self.nurse3.max_row + 1):
                self.list1.append(str(self.nurse3.cell(row=i, column=2).value))
            if self.login4.get() in self.list1:
                self.f = self.list1.index(self.login4.get()) + 1
                if str(self.nurse3.cell(row=self.f, column=9).value) == self.pass4.get():
                    self.J = False
                    self.JJ = False
                    self.JJJ = False
                    self.JJJJ = True
                    self.JJJJJ = False
                    self.JJJJJJ = False
                    self.JJJJJJJ = False
                    self.framesnur1()
                    self.entry113.delete(0, END)
                    self.entry224.delete(0, END)
                else:
                    tkinter.messagebox.showerror("showerror", "Incorrect Password")
            else:
                tkinter.messagebox.showerror("showerror", "Incorrect Password")
        elif self.IIII == True:
            self.list1 = []
            for i in range(1, self.laboratorist3.max_row + 1):
                self.list1.append(str(self.laboratorist3.cell(row=i, column=2).value))
            if self.login5.get() in self.list1:
                self.f = self.list1.index(self.login5.get()) + 1
                if str(self.laboratorist3.cell(row=self.f, column=9).value) == self.pass5.get():
                    self.J = False
                    self.JJ = False
                    self.JJJ = False
                    self.JJJJ = False
                    self.JJJJJ = True
                    self.JJJJJJ = False
                    self.JJJJJJJ = False
                    self.entry114.delete(0, END)
                    self.entry225.delete(0, END)
                    pass
                else:
                    tkinter.messagebox.showerror("showerror", "Incorrect Password")
            else:
                tkinter.messagebox.showerror("showerror", "Incorrect Password")
        elif self.IIIII == True:
            self.list1 = []
            for i in range(1, self.pharmacist3.max_row + 1):
                self.list1.append(str(self.pharmacist3.cell(row=i, column=2).value))
            if self.login6.get() in self.list1:
                self.f = self.list1.index(self.login6.get()) + 1
                if str(self.pharmacist3.cell(row=self.f, column=9).value) == self.pass6.get():
                    self.J = False
                    self.JJ = False
                    self.JJJ = False
                    self.JJJJ = False
                    self.JJJJJ = False
                    self.JJJJJJ = True
                    self.JJJJJJJ = False
                    self.framespharm()
                    self.entry115.delete(0, END)
                    self.entry226.delete(0, END)
                else:
                    tkinter.messagebox.showerror("showerror", "Incorrect Password")
            else:
                tkinter.messagebox.showerror("showerror", "Incorrect Password")
        elif self.IIIIII == True:
            self.list1 = []
            for i in range(1, self.accountant3.max_row + 1):
                self.list1.append(str(self.accountant3.cell(row=i, column=2).value))
            if self.login7.get() in self.list1:
                self.f = self.list1.index(self.login7.get()) + 1
                if str(self.accountant3.cell(row=self.f, column=9).value) == self.pass7.get():
                    self.J = False
                    self.JJ = False
                    self.JJJ = False
                    self.JJJJ = False
                    self.JJJJJ = False
                    self.JJJJJJ = False
                    self.JJJJJJJ = True
                    self.framesacc()
                    self.entry116.delete(0, END)
                    self.entry227.delete(0, END)
                else:
                    tkinter.messagebox.showerror("showerror", "Incorrect Password")
            else:
                tkinter.messagebox.showerror("showerror", "Incorrect Password")
    def activate(self):
        if self.J == True:
            self.security3.cell(row=1, column=2).value = self.passs.get()
            self.wb3.save("HRMS.xlsx")
        elif self.JJ == True:
            self.list1 = []
            for i in range(1, self.doctor3.max_row + 1):
                self.list1.append(str(self.doctor3.cell(row=i, column=2).value))
            self.f = self.list1.index(self.login3.get()) + 1
            self.doctor3.cell(row=self.f, column=16).value = self.passs.get()
            self.wb3.save("HRMS.xlsx")
        elif self.JJJ == True:
            self.list1 = []
            for i in range(1, self.patient3.max_row + 1):
                self.list1.append(str(self.patient3.cell(row=i, column=2).value))
            self.f = self.list1.index(self.login2.get()) + 1
            self.patient3.cell(row=self.f, column=10).value = self.passs.get()
            self.wb3.save("HRMS.xlsx")
        elif self.JJJJ == True:
            self.list1 = []
            for i in range(1, self.nurse3.max_row + 1):
                self.list1.append(str(self.nurse3.cell(row=i, column=2).value))
            self.f = self.list1.index(self.login3.get()) + 1
            self.nurse3.cell(row=self.f, column=9).value = self.passs.get()
            self.wb3.save("HRMS.xlsx")
        elif self.JJJJJ == True:
            self.list1 = []
            for i in range(1, self.laboratorist3.max_row + 1):
                self.list1.append(str(self.laboratorist3.cell(row=i, column=2).value))
            self.f = self.list1.index(self.login3.get()) + 1
            self.laboratorist3.cell(row=self.f, column=9).value = self.passs.get()
            self.wb3.save("HRMS.xlsx")
        elif self.JJJJJJ == True:
            self.list1 = []
            for i in range(1, self.pharmacist3.max_row + 1):
                self.list1.append(str(self.pharmacist3.cell(row=i, column=2).value))
            self.f = self.list1.index(self.login3.get()) + 1
            self.pharmacist3.cell(row=self.f, column=9).value = self.passs.get()
            self.wb3.save("HRMS.xlsx")
        elif self.JJJJJJJ == True:
            self.list1 = []
            for i in range(1, self.accountant3.max_row + 1):
                self.list1.append(str(self.accountant3.cell(row=i, column=2).value))
            self.f = self.list1.index(self.login3.get()) + 1
            self.accountant3.cell(row=self.f, column=9).value = self.passs.get()
            self.wb3.save("HRMS.xlsx")
        self.frames1()
        self.entry333.delete(0, END)
    def frames1(self):
        self.framedoc1.pack_forget()
        self.framedoc2.pack_forget()
        self.framedoc3.pack_forget()
        self.framenur1.pack_forget()
        self.framenur2.pack_forget()
        self.frameacc.pack_forget()
        self.framepharm.pack_forget()
        self.frame1.pack_forget()
        self.frame2.pack_forget()
        self.frame3.pack_forget()
        self.frame4.pack_forget()
        self.frame5.pack_forget()
        self.frame6.pack_forget()
        self.frame7.pack_forget()
        self.frame8.pack_forget()
        self.framea.pack_forget()
        self.frameb.pack_forget()
        self.framec.pack_forget()
        self.framed.pack_forget()
        self.framee.pack_forget()
        self.framef.pack_forget()
        self.frameI.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.framepass.pack_forget()
        self.frame1.pack()
        self.entry1.delete(0, END)
        self.entry2.delete(0, END)
        self.report()
    def framespass(self):
        self.framedoc1.pack_forget()
        self.framedoc2.pack_forget()
        self.framedoc3.pack_forget()
        self.framenur1.pack_forget()
        self.framenur2.pack_forget()
        self.frameacc.pack_forget()
        self.framepharm.pack_forget()
        self.frame1.pack_forget()
        self.frame2.pack_forget()
        self.frame3.pack_forget()
        self.frame4.pack_forget()
        self.frame5.pack_forget()
        self.frame6.pack_forget()
        self.frame7.pack_forget()
        self.frame8.pack_forget()
        self.framea.pack_forget()
        self.frameb.pack_forget()
        self.framec.pack_forget()
        self.framed.pack_forget()
        self.framee.pack_forget()
        self.framef.pack_forget()
        self.frameI.pack_forget()
        self.frame1.pack_forget()
        self.frameda.pack_forget()
        self.framedb.pack_forget()
        self.framedc.pack_forget()
        self.framedd.pack_forget()
        self.framede.pack_forget()
        self.framepass.pack()
    def report(self):
        self.report3.cell(row=2, column=2).value = self.patient3.max_row - 1
        self.report3.cell(row=3, column=2).value = self.doctor3.max_row - 1
        self.report3.cell(row=4, column=2).value = self.nurse3.max_row - 1
        self.report3.cell(row=5, column=2).value = self.laboratorist3.max_row - 1
        self.report3.cell(row=6, column=2).value = self.pharmacist3.max_row - 1
        self.report3.cell(row=7, column=2).value = self.accountant3.max_row - 1
        self.wb3.save("HRMS.xlsx")
Hrms()