Python Forum
How to check if window is fullscreen or not
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to check if window is fullscreen or not
#3
Well, if the <F11> is pressed and the function is called, it sets the wm_state to 'zoomed' and on <Esc> to 'normal', so it can be determined with your proposal. But in the case someone clicks on the Maximize or reduce area on the top right of the window, this isn't change the wm_state. So unfortunately there's no reliable info if the window is 'zoomed'/'maximized' or not.
Maybe i must find out how to bind this action of the mouse click. BBut what other additional events can also affect the window fullscreen? (E.g. minimize?)
I just whanted a reliable info about if the window is fullscreen or not. But it seems that there are different kinds of "fullscreen"s...
Reply


Messages In This Thread
RE: How to check if window is fullscreen or not - by delphinis - Aug-01-2020, 01:21 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Interaction between Matplotlib window, Python prompt and TKinter window NorbertMoussy 3 1,007 Mar-17-2024, 09:37 AM
Last Post: deanhystad
  Background Image FullScreen oguzcan 5 9,021 Apr-26-2020, 10:13 PM
Last Post: Larz60+
  tkinter window and turtle window error 1885 3 6,951 Nov-02-2019, 12:18 PM
Last Post: 1885
  [pyglet] Why is screen blank when displaying a gif when setting fullscreen = True ? Huudzz 0 2,379 Oct-25-2019, 06:13 PM
Last Post: Huudzz
  [Tkinter] Python 3.5 tk fullscreen nuska012 2 8,155 Dec-11-2018, 06:56 AM
Last Post: jfong
  [Tkinter] Multiple frames with tkinter - How to make them run on fullscreen mode eabs86 3 18,444 Sep-20-2018, 01:27 AM
Last Post: eabs86
  update a variable in parent window after closing its toplevel window gray 5 9,424 Mar-20-2017, 10:35 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020