Documentos de Académico
Documentos de Profesional
Documentos de Cultura
TK Inter
TK Inter
raiz=Tk()
raiz.mainloop()
…………………………………………………………………………………………………………………………………………..
import tkinter as tk
mywindow = tk.Tk()
mywindow.title("Python + Tkinter GUI")
mywindow.geometry("600x400")
mywindow.mainloop()
……………………………………………………………………………………………………………………………………….….
Para buscar información: standard library tkinter Python
……………………………………………………………………………………………………………………………………………
from tkinter import *
raiz=Tk()
raiz.title("Ventana de Sistema")
raiz.resizable(0, 1)
raiz.iconbitmap("dsi.ico")
raiz.mainloop()
Label
CON IMAGEN
CUADRO DE TEXTOS.
Usando Grid.
Alineación:
COMENTARIOS
BOTONES
from tkinter import *
def suma():
rsuma=float(cuadron1.get())+float(cuadron2.get())
return varsum.set(rsuma)
raiz=Tk()
miFrame=Frame(raiz,width=1200,height=600)
miFrame.pack()
cuadron1=Entry(miFrame)
cuadron1.grid(row=1,column=1,padx=10,pady=10)
cuadron2=Entry(miFrame)
cuadron2.grid(row=2,column=1,padx=10,pady=10)
varsum=StringVar()
resulLabel=Label(miFrame,textvariable=varsum)
resulLabel.grid(row=3,column=1,padx=10,pady=10)
botonSuma=Button(miFrame,text="sumar",width=6,command=suma)
botonSuma.grid(row=4,column=1)
raiz.mainloop()
RADIO BUTTON
CHECKBUTTON
Modificamos los checkbutton
BARRA DE MENÚS
VENTANAS EMERGENTES.
CONEXIÓN A BASE DE DATOS
MOSTRAR TABLA
CRUD
READ
UPDATE
DELETE