Está en la página 1de 2

import tkinter as tk

ventanaprincipal = tk.Tk()
ventanaprincipal.title('hola')
ventanaprincipal.geometry('400x200')

# Etiqueta y valor para el nombre


nombre_etiqueta = tk.Label(ventanaprincipal, text='NOMBRE:', font=('Times new
Roman',10,'bold'))
nombre_etiqueta.grid(row=0, column=0)
nombre_valor = tk.Label(ventanaprincipal, text='Jeremy Alexander')
nombre_valor.grid(row=0,column=1)

# Etiqueta y valor para el apellido


apellido_etiqueta = tk.Label(ventanaprincipal, text='APELLIDO:', font=('Times new
Roman',10,'bold'))
apellido_etiqueta.grid(row=1, column=0)
apellido_valor = tk.Label(ventanaprincipal, text='Rodriguez Franco')
apellido_valor.grid(row=1,column=1)

# Etiqueta y valor para la edad


edad_etiqueta = tk.Label(ventanaprincipal, text='EDAD:', font=('Times new
Roman',10,'bold'))
edad_etiqueta.grid(row=2, column=0)
edad_valor = tk.Label(ventanaprincipal, text='15')
edad_valor.grid(row=2,column=1)

# Etiqueta y valor para la dirección


direccion_etiqueta = tk.Label(ventanaprincipal, text='DIRECCIÓN:', font=('Times new
Roman',10,'bold'))
direccion_etiqueta.grid(row=3, column=0)
direccion_valor = tk.Label(ventanaprincipal, text='Flor de bastion')
direccion_valor.grid(row=3,column=1)

# Etiqueta y valor para el estado civil


estado_civil_etiqueta = tk.Label(ventanaprincipal, text='ESTADO CIVIL:',
font=('Times new Roman',10,'bold'))
estado_civil_etiqueta.grid(row=4, column=0)
estado_civil_valor = tk.Label(ventanaprincipal, text='Felizmente soltero')
estado_civil_valor.grid(row=4,column=1)

# Etiqueta y valor para el género


genero_etiqueta = tk.Label(ventanaprincipal, text='GÉNERO:', font=('Times new
Roman',10,'bold'))
genero_etiqueta.grid(row=5, column=0)
genero_valor = tk.Label(ventanaprincipal, text='Masculino')
genero_valor.grid(row=5,column=1)

# Etiqueta y valor para la educación


educacion_etiqueta = tk.Label(ventanaprincipal, text='EDUCACIÓN:', font=('Times new
Roman',10,'bold'))
educacion_etiqueta.grid(row=6, column=0)
educacion_valor = tk.Label(ventanaprincipal, text='NA')
educacion_valor.grid(row=6,column=1)

# Etiqueta y valor para la nacionalidad


nacionalidad_etiqueta = tk.Label(ventanaprincipal, text='NACIONALIDAD:',
font=('Times new Roman',10,'bold'))
nacionalidad_etiqueta.grid(row=7, column=0)
nacionalidad_valor = tk.Label(ventanaprincipal, text='Ecuatoriano')
nacionalidad_valor.grid(row=7,column=1)

ventanaprincipal.mainloop()

También podría gustarte