Advertisement
here2share

# Tk_text_anchor.py

Jun 16th, 2015
360
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.41 KB | None | 0 0
  1. # Tk_text_anchor.py
  2.  
  3. from Tkinter import *  
  4. root = Tk()  
  5.  
  6. Label(root,text = 'hello python world!',bg = 'yellow',width = 40,height = 5,wraplength = 80).pack()  
  7.  
  8. Label(root,text = 'hello python world!',bg = 'red',width = 40,height = 5,wraplength = 80,anchor = 'nw').pack()  
  9.  
  10. Label(root,text = 'hello python world!',bg = 'blue',width = 40,height = 5,wraplength = 80,anchor = 'e').pack()  
  11.  
  12. root.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement