[view] improvement: allowing max_width to be defined for the confirmation dialogs

This commit is contained in:
Vinicius Moreira
2022-03-30 17:14:46 -03:00
parent 889a30e2e8
commit 45c586ed4b
4 changed files with 12 additions and 5 deletions

View File

@@ -21,7 +21,8 @@ class ProcessWatcher:
confirmation_label: str = None, deny_label: str = None, deny_button: bool = True,
window_cancel: bool = False, confirmation_button: bool = True,
min_width: Optional[int] = None,
min_height: Optional[int] = None) -> bool:
min_height: Optional[int] = None,
max_width: Optional[int] = None) -> bool:
"""
request a user confirmation. In the current GUI implementation, it shows a popup to the user.
:param title: popup title
@@ -34,6 +35,7 @@ class ProcessWatcher:
:param confirmation_button: if the confirmation button should be displayed
:param min_width: minimum width for the confirmation dialog
:param min_height: minimum height for the confirmation dialog
:param max_width: maximum width for the confirmation dialog
:return: if the request was confirmed by the user
"""
pass