Files
2019-01-20 00:55:05 +01:00

14 lines
367 B
Python

from tkinter import *
window = Tk()
text = Label(window, text = "hello World!")
text.pack()
canvas = Canvas(window, 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()
window.mainloop()