Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

tkinter canvas text

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 #canvas #text
ADD COMMENT
Topic
Name
4+8 =