-
Notifications
You must be signed in to change notification settings - Fork 85
Description
Hi,
I'm trying to use a yes/no popup with some whitespace surrounding the text (in order to make the popup title fully visible in all cases, regardless of popup text length). But the popup trims the whitespace.
The drop_whitespace
parameter is only available for the basic popup
, not for the other text-based popups (e.g. popup_yes_no
).
A simple workaround is to use popup(button_type=POPUP_BUTTONS_OK_CANCEL, drop_whitespace=False)
, I wonder how you feel about adding the drop_whitespace
parameter to the other relevant functions?
I can do the work and raise a PR if it's a good idea.
I think the relevant functions are any that just make a call to popup
:
popup_non_blocking
, popup_quick
, popup_quick_message
, popup_no_titlebar
, popup_auto_close
, popup_error
, popup_cancel
, popup_ok
, popup_ok_cancel
and popup_yes_no
.