EmaSMach

Ventana hueca con tkinter y python

Aug 5th, 2018
277
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.33 KB | None | 0 0
  1. import tkinter as tk
  2.  
  3. root = tk.Tk()
  4. root.config(bg='red')
  5. root.title('Ventana hueca :o')
  6.  
  7. btn = tk.Button(text='No sabía que se podía \nhacer una ventana hueca', bg='green')
  8. btn.pack(expand='yes')
  9.  
  10. root.attributes('-fullscreen', 1)
  11. root.attributes('-transparentcolor', 'red')
  12. root.attributes('-topmost', 1)
  13.  
  14. root.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment