Canvas create text in python

 CANVAS CREATE TEXT IN PYTHON

Code:
from tkinter import *
window = Tk()
window.title("Canvas text")
window.geometry("1500x750")
window.resizable(False, False)
canvas = Canvas(window, width=1500, height=750, bg = 'green')
canvas.create_text(330,100,fill="white",font="Times 20 italic bold",
text="This is my text")


canvas.pack()
window.mainloop()

OUTPUT

canvas text


Comments