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.")
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.")
how to change text in a canvas tkinter
#here im giving you an example of how you can change canvas text, u have to use itemconfig
self.canvas = Canvas(root, width=800, height=650, bg = '#afeeee')
mytext = self.canvas.create_text(100,10,fill="darkblue",font="Times 20 italic bold",text="Click the bubbles that are multiples of two.")
#here ill edit the text
time.sleep(1)
self.canvas.itemconfig(mytext, text="text has changed!")
#this is an edit because for accident i typed some text wrong, this is fix
how to change text in a canvas tkinter
#here im giving you an example of how you can change canvas text, u have to use itemconfig :)
self.canvas = Canvas(root, width=800, height=650, bg = '#afeeee')
mytext = self.canvas.create_text(100,10,fill="darkblue",font="Times 20 italic bold",text="Click the bubbles that are multiples of two.")
#here ill edit the text.
time.sleep(1)
self.canvas.itemcongig(mytext, text="text has changed!")
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us