Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

tkinter text in canvas

self.canvas = Canvas(root, width=800, height=650, bg = '#afeeee')
self.canvas.create_text(100,10,fill="darkblue",font="Times 20 italic bold",
                        text="Click the bubbles that are multiples of two.")
Comment

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
)
Comment

PREVIOUS NEXT
Code Example
Python :: Python How to convert a string to the name of a function? 
Python :: pandas df.index.values 
Python :: python gitignore 
Python :: Iterate through string in python using for loop and rang 
Python :: pandas shape 
Python :: linear regression python code 
Python :: what is attribute in python 
Python :: boolien in python 
Python :: matplotlib temperature celsius 
Python :: python telegram 
Python :: clone dict python 
Python :: how to add numbers into a list python 
Python :: required_fields = [] 
Python :: opkg install python-lxml_2.2.8-r1_mips32el.ipk 
Python :: read mouse log python 
Python :: chrome detach selenium python 
Python :: py var to the power of 
Python :: enumerate 
Python :: unlimited arguments 
Python :: Python Import all names 
Python :: selenium proxy with authentication 
Python :: dense in keras 
Python :: show only integer values matplotlib 
Python :: 9x9 grid tkinter 
Python :: how to make bak files with python 
Python :: message to dict protobuf 
Python :: python float to int 
Python :: bell number python 
Python :: validate string using six library python 
Python :: python sepia filter 
ADD CONTENT
Topic
Content
Source link
Name
8+1 =