I do not create any graphical interface when running the python program

0

I'm doing a graphical interface of a program, I just started and it's already giving me problems. In the interface only one text and two buttons appear, the problem is that when I run the program, no graphic window or anything opens. I leave the code in case there is an error that I do not detect:

from tkinter import *
from tkinter import messagebox
import sqlite3

#-----------PANTALLA INICIO Y CREAR CUENTA------------
raiz=Tk()

frameInicio=Frame(raiz, width=500, height=500)
frameInicio.pack()

labelBienvenida=Label(frameInicio, text="BIENVENIDO AL GESTOR DE ALMACÉN")
labelBienvenida.grid(row=0, column=1, padx=10, pady=10)

inicioSesion=Button(frameInicio, text="Iniciar sesión")
inicioSesion.grid(row=1, column=1, padx=10, pady=10)

crearCuenta=Button(frameInicio, text="Crear cuenta")
crearCuenta.grid(row=2, column=1, padx=10, pady=10)
    
asked by Diego Martinez 15.08.2018 в 15:22
source

1 answer

0

I have already discovered my error, I was missing the root.mainloop ()

    
answered by 15.08.2018 в 15:27