Taking Over the Screen - Tkinter

F

Fuzzyman

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/atlantibots/pythonutils.html
 
E

Eric Brunel

Fuzzyman said:
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/atlantibots/pythonutils.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
 
F

Fuzzyman

Eric Brunel said:
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/atlantibots/pythonutils.html
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,051
Latest member
CarleyMcCr

Latest Threads

Top