Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ Bug ] "Modal" windows can't be minimized #3447

Open
PySimpleGUI opened this issue Oct 4, 2020 · 0 comments
Open

[ Bug ] "Modal" windows can't be minimized #3447

PySimpleGUI opened this issue Oct 4, 2020 · 0 comments
Labels
Bug Something's not right

Comments

@PySimpleGUI
Copy link
Owner

Type of Issues (Enhancement, Error, Bug, Question)

Bug

Operating System

Windows 10

Python version

3.6

PySimpleGUI Port and Version

Ports = tkinter
PySimpleGUI Version: 4.29.0.16

tkinter version:

Description of Problem / Question / Details

Code To Duplicate

This problem is demonstrable by using simple popups, but to make it clearer that it's the modal parameter in the call to Window that is the root cause, I chose to show an entire window's creation.

For a popups, you could simply call popup('Anything') to show the problem and popup('Anything', modal=False) to show minimize capability is restored.

import PySimpleGUI as sg

layout = [  [sg.Text('My Window will not minimize'+sg.ver)],
            [sg.Button('Go'), sg.Button('Exit')]  ]

window = sg.Window('Window Title', layout, modal=True)

while True:             # Event Loop
    event, values = window.read()
    print(event, values)
    if event in (sg.WIN_CLOSED, 'Exit'):
        break
window.close()
@PySimpleGUI PySimpleGUI added the Bug Something's not right label Oct 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something's not right
Projects
None yet
Development

No branches or pull requests

1 participant