louis058
louis058

Reputation: 67

Is it possible to create a Tkinter Window with no frame, and no background?

I've looked through the documentation, and searched quite a bit now, and couldn't find an answer for this problem. Before I give up, I'll ask here.

I want to create a window that has no frame (as in, no titlebar, no border around the window), and maybe a transparent background. I've found how to set the background to a certain colour, but not to transparent, and couldn't find anything about whether I can have the frame not display itself.

So I ask, is it possible to create a Tkinter window that has no border, and a transparent background?

Upvotes: 2

Views: 6081

Answers (1)

schlenk
schlenk

Reputation: 7257

No border is possible. Try something like wm transient or wm overrideredirect.

Transparent depends, have a look at the documentation for wm attributes: http://www.tcl.tk/man/tcl/TkCmd/wm.htm#M8 On windows you can set a transparentcolor.

Otherwise you might need a platform specific extension to create oddly shaped and transparent windows, for example: http://www.cs.man.ac.uk/~fellowsd/tcl/shapeidx.html

Upvotes: 2

Related Questions