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 2 4669
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 overrideredirec t 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_screenwid th and winfo_screenhei ght
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_screen width(), w.winfo_screenh eight())
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
Eric Brunel <er*********@N0 SP4M.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 overrideredirec t 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_screenwid th and winfo_screenhei ght 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_screen width(), w.winfo_screenh eight())
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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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
further processing. How can i do it?
Thanx.
|
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 size and
then clip without scrolling. If I use Pmw.ScrolledFrame, the clipping
frame is set based on the size of the first child frame and never
expands to fill the screen. It just expands the size of the inside
frame inside the clipping frame.
|
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" argument which specifies the screen.
but i am not sure about how well Tkinter copes with having two Tk
objects and i could not find any documentation as to what the screens
are called.
|
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 accordingly.
However, what I really want to happen is that the area of the canvas
that the scrollbars show (the Scrollregion) should expand as the window
grows. It doesn't currently do this. although, if the window shrinks
smaller than the...
|
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 tkinter.
If I close the window and call the function a 2nd time the resulting
window is full screen, but does not hide the task bar this time.
| |
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:
root.geometry('WxH+X+Y')
It appears the values for X and Y need to be integers and not a variable
like width/2-40
S
|
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 I am hoping someone knows what I am
doing wrong:
1) Pressing the Settings.. Button multiple times, brings up many instances
of the Settings Panel. I just want it to bring up one. Is there an easy
way to do that?
|
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 below...
Now what happens is that im updating this dataviewex class from a
separate thread.....
|
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,
button,listboxes). The subframes are placed with a padx and pady
offset with regards to the other subframes. And the widgets within
these subframes have their own padx and pady offsets. The GUI runs
fine on my linux box, but on a different linux box...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |