Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Full-screen display in Tkinter

0 views
Skip to first unread message

Svein Brekke

unread,
Jul 4, 2002, 9:54:18 AM7/4/02
to
I am building a slide show application with Tkinter, and need
to create a full-screen window, i.e. supressing title bar
and start menu etc.

Is that supported in Tkinter?
I work on Win2000 with python 2.2, but would like my code to
be portable to other platforms.

Any help or hints will be appreciated.

Svein Brekke

Markus von Ehr

unread,
Jul 4, 2002, 10:43:28 AM7/4/02
to
root=Tk()
root.geometry(your_geometry)
root.overrideredirect(1)

your_geometry is:
"%dx%d%+d%+d" % (width, height, xoffset, yoffset)


Svein Brekke schrieb:

Fredrik Lundh

unread,
Jul 4, 2002, 11:26:01 AM7/4/02
to
Svein Brekke wrote:
> I am building a slide show application with Tkinter, and need
> to create a full-screen window, i.e. supressing title bar
> and start menu etc.

root = Tk()

# make it cover the entire screen
w, h = root.winfo_screenwidth(), root.winfo_screenheight()
root.overrideredirect(1)
root.geometry("%dx%d+0+0" % (w, h))

</F>


Matt Gerrans

unread,
Jul 5, 2002, 4:06:30 AM7/5/02
to
By the way, unless this is a turnkey application, I think most people find
this sort of behavior by a program (even installers) to be very annoying.


Kevin Altis

unread,
Jul 8, 2002, 12:40:20 PM7/8/02
to
Just an FYI that PythonCard http://pythoncard.sourceforge.net/ comes with a
slideshow sample that displays images in a window or full screen. The
version in cvs that will be in the next release can also display HTML.
PythonCard uses wxPython, not tkinter, so it doesn't solve your tk needs,
but wxPython/PythonCard is cross-platform.

ka
---
Kevin Altis
al...@semi-retired.com


"Svein Brekke" <sv...@start.no> wrote in message
news:21298535.02070...@posting.google.com...

0 new messages