[Tkinter-discuss] justify text in Text widget

craf prog at vtr.net
Tue Feb 15 20:58:25 CET 2011


Hi.

Is there any possibility to justify the text within a Text control?. In
my example code, I set the text using the wrap option value 'word'

Code:--------------------------------------------------------------

import Tkinter

master = Tkinter.Tk()
master.geometry('150x100')
t = Tkinter.Text(master, wrap='word')
t.pack(side='top', fill='both')

master.mainloop()


Thanks in advance.!

Regards

Cristian Abarzúa F.

-----------------------
S.O: Ubuntu 9.10
Python 2.7
Gnome 2.28
Tkinter 8.5




More information about the Tkinter-discuss mailing list