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 code a jumping function in python 
Python :: python delete directory even if not empty 
Python :: static instance and local variables in python 
Python :: find max, min character 
Python :: view does not return httpresponse 
Python :: Parallel run of a function with multiple arguments partial 
Python :: how to add multiple commands to tkinter button 
Python :: seaborn heatmap spearman correlation coefficient 
Python :: show all of a truncated dataframe jupyter" 
Python :: what modules are used for NLG in python 
Python :: adding the first place value and second value in python 
Python :: python tf.maximum 
Python :: Aminul 
Python :: python loop chrome 
Python :: django rest serializer depth 
Python :: Remove outliers with median value and Capping 
Python :: python program to remove comment lines 
Python :: custom save method django 
Python :: list data structure in python 
Python :: python set strings, lists, tuples 
Python :: python check vpn ip address 
Python :: python this module 
Python :: csrf is not detected using sendbeacon django 
Python :: create a number of variables based on input in python 
Python :: paginate @registrations 
Python :: Get Result From Table Django 
Python :: hashmap in python 
Python :: data structures in python 
Python :: eastcoders: django-meta-class 
Python :: convert python code to dart online 
ADD CONTENT
Topic
Content
Source link
Name
4+3 =