How do I make a transparent window in Tkinter?

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

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

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()

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?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.