Draw text with font : Text : GUI Tk PYTHON examples


PYTHON examples » GUI Tk » Text »

 

Draw text with font


Draw text with font
 

from Tkinter import *

root = Tk()
#root.option_readfile('optionDB')
root.title('Canvas')
canvas = Canvas(root, width =400, height=400)

canvas.create_text(350,150, text='text', fill='yellow', font=('verdana', 36))

canvas.pack()
root.mainloop()


           
         
  



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON examples

 Navioo GUI Tk
» Text