Draw text : Text « GUI Tk « Python






Draw text

Draw text
 

from Tkinter import *

canvas = Canvas(width=300, height=300, bg='white')   
canvas.pack(expand=YES, fill=BOTH)                   

canvas.create_text(100, 280, text='Ham')             

mainloop()
           
         
  








Related examples in the same category

1.Draw text with fontDraw text with font
2.Scrolled TextScrolled Text
3.Change color for tagsChange color for tags
4.Change font for TextChange font for Text
5.Add double click action to a TextAdd double click action to a Text
6.Insert String to a TextInsert String to a Text
7.Text properties: expand and fillText properties: expand and fill
8.Text with ScrollBarText with ScrollBar
9.Show a file in a text widget
10.Search string in TextSearch string in Text