471,310 Members | 1,075 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,310 software developers and data experts.

Taking Over the Screen - Tkinter

I'm working on a presentation program that needs to produce 'full
screen' images.

The effect will be something like a powerpoint presentation.
In actual fact it's a song database with lyrics - and each 'screen'
will need a widget for next verse, previous verse, chorus etc..... so
what I'd really like is a Tk text widget that is full screen sized.

(For the moment I'll just use a large window - most of the work will
be in building the interface to the database).

How do I either -

1) Produce a borderless full screen window *or*
2) Detect the window size

using Tkinter pereferably................
Thanks,

Fuzzy

http://www.voidspace.org.uk/atlantib...thonutils.html
Jul 18 '05 #1
2 4477
Fuzzyman wrote:
I'm working on a presentation program that needs to produce 'full
screen' images.

The effect will be something like a powerpoint presentation.
In actual fact it's a song database with lyrics - and each 'screen'
will need a widget for next verse, previous verse, chorus etc..... so
what I'd really like is a Tk text widget that is full screen sized.

(For the moment I'll just use a large window - most of the work will
be in building the interface to the database).

How do I either -

1) Produce a borderless full screen window *or*
2) Detect the window size

using Tkinter pereferably................
Thanks,

Fuzzy

http://www.voidspace.org.uk/atlantib...thonutils.html


To produce a borderless window: method overrideredirect on Toplevel's; this
makes the window manager (if that has any meaning on your platform) ignore the
window, so it doesn't draw any decorations.

To get the size of the screen: methods winfo_screenwidth and winfo_screenheight
on any Tkinter object.

To resize your window: method geometry on Toplevel's; the geometry is encoded in
a string with the format "WxH+X+Y", so you'll want:
"%sx%s+0+0" % (w.winfo_screenwidth(), w.winfo_screenheight())

You may also have to explicitely call the method tkraise on your borderless
window on Windows, because such windows have a tendency to appear below all
other ones.

HTH
--
- Eric Brunel <eric dot brunel at pragmadev dot com> -
PragmaDev : Real Time Software Development Tools - http://www.pragmadev.com

Jul 18 '05 #2
Eric Brunel <er*********@N0SP4M.com> wrote in message news:<c1**********@news-reader3.wanadoo.fr>...
Fuzzyman wrote:
I'm working on a presentation program that needs to produce 'full
screen' images.

The effect will be something like a powerpoint presentation.
In actual fact it's a song database with lyrics - and each 'screen'
will need a widget for next verse, previous verse, chorus etc..... so
what I'd really like is a Tk text widget that is full screen sized.

(For the moment I'll just use a large window - most of the work will
be in building the interface to the database).

How do I either -

1) Produce a borderless full screen window *or*
2) Detect the window size

using Tkinter pereferably................
Thanks,

Fuzzy

http://www.voidspace.org.uk/atlantib...thonutils.html


To produce a borderless window: method overrideredirect on Toplevel's; this
makes the window manager (if that has any meaning on your platform) ignore the
window, so it doesn't draw any decorations.

To get the size of the screen: methods winfo_screenwidth and winfo_screenheight
on any Tkinter object.

To resize your window: method geometry on Toplevel's; the geometry is encoded in
a string with the format "WxH+X+Y", so you'll want:
"%sx%s+0+0" % (w.winfo_screenwidth(), w.winfo_screenheight())

You may also have to explicitely call the method tkraise on your borderless
window on Windows, because such windows have a tendency to appear below all
other ones.

HTH


Thanks very much - that's exactly the help I needed, much appreciated.

Fuzzy

http://www.voidspace.org.uk/atlantib...thonutils.html
Jul 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Suresh Kumar | last post: by
1 post views Thread by Mudcat | last post: by
reply views Thread by nik | last post: by
reply views Thread by syed_saqib_ali | last post: by
1 post views Thread by linuxnooby | last post: by
1 post views Thread by Michael Yanowitz | last post: by
3 posts views Thread by rahulnag22 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.