Guest User

Untitled

a guest
Jun 19th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. import tkinter as tk
  2. root = tk.Tk()
  3. texto = tk.StringVar(value='Texto inicial')
  4. texto.set(value='TextoVariable')
  5.  
  6. tk.Label(root, text='Hola Mundo').pack(anchor='nw')
  7.  
  8. label = tk.Label(root)
  9. label.pack(anchor='center')
  10.  
  11. tk.Label(root, text='Hola Saturno').pack(anchor='se')
  12.  
  13. label.config(bg='green', fg='blue', font=('Verdana',24))
  14. label.config(textvariable=texto)
  15.  
  16. root.mainloop()
Add Comment
Please, Sign In to add comment