Skip to content

Add drop_whitespace parameter to all text based popups #79

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions FreeSimpleGUI/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10081,6 +10081,7 @@ def popup_non_blocking(
relative_location=(None, None),
image=None,
modal=False,
drop_whitespace=True,
):
"""
Show Popup window and immediately return (does not block)
Expand Down Expand Up @@ -10145,6 +10146,7 @@ def popup_non_blocking(
relative_location=relative_location,
image=image,
modal=modal,
drop_whitespace=drop_whitespace,
)


Expand All @@ -10169,6 +10171,7 @@ def popup_quick(
relative_location=(None, None),
image=None,
modal=False,
drop_whitespace=True,
):
"""
Show Popup box that doesn't block and closes itself
Expand Down Expand Up @@ -10235,6 +10238,7 @@ def popup_quick(
relative_location=relative_location,
image=image,
modal=modal,
drop_whitespace=drop_whitespace,
)


Expand All @@ -10259,6 +10263,7 @@ def popup_quick_message(
relative_location=(None, None),
image=None,
modal=False,
drop_whitespace=True,
):
"""
Show Popup window with no titlebar, doesn't block, and auto closes itself.
Expand Down Expand Up @@ -10324,6 +10329,7 @@ def popup_quick_message(
relative_location=relative_location,
image=image,
modal=modal,
drop_whitespace=drop_whitespace,
)


Expand All @@ -10347,6 +10353,7 @@ def popup_no_titlebar(
relative_location=(None, None),
image=None,
modal=True,
drop_whitespace=True,
):
"""
Display a Popup without a titlebar. Enables grab anywhere so you can move it
Expand Down Expand Up @@ -10410,6 +10417,7 @@ def popup_no_titlebar(
relative_location=relative_location,
image=image,
modal=modal,
drop_whitespace=drop_whitespace,
)


Expand All @@ -10434,6 +10442,7 @@ def popup_auto_close(
relative_location=(None, None),
image=None,
modal=True,
drop_whitespace=True,
):
"""Popup that closes itself after some time period

Expand Down Expand Up @@ -10499,6 +10508,7 @@ def popup_auto_close(
relative_location=relative_location,
image=image,
modal=modal,
drop_whitespace=drop_whitespace,
)


Expand All @@ -10522,6 +10532,7 @@ def popup_error(
relative_location=(None, None),
image=None,
modal=True,
drop_whitespace=True,
):
"""
Popup with colored button and 'Error' as button text
Expand Down Expand Up @@ -10586,6 +10597,7 @@ def popup_error(
relative_location=relative_location,
image=image,
modal=modal,
drop_whitespace=drop_whitespace,
)


Expand All @@ -10609,6 +10621,7 @@ def popup_cancel(
relative_location=(None, None),
image=None,
modal=True,
drop_whitespace=True,
):
"""
Display Popup with "cancelled" button text
Expand Down Expand Up @@ -10672,6 +10685,7 @@ def popup_cancel(
relative_location=relative_location,
image=image,
modal=modal,
drop_whitespace=drop_whitespace,
)


Expand All @@ -10695,6 +10709,7 @@ def popup_ok(
relative_location=(None, None),
image=None,
modal=True,
drop_whitespace=True,
):
"""
Display Popup with OK button only
Expand Down Expand Up @@ -10758,6 +10773,7 @@ def popup_ok(
relative_location=relative_location,
image=image,
modal=modal,
drop_whitespace=drop_whitespace,
)


Expand All @@ -10781,6 +10797,7 @@ def popup_ok_cancel(
relative_location=(None, None),
image=None,
modal=True,
drop_whitespace=True,
):
"""
Display popup with OK and Cancel buttons
Expand Down Expand Up @@ -10844,6 +10861,7 @@ def popup_ok_cancel(
relative_location=relative_location,
image=image,
modal=modal,
drop_whitespace=drop_whitespace,
)


Expand All @@ -10867,6 +10885,7 @@ def popup_yes_no(
relative_location=(None, None),
image=None,
modal=True,
drop_whitespace=True,
):
"""
Display Popup with Yes and No buttons
Expand Down Expand Up @@ -10930,6 +10949,7 @@ def popup_yes_no(
relative_location=relative_location,
image=image,
modal=modal,
drop_whitespace=drop_whitespace,
)


Expand Down