14 lines
367 B
Python
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()
|