コード例 #1
0
    def __init__(self, old_root, clave, values):
        w = 300
        h = 100
        old_root.destroy()
        self.clave = clave
        self.values = values

        self.new_root = centerForm(
            w, h, "Insertar Fecha de Inscripción | Administrativo")

        #Frames a usar, algo así como div b:
        mainFrame = Frame(self.new_root, width=300, height=75)
        mainFrame.grid(row=0, column=0, padx=(15, 15), pady=(15, 15))
        #Frames a usar, algo así como div b:
        insertFrame = Frame(self.new_root, width=300, height=15)
        insertFrame.grid(row=1, column=0, sticky=E)

        returnFrame = Frame(self.new_root, width=300, height=15)
        returnFrame.grid(row=1, column=0, sticky=W)

        monthLBL = Label(mainFrame, text="Mes:")
        monthLBL.grid(row=0, column=0, sticky="W", padx=0, pady=0)
        self.monthCBX = ttk.Combobox(mainFrame, state="readonly", width=8)
        self.monthCBX.grid(row=0, column=1, sticky="W", padx=0, pady=5)
        self.monthCBX["values"] = [
            "Enero", "Febrero", "Marzo", "Abril", "Mayo", "Junio", "Julio",
            "Agosto", "Septiembre", "Octubre", "Noviembre", "Diciembre"
        ]
        self.monthCBX.current(0)
        self.monthCBX.bind("<<ComboboxSelected>>", self.loadInformation)

        dayLBL = Label(mainFrame, text="Día:")
        dayLBL.grid(row=0, column=2, sticky="W", padx=0, pady=0)
        self.dayCBX = ttk.Combobox(mainFrame, state="readonly", width=2)
        self.dayCBX.grid(row=0, column=3, sticky="e", padx=0, pady=0)

        hourLBL = Label(mainFrame, text="Hora:")
        hourLBL.grid(row=0, column=4, sticky="W", padx=0, pady=0)
        self.hourENY = Entry(mainFrame, width=2)
        self.hourENY.grid(row=0, column=5, sticky="W", padx=0, pady=5)
        minuteLBL = Label(mainFrame, text=":", width=1)
        minuteLBL.grid(row=0, column=6, sticky="W", padx=0, pady=0)
        self.minuteENV = Entry(mainFrame, width=2)
        self.minuteENV.grid(row=0, column=7, sticky="W", padx=0, pady=5)

        addButton = Button(insertFrame,
                           text="Agregar",
                           command=self.addInscription,
                           height=1,
                           width=4)
        addButton.grid(row=1, column=0, sticky=E, padx=(15, 15))
        returnButton = Button(returnFrame,
                              text="Regresar",
                              command=self.returnAdministrativeHome,
                              height=1,
                              width=4)
        returnButton.grid(row=1, column=7, sticky=E, padx=(15, 15))

        self.loadInformation(0)
        self.new_root.mainloop()
コード例 #2
0
    def __init__(self, old_root, clave):
        h = 350
        w = 600
        old_root.destroy()
        self.new_root = centerForm(w, h, "Consulta | Alumnos por materia")
        self.clave = clave

        #Frames a usar, algo así como div b:
        topFrame = Frame(self.new_root, width=500, height=200)
        topFrame.grid(row=0, column=0, sticky=W, padx=(55, 0))

        bottomFrame = Frame(self.new_root, width=500, height=100)
        bottomFrame.grid(row=1, column=0)

        #selección
        subjectCveLB = Label(topFrame, text="Materias:")
        subjectCveLB.grid(row=0, column=0)
        self.subjectCBX = ttk.Combobox(topFrame, state="readonly")
        self.subjectCBX.grid(row=0, column=1, sticky="e", padx=5, pady=5)
        self.subjectCBX.bind("<<ComboboxSelected>>", self.showSubjectGroups)

        groupCveLB = Label(topFrame, text="Grupos:")
        groupCveLB.grid(row=1, column=0)
        self.groupCBX = ttk.Combobox(topFrame, state="readonly")
        self.groupCBX.grid(row=1, column=1, sticky="e", padx=5, pady=5)
        self.showSubjects()

        #Top Button
        selectButton = Button(topFrame,
                              text="Buscar",
                              command=self.showStudentsForSubject)
        selectButton.grid(row=0, column=2)

        #primer tabla
        self.tbTopTreeView = ttk.Treeview(bottomFrame)
        self.tbTopTreeView.grid(row=0, column=0, padx=(55, 55), pady=(15, 15))

        self.tbTopTreeView["columns"] = ("Nombre", "Apellido Paterno",
                                         "Apellido Materno")
        self.tbTopTreeView.column("#0", width=120)
        self.tbTopTreeView.column("Nombre", width=120)
        self.tbTopTreeView.column("Apellido Paterno", width=120)
        self.tbTopTreeView.column("Apellido Materno", width=120)

        self.tbTopTreeView.heading('#0', text='Matrícula')
        self.tbTopTreeView.heading('Nombre', text='Nombre')
        self.tbTopTreeView.heading('Apellido Paterno', text='Apellido Paterno')
        self.tbTopTreeView.heading('Apellido Materno', text='Apellido Materno')

        #Bottom buttons
        returnButton = Button(bottomFrame,
                              text="Regresar",
                              command=self.returnAdministrativeHome)
        returnButton.grid(row=1, column=0, sticky=E, padx=(0, 15))

        self.new_root.mainloop()
コード例 #3
0
    def __init__(self, old_root, clave, subject):
        h = 300
        w = 1300
        old_root.destroy()
        self.new_root = centerForm(
            w, h, "Sistema de Inscripción | Inscripción de grupos")
        self.clave = clave
        self.subject = subject

        #Frames a usar, algo así como div b:
        topFrame = Frame(self.new_root, width=500, height=200)
        topFrame.grid(row=0, column=0)

        bottomFrame = Frame(self.new_root, width=500, height=100)
        bottomFrame.grid(row=1, column=0, sticky=E, padx=(0, 40))

        self.tableTreeView = ttk.Treeview(topFrame)
        self.tableTreeView.grid(row=0, column=0, padx=(40, 40), pady=(30, 15))

        self.tableTreeView["columns"] = ("Grupo", "Aula", "Docente", "Lunes",
                                         "Martes", "Miércoles", "Jueves",
                                         "Viernes", "Sábado")
        self.tableTreeView.column("#0", width=10)
        self.tableTreeView.column("Grupo", width=50)
        self.tableTreeView.column("Aula", width=50)
        self.tableTreeView.column("Docente", width=200)
        self.tableTreeView.column("Lunes", width=150)
        self.tableTreeView.column("Martes", width=150)
        self.tableTreeView.column("Miércoles", width=150)
        self.tableTreeView.column("Jueves", width=150)
        self.tableTreeView.column("Viernes", width=150)
        self.tableTreeView.column("Sábado", width=150)

        self.tableTreeView.heading('#0', text='')
        self.tableTreeView.heading('Grupo', text='Grupo')
        self.tableTreeView.heading('Aula', text='Aula')
        self.tableTreeView.heading('Docente', text='Docente')
        self.tableTreeView.heading('Lunes', text='Lunes')
        self.tableTreeView.heading('Martes', text='Martes')
        self.tableTreeView.heading('Miércoles', text='Miércoles')
        self.tableTreeView.heading('Jueves', text='Jueves')
        self.tableTreeView.heading('Viernes', text='Viernes')
        self.tableTreeView.heading('Sábado', text='Sábado')

        # Función para el double clic
        self.tableTreeView.bind("<Double-1>", self.onDoubleClick)

        returnButton = Button(bottomFrame,
                              text="Regresar",
                              command=self.returnInscription)
        returnButton.grid(row=1, column=3)

        ##carga información
        self.showAvailableTeachers()
        self.new_root.mainloop()
コード例 #4
0
    def __init__(self, old_root, clave):
        w = 500
        h = 300
        old_root.destroy()
        self.new_root = centerForm(w, h,
                                   "Sistema de Inscripción | Administrativo")
        self.clave = clave

        #Frames a usar, algo así como div b:
        leftFrame = Frame(self.new_root, width=100, height=100)
        leftFrame.grid(row=0, column=0)

        closeSessionFrame = Frame(self.new_root, bg='gray2')
        closeSessionFrame.grid(row=1, column=0)

        rightFrame = Frame(self.new_root, bg='lavender', width=400, height=300)
        rightFrame.grid(row=0, column=1)

        #Botones
        scheduleButton = Button(leftFrame,
                                text="Horario",
                                command=self.openSchedule,
                                height=1,
                                width=4)
        scheduleButton.grid(row=2, column=0, pady=(10, 10))
        subjectButton = Button(leftFrame,
                               text="Materias",
                               command=self.openSubjects,
                               height=1,
                               width=4)
        subjectButton.grid(row=1, column=0, pady=(10, 0))
        insertButton = Button(leftFrame,
                              text="Insertar\nAlumno",
                              command=self.openAddStudent,
                              height=2,
                              width=4)
        insertButton.grid(row=3, column=0, pady=(10, 100))
        sessionButton = Button(leftFrame,
                               text="Cerrar Sesión",
                               command=self.closeSession,
                               height=1,
                               width=8)
        sessionButton.grid(row=4, column=0, pady=(10, 10), padx=(10, 10))

        self.new_root.mainloop()
コード例 #5
0
    def __init__(self, old_root, clave):
        h = 300
        w = 600
        old_root.destroy()
        self.new_root = centerForm(w, h,
                                   "Sistema de Inscripción | Dar de baja")
        self.clave = clave
        self.subject = None

        topFrame = Frame(self.new_root, width=500, height=200)
        topFrame.grid(row=1, column=0)
        bottomFrame = Frame(self.new_root, width=500, height=100)
        bottomFrame.grid(row=2, column=0, sticky=E, padx=(0, 30))

        #configuración de tabla
        self.tableTreeView = ttk.Treeview(topFrame)
        self.tableTreeView.grid(row=0, column=0, padx=(25, 25), pady=(15, 15))
        self.tableTreeView["columns"] = ("Materia")
        self.tableTreeView.column("#0", width=50)
        self.tableTreeView.column("Materia", width=500)

        self.tableTreeView.heading('#0', text='Clave')
        self.tableTreeView.heading('Materia', text='Materia')

        # Función para borrar con doble clic
        self.tableTreeView.bind("<Double-1>", self.deleteSubject)

        ##en prueba, creo que es pa' los datos xD
        ysb = ttk.Scrollbar(orient="vertical",
                            command=self.tableTreeView.yview)
        xsb = ttk.Scrollbar(orient="horizontal",
                            command=self.tableTreeView.xview)
        self.tableTreeView['yscroll'] = ysb.set
        self.tableTreeView['xscroll'] = xsb.set

        #Cargar inf en tabla
        self.showAvailableSubjects()

        #Botones
        returnButton = Button(bottomFrame,
                              text="Regresar",
                              command=self.returnStudentHome)
        returnButton.grid(row=0, column=1)

        self.new_root.mainloop()
コード例 #6
0
    def __init__(self, old_root):
        w = 500
        h = 300
        old_root.destroy()
        self.new_root = centerForm(w,h,"Sistema de Inscripción | Acceso")

        frame = Frame(self.new_root, width=w, heigh=h)
        frame.grid(row=0,column=0, padx=(70,70), pady=(90,90))
        frame.columnconfigure(0, weight=1)
        frame.rowconfigure(0,weight=1)

        """ CREACIÓN DEL FORMULARIO DE ACCESO"""

        #Campo Tipo Usuario
        tipoUsuarioLBL = Label(frame, text="Tipo de Usuario:")
        tipoUsuarioLBL.grid(row=0, column=0, sticky="e", padx=5, pady=5)

        self.tipoUsuarioCBX = ttk.Combobox(frame, state="readonly")
        self.tipoUsuarioCBX.grid(row=0, column=1, sticky="e", padx=5, pady=5)
        self.tipoUsuarioCBX["values"] = ["Alumno","Docente", "Administrativo"]
        self.tipoUsuarioCBX.current(0)

        #Campo Usuario
        usuarioLB = Label(frame, text="Usuario:")
        usuarioLB.grid(row=1, column=0, sticky="e", padx=5, pady=5)

        self.usuarioENY = Entry(frame)
        self.usuarioENY.grid(row=1, column=1, sticky="e", padx=5, pady=5)

        #Campo Contraseña
        contraseniaLB = Label(frame, text="Contraseña:")
        contraseniaLB.grid(row=2, column=0, sticky="e", padx=5, pady=5)

        self.contraseniaENY = Entry(frame)
        self.contraseniaENY.grid(row=2, column=1, sticky="e", padx=5, pady=5)
        self.contraseniaENY.config(show="*")

        #Botón Ingresar
        userButton = Button(frame, text="Ingresar", command= self.validateInput)
        userButton.grid(row = 3, column = 2, padx=5, pady=5)

        self.new_root.mainloop()
コード例 #7
0
    def __init__(self, old_root,clave,values = {}):
        w = 430
        h = 350
        old_root.destroy()
        self.new_root = centerForm(w,h,"Insertar Alumno | Administrativo")
        self.values = values
        self.clave = clave

        #Frames a usar, algo así como div b:
        mainFrame = Frame(self.new_root, width=500, height=200)
        mainFrame.grid(row=0,column=0,padx=(40,40),pady=(20,20))
        #Frames a usar, algo así como div b:
        insertFrame = Frame(self.new_root, width=500, height=75)
        insertFrame.grid(row=1,column=0,sticky=E)

        returnFrame = Frame(self.new_root,  width=500, height=75)
        returnFrame.grid(row=2,column=0,sticky=W)

        nameLBL = Label(mainFrame, text="Nombre:")
        nameLBL.grid(row=0, column=0, sticky="W", padx=0, pady=0)
        self.nameENY = Entry(mainFrame)
        self.nameENY.grid(row=0, column=1, sticky="W", padx=0, pady=5)

        appPaternoLBL = Label(mainFrame, text="Apellido Paterno:")
        appPaternoLBL.grid(row=1, column=0, sticky="W", padx=0, pady=0)
        self.appPaternoENY = Entry(mainFrame)
        self.appPaternoENY.grid(row=1, column=1, sticky="W", padx=0, pady=5)

        appMaternoLBL = Label(mainFrame, text="Apellido Materno:")
        appMaternoLBL.grid(row=2, column=0, sticky="W", padx=0, pady=0)
        self.appMaternoENY = Entry(mainFrame)
        self.appMaternoENY.grid(row=2, column=1, sticky="W", padx=0, pady=5)

        telefonoLBL = Label(mainFrame, text="Teléfono:")
        telefonoLBL.grid(row=3, column=0, sticky="W", padx=0, pady=0)
        self.telefonoENY = Entry(mainFrame)
        self.telefonoENY.grid(row=3, column=1, sticky="W", padx=0, pady=5)

        sexoLBL = Label(mainFrame, text="Sexo:")
        sexoLBL.grid(row=4, column=0, sticky="W", padx=0, pady=0)
        self.radio = StringVar()
        self.radio.set("M")
        self.mradio = Radiobutton(mainFrame, text="M", variable=self.radio , value="M")
        self.mradio.grid(row=4, column=1, sticky="W", padx=(0,10), pady=5)

        self.fradio = Radiobutton(mainFrame, text="F", variable=self.radio , value="F")
        self.fradio.grid(row=4, column=1, sticky="E", padx=(0,90), pady=5)

        contraseniaLBL = Label(mainFrame, text="Contraseña:")
        contraseniaLBL.grid(row=5, column=0, sticky="W", padx=0, pady=0)
        self.contraseniaENY = Entry(mainFrame)
        self.contraseniaENY.grid(row=5, column=1, sticky="W", padx=0, pady=5)
        self.contraseniaENY.config(show="*")

        carreraLBL = Label(mainFrame, text="Carrera:")
        carreraLBL.grid(row=7, column=0, sticky="W", padx=0, pady=0)
        self.carreraCBX = ttk.Combobox(mainFrame, state="readonly")
        self.carreraCBX.grid(row=7, column=1, sticky="W", padx=0, pady=5)

        inscripcionLBL = Label(mainFrame, text="Inscripcion:")
        inscripcionLBL.grid(row=8, column=0, sticky="W", padx=0, pady=0)
        self.inscripcionCBX = ttk.Combobox(mainFrame, state="readonly")
        self.inscripcionCBX.grid(row=8, column=1, sticky="e", padx=0, pady=0)

        agregarButton = Button(mainFrame, text="Agregar \nFecha", command=self.openAddInscription,height=2,width=4)
        agregarButton.grid(row = 8, column = 2,padx=(10,0))

        insertButton = Button(insertFrame, text="Insertar", command=self.addStudent,height=1,width=4)
        insertButton.grid(row = 1, column = 0,padx=(0,40),sticky=W)

        scheduleButton = Button(returnFrame, text="Regresar", command=self.returnAdministrativeHome,height=1,width=4)
        scheduleButton.grid(row = 2, column = 0,sticky=E,padx=(40,10))

        self.showInformation()

        self.new_root.mainloop()
コード例 #8
0
    def __init__(self, old_root, clave):
        h = 600
        w = 1300
        old_root.destroy()
        self.new_root = centerForm(w, h, "Horario")
        self.clave = clave

        #Frames a usar, algo así como div b:
        topFrame = Frame(self.new_root, width=500, height=200)
        topFrame.grid(row=0, column=0)

        bottomFrame = Frame(self.new_root, width=500, height=100)
        bottomFrame.grid(row=1, column=0, sticky=E, padx=(0, 50))
        #primer tabla
        style = ttk.Style(self.new_root)
        style.configure('Treeview', rowheight=50)
        self.tbTopTreeView = ttk.Treeview(topFrame, height=5)
        self.tbTopTreeView.grid(row=0, column=0, padx=(50, 50), pady=(10, 10))

        self.tbTopTreeView["columns"] = ("Lunes", "Martes", "Miércoles",
                                         "Jueves", "Viernes", "Sabado")
        self.tbTopTreeView.column("#0", width=170)
        self.tbTopTreeView.column("Martes", width=170)
        self.tbTopTreeView.column("Miércoles", width=170)
        self.tbTopTreeView.column("Jueves", width=170)
        self.tbTopTreeView.column("Viernes", width=170)
        self.tbTopTreeView.column("Sabado", width=170)

        self.tbTopTreeView.heading('#0', text='Hora')
        self.tbTopTreeView.heading('Lunes', text='Lunes')
        self.tbTopTreeView.heading('Martes', text='Martes')
        self.tbTopTreeView.heading('Miércoles', text='Miércoles')
        self.tbTopTreeView.heading('Jueves', text='Jueves')
        self.tbTopTreeView.heading('Viernes', text='Viernes')
        self.tbTopTreeView.heading('Sabado', text='Sábado')

        #segunda tabla
        self.tbBottomTreeView = ttk.Treeview(topFrame, height=5)
        self.tbBottomTreeView.grid(row=1,
                                   column=0,
                                   padx=(318, 318),
                                   pady=(0, 10))

        self.tbBottomTreeView["columns"] = ("Grupo", "Materia", "Docente")
        self.tbBottomTreeView.column("#0", width=166)
        self.tbBottomTreeView.column("Grupo", width=166)
        self.tbBottomTreeView.column("Materia", width=166)
        self.tbBottomTreeView.column("Docente", width=166)

        self.tbBottomTreeView.heading('#0', text='Clave')
        self.tbBottomTreeView.heading('Grupo', text='Grupo')
        self.tbBottomTreeView.heading('Materia', text='Materia')
        self.tbBottomTreeView.heading('Docente', text='Docente')

        #Botones
        returnButton = Button(bottomFrame,
                              text="Regresar",
                              command=self.returnStudentHome)
        returnButton.grid(row=1, column=3)

        self.showStudentSchedule()
        self.new_root.mainloop()
コード例 #9
0
    def __init__(self, old_root, clave):
        h = 600
        w = 1300

        old_root.destroy()
        self.new_root = centerForm(w, h, "Consulta | Horario")
        self.clave = clave

        #Frames a usar, algo así como div b:
        topFrame = Frame(self.new_root, width=500, height=100)
        topFrame.grid(row=0, column=0, sticky=W, padx=20)
        leftTopFrame = Frame(topFrame, width=100, height=50)
        leftTopFrame.grid(row=0, column=0)
        rightTopFrame = Frame(topFrame, width=400, height=50)
        rightTopFrame.grid(row=0, column=1)

        bottomFrame = Frame(self.new_root, width=500, height=500)
        bottomFrame.grid(row=1, column=0)

        #selección
        subjectCveLB = Label(leftTopFrame, text="Matrícula:")
        subjectCveLB.grid(row=0, column=0, padx=20)
        self.subjectCveENY = Entry(leftTopFrame)
        self.subjectCveENY.grid(row=0, column=1)

        #Top Button
        selectButton = Button(leftTopFrame,
                              text="Consultar",
                              command=self.showScheduleForStudent)
        selectButton.grid(row=0, column=2)

        #primer tabla
        self.tbTopTreeView = ttk.Treeview(bottomFrame, height=14)
        self.tbTopTreeView.grid(row=1, column=0, padx=(40, 40))

        self.tbTopTreeView["columns"] = ("Lunes", "Martes", "Miércoles",
                                         "Jueves", "Viernes", "Sabado")
        self.tbTopTreeView.column("#0", width=170)
        self.tbTopTreeView.column("Martes", width=170)
        self.tbTopTreeView.column("Miércoles", width=170)
        self.tbTopTreeView.column("Jueves", width=170)
        self.tbTopTreeView.column("Viernes", width=170)
        self.tbTopTreeView.column("Sabado", width=170)

        self.tbTopTreeView.heading('#0', text='Hora')
        self.tbTopTreeView.heading('Lunes', text='Lunes')
        self.tbTopTreeView.heading('Martes', text='Martes')
        self.tbTopTreeView.heading('Miércoles', text='Miércoles')
        self.tbTopTreeView.heading('Jueves', text='Jueves')
        self.tbTopTreeView.heading('Viernes', text='Viernes')
        self.tbTopTreeView.heading('Sabado', text='Sábado')

        spaceCveLB = Label(bottomFrame, text=" ")
        spaceCveLB.grid(row=2, column=0)
        #segunda tabla
        self.tbBottomTreeView = ttk.Treeview(bottomFrame, height=8)
        self.tbBottomTreeView.grid(row=3, column=0)

        self.tbBottomTreeView["columns"] = ("Materia", "Docente")
        self.tbBottomTreeView.column("#0", width=90)
        self.tbBottomTreeView.column("Materia", width=400)
        self.tbBottomTreeView.column("Docente", width=400)

        self.tbBottomTreeView.heading('#0', text='Clave')
        self.tbBottomTreeView.heading('Materia', text='Materia')
        self.tbBottomTreeView.heading('Docente', text='Docente')
        space2CveLB = Label(bottomFrame, text=" ")
        space2CveLB.grid(row=4, column=0)
        #Bottom buttons
        returnButton = Button(bottomFrame,
                              text="Regresar",
                              command=self.returnAdministrativeHome)
        returnButton.grid(row=5, column=0, sticky=E, padx=(0, 20))

        self.new_root.mainloop()
コード例 #10
0
    def __init__(self, old_root, clave):
        h = 300
        w = 500
        old_root.destroy()
        self.new_root = centerForm(w, h, "Sistema de Inscripción | Alumno")
        self.clave = clave

        #Frames a usar, algo así como div b:
        leftFrame = Frame(self.new_root, width=100, height=100)
        leftFrame.grid(row=0, column=0)

        rightFrame = Frame(self.new_root, width=400, height=300)
        rightFrame.grid(row=0, column=1, sticky=N, padx=(20, 0))

        estatus = loadStudentStatus(clave)
        self.claveCveLB = Label(rightFrame, text="Matrícula: ")
        self.claveCveLB.grid(row=1,
                             column=0,
                             padx=(0, 10),
                             sticky=W,
                             pady=(10, 5))
        self.nameCveLB = Label(rightFrame, text="Nombre: ")
        self.nameCveLB.grid(row=2,
                            column=0,
                            padx=(0, 10),
                            sticky=W,
                            pady=(0, 5))
        self.careerCveLB = Label(rightFrame, text="Carrera: ")
        self.careerCveLB.grid(row=3,
                              column=0,
                              padx=(0, 10),
                              sticky=W,
                              pady=(0, 5))
        self.showStudentInf()
        #Botones
        if estatus == 'PRIMER INGRESO':
            inscriptionButton = Button(leftFrame,
                                       text="Inscribir",
                                       state=DISABLED,
                                       command=self.openInscription,
                                       height=1,
                                       width=4)
            deleteButton = Button(leftFrame,
                                  text="Eliminar",
                                  state=DISABLED,
                                  command=self.openDeleteSubject,
                                  height=1,
                                  width=4)

        elif estatus == 'REINGRESO':
            inscriptionButton = Button(leftFrame,
                                       text="Inscribir",
                                       command=self.openInscription,
                                       height=1,
                                       width=4)
            deleteButton = Button(leftFrame,
                                  text="Eliminar",
                                  command=self.openDeleteSubject,
                                  height=1,
                                  width=4)

        inscriptionButton.grid(row=1, column=0, pady=(10, 0))
        deleteButton.grid(row=2, column=0, pady=(10, 0))
        scheduleButton = Button(leftFrame,
                                text="Horario",
                                command=self.openSchedule,
                                height=1,
                                width=4)
        scheduleButton.grid(row=3, column=0, pady=(10, 100))
        sessionButton = Button(leftFrame,
                               text="Cerrar Sesión",
                               command=self.quit,
                               height=1,
                               width=8)
        sessionButton.grid(row=4, column=0, pady=(10, 10), padx=(10, 10))