Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
mprinkezs committed Apr 4, 2024
1 parent c5fb9a4 commit b467bb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/howtos/testing_addons/testing_addons.md
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ The dialog was canceled
### Usage

`AutoDialogContext` provides a context for automatically interacting with dialogs which are shown via `gom.script.sys.show_user_defined_dialog`.
The AutoDialogContext is a context manager (https://docs.python.org/3/reference/datamodel.html#context-managers),
`AutoDialogContext` is a context manager (https://docs.python.org/3/reference/datamodel.html#context-managers),
which can be used together with the "with" statement (https://docs.python.org/3/reference/compound_stmts.html#with).

Its `__init__` method expects a callback function. This callback function should take a single parameter which is a dialog handle. The dialog handle may be used to manipulate the dialog (set the value of widgets, call the handler manually, etc).
Expand Down

0 comments on commit b467bb3

Please sign in to comment.