Bienvenue sur le Gitlab destiné aux élèves des sections NSI et ISN 2019 2020 du Lycée Léonard de Vinci à Soissons.

Commit 95bc0074 authored by git's avatar git

reponse exercice cours

parent 46b44778
# Créé par thierry, le 04/12/2015 en Python 3.2
import math
import tkinter
import lycee
import time
from tkinter import *
from time import *
i=0
curtime=''
def hor():
global curtime
newtime=strftime("%H:%M:%S", gmtime())
if newtime != curtime:
curtime=newtime
horloge.config(text=curtime)
horloge.after(200, hor)
return()
aff=Tk()
horloge=Label(aff)
hor()
fermer = Button(aff, text = 'Fermer',bg='grey',justify='left', command=aff.quit)
fermer.pack()
horloge.pack()
aff.mainloop()
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment