473,406 Members | 2,769 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 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 4650
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Suresh Kumar | last post by:
Hi, I am using python/tkinter/windows. How to store tkinter canvas screen as a PNG file? I have drawn some rectangles in my canvas and i want to store it as a PNG file so that i can use it for...
1
by: Mudcat | last post by:
Hi all, I am writing a gui that expands depending on the number of interefaces a user decides to use with Win 2k, Tkinter, and Pmw. So with normal use the gui window will expand to the screen...
0
by: nik | last post by:
hello, i am writing an app which is running on a dual screen setup on windows and OS X. is anyone doing this using Tkinter? are there problems with it? i know Tk() takes a "screenname"...
0
by: syed_saqib_ali | last post by:
Below is a simple code snippet showing a Tkinter Window bearing a canvas and 2 connected scrollbars (Vertical & Horizontal). Works fine. When you shrink/resize the window the scrollbars adjust...
1
by: linuxnooby | last post by:
Hi I am trying to write a python script to run on windows xp that will have a full screen gui. The script has a function that creates a full screen (hides task bar) top level window using...
5
by: Pat | last post by:
I am trying to place a dialog in the center of the screen based on a users screen resolution. I can get the width and height of the screen, but I can't seem to use the following: ...
1
by: Michael Yanowitz | last post by:
Hello: Below I have included a stripped down version of the GUI I am working on. It contains 2 dialog boxes - one main and one settings. It has the following problems, probably all related, that...
1
by: batista | last post by:
Hello all, I have a third praty grid control...named C1grid. Im using it in one of my apps.. Now, I have bind this grid to a custom dataset class named "DataViewEx". The code of the class is...
3
by: rahulnag22 | last post by:
Hi, I have developed a GUI using tkinter (grid geometory manager). The structure is a top frame containing multiple subframes. Each subframe has a combination of widgets like(Entry, label,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.