954,557 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

tkinter transparent window

How do I make a transparent window in Tkinter?

ryufire
Newbie Poster
4 posts since Jun 2010
Reputation Points: 10
Solved Threads: 0
 

wm_attributes does not take keyword arguments. See issue1500773.

something like this should work, though: self.top=Toplevel(master=self.parent) self.top.wm_attributes('-alpha', 0.8)

from transparency in top level tk window

pyTony
pyMod
Moderator
5,359 posts since Apr 2010
Reputation Points: 782
Solved Threads: 852
 

hope you dont mind asking this in your thread, but does anyone know if there is a way to do this with wxpython? Thanks

Dan08
Junior Poster
133 posts since Jul 2009
Reputation Points: 18
Solved Threads: 9
 
hope you dont mind asking this in your thread, but does anyone know if there is a way to do this with wxpython? Thanks

For realistic transparency on a wxPython canvas see: http://www.daniweb.com/forums/showthread.php?p=1207924#post1207924

vegaseat
DaniWeb's Hypocrite
Moderator
5,989 posts since Oct 2004
Reputation Points: 1,345
Solved Threads: 1,417
 
How do I make a transparent window in Tkinter?

I think you need version Tkinter 8.4 or higher ...

import Tkinter as tk

root = tk.Tk()
# use transparency level 0.1 to 1.0 (no transparency)
root.attributes("-alpha", 0.3)
root.mainloop()
vegaseat
DaniWeb's Hypocrite
Moderator
5,989 posts since Oct 2004
Reputation Points: 1,345
Solved Threads: 1,417
 

Can you only make the root level window transparent? Would it be possible to make a text widget visible, but it's parent window transparent?

cgsig
Newbie Poster
1 post since Oct 2011
Reputation Points: 10
Solved Threads: 0
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: