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

PREVIOUS NEXT
Code Example
Python :: how to map array of string to int in python 
Python :: goal parser 
Python :: list of characters python 
Python :: Remove the Unnamed column in pandas 
Python :: python http server command line 
Python :: python remove directory not empty 
Python :: train test validation sklearn 
Python :: drop index in multiindex pandas 
Python :: convert files from jpg to png and save in a new directory python 
Python :: python check if variables are the same 
Python :: program to find even numbers in python 
Python :: how to add and subtract days datetime python 
Python :: replace multiple spaces with single space python 
Python :: how to make python open a link 
Python :: convert number to binary python 
Python :: convert 2d list to 1d python 
Python :: sorted python lambda 
Python :: simple thresholding with OpenCV 
Python :: one line input in python 
Python :: create pdf from images python 
Python :: python poner en mayusculas 
Python :: create spark dataframe in python 
Python :: pyqt5 change table widget column width 
Python :: np replace nan 
Python :: pythondatetime cheatsheet 
Python :: check pip installed packages inside virtualenv 
Python :: Static Assets in Django 
Python :: plt plot grid on 
Python :: inverse matrice python 
Python :: python datetime into 12-hour format 
ADD CONTENT
Topic
Content
Source link
Name
6+9 =