Text উইজেটে টেক্সট সেন্টার অ্যালাইন করতে tag_configure('tag_name', justify='center') এবং tag_add('tag_name', '1.0', 'end') ব্যবহার করুন।
from tkinter import *
win = Tk()
win.geometry("700x350")
text = Text(win, width=40, height=10)
text.tag_configure("center", justify='center')
text.insert(INSERT, "Welcome to Tutorialspoint...")
text.tag_add("center", 1.0, "end")
text.pack()
win.mainloop()
টেক্সট উইজেটে লিখা টেক্সট সেন্টার-অ্যালাইন থাকবে। কন্ট্রোলের জন্য justify মান: LEFT, RIGHT, CENTER।