Files
Python-2018/Affichage graphique?.py
2019-01-20 00:55:05 +01:00

14 lines
342 B
Python

from tkinter import *
fenetre = Tk()
canvas = Canvas(fenetre, width=150, height=120, background='yellow')
ligne1 = canvas.create_line(75, 0, 75, 120)
ligne2 = canvas.create_line(0, 60, 150, 60)
txt = canvas.create_text(75, 60, text="Cible", font="Arial 16 italic", fill="blue")
canvas.pack()
canvas.coords(bitmap,5,5)
fenetre.mainloop()