Advertisement
Uno-Dan

Tranparent

Apr 13th, 2020
289
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.54 KB | None | 0 0
  1.  
  2. import tkinter as tk
  3. import tkinter.ttk as ttk
  4.  
  5.  
  6. class App(tk.Tk):
  7.     def __init__(self):
  8.         super().__init__()
  9.         self.rowconfigure(0, weight=1)
  10.         self.columnconfigure(1, weight=1)
  11.         self.title('Default Demo')
  12.         self.geometry('420x200')
  13.  
  14.  
  15. def main():
  16.     app = App()
  17.     app.overrideredirect(True)
  18.     app.wait_visibility(app)
  19.     app.wm_attributes('-alpha', 0.2)
  20.     app.wm_attributes("-topmost", True)
  21.     app.config(bg='#00aaff')
  22.  
  23.     app.mainloop()
  24.  
  25.  
  26. if __name__ == '__main__':
  27.     main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement