process_dialog¶
-
glue.utils.qt.
process_dialog
(*args, **kwds)[source]¶ Context manager to automatically capture the active dialog and carry out certain actions.
Note that only one of
accept
,reject
, orfunction
should be specified.Parameters: delay : int, optional
The delay in ms before acting on the dialog (since it may not yet exist when the context manager is called).
accept : bool, optional
If True, accept the dialog after the specified delay.
reject : bool, optional
If False, reject the dialog after the specified delay
function : func, optional
For more complex user actions, specify a function that takes the dialog as the first and only argument.