Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Tk_text_anchor.py
- from Tkinter import *
- root = Tk()
- Label(root,text = 'hello python world!',bg = 'yellow',width = 40,height = 5,wraplength = 80).pack()
- Label(root,text = 'hello python world!',bg = 'red',width = 40,height = 5,wraplength = 80,anchor = 'nw').pack()
- Label(root,text = 'hello python world!',bg = 'blue',width = 40,height = 5,wraplength = 80,anchor = 'e').pack()
- root.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement