de texto quiero validar la fecha ingresada, bueno es todo, desde ya muchas pero muchas
gracias al que desee ayudarme.-
Código
from tkinter import ttk, messagebox
import tkinter as tk
from datetime import datetime
def verificarFecha(self):
try:
datetime.strptime(fecha, '%d/%m/%Y')
print('correcto')
except ValueError:
print("\n No ha ingresado una fecha correcta...")
root = tk.Tk()
root.config(width=300, height=200)
root.title("Mi aplicación.")
fecha = tk.StringVar()
entrada = ttk.Entry(root, textvariable=fecha, font=("Verdana", 12))
entrada.place(x=50, y=50, width=150)
entrada.focus()
entrada.bind("<Return>", verificarFecha)
boton = ttk.Button(root, text="Salir")
boton.place(x=100, y=100, width=80, height=50)
root.mainloop()


 
  




 Autor
 Autor
		



 En línea
									En línea
								




