Tkinter fullscreen with Mac OS X

Guilherme Polo ggpolo at gmail.com
Mon Jul 28 19:43:39 EDT 2008


On Mon, Jul 28, 2008 at 8:10 PM, C Martin <g.threepwood at gmail.com> wrote:
> Is there a way to create a full screen app using Tkinter with Mac OS
> X?? On windows, this is relatively easy with overrideredirect(1).
> However, on the Mac, the top menu bar and dock are still displayed
> over the app. Is there a way to get rid of them?
>

You could try this, supposing tl is a toplevel:

tl.tk.call("::tk::unsupported::MacWindowStyle", "style", tl._w, "plain", "none")

and if you are using python with tk 8.5 or newer (unlikely):

tl.wm_attributes('-fullscreen', 1)

But I don't have a mac, so I can't say for sure if these solve your problem.

> Thanks.
> --
> http://mail.python.org/mailman/listinfo/python-list
>



-- 
-- Guilherme H. Polo Goncalves



More information about the Python-list mailing list