Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

tkinter add text to canvas

from tkinter import Tk, Canvas

canvas.create_text(
    539.0, #example position on the x axis
    310.99999999999994, #text position on the y axis
    anchor="nw",
    text="Your text", #Your text
    fill="white",  #or any color
    font=("Inter Bold", 20 * -1) #"inter bold" - font-name and weight
)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #tkinter #add #text #canvas
ADD COMMENT
Topic
Name
5+8 =