from Tkinter import Text, Tk, INSERT root = Tk() text = Text(root) text.tag_configure("center", justify='center', underline=0) text.insert(INSERT, value, hyperlink.add(callback), 'center')
Подскажите как правильно сделать?
from Tkinter import Text, Tk, INSERT root = Tk() text = Text(root) text.tag_configure("center", justify='center', underline=0) text.insert(INSERT, value, hyperlink.add(callback), 'center')
import Tkinter root = Tkinter.Tk() text = Tkinter.Text(root) text.tag_configure('center', justify = 'center', underline = 0) text.pack() for x in range(10): text.insert('insert', str(x) * x + '\n', 'center')