Mega Code Archive

 
Categories / Python / GUI Tk
 

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