Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created August 23, 2021 17:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/66861fb5b3684d966d03055f9224781d to your computer and use it in GitHub Desktop.
Save parzibyte/66861fb5b3684d966d03055f9224781d to your computer and use it in GitHub Desktop.
raiz = tk.Tk()
variable_hora_actual = tk.StringVar(raiz, value=obtener_tiempo_transcurrido_formateado())
raiz.etiqueta = tk.Label(
raiz, textvariable=variable_hora_actual, font=f"Consolas 60")
raiz.etiqueta.pack(side="top")
app = tk.Frame()
raiz.title("Cronómetro con Tkinter - By Parzibyte")
refrescar_tiempo_transcurrido()
app.pack()
app.mainloop()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment