Skip to content
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

Add suppression parameter to cancel #522

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions docs/alerts.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ app.display()

![question popup](images/question_windows.png)

** Example: Get a file name**
**Example: Get a file name**

Ask the user to select a file using the `select_file` pop-up.

Expand Down Expand Up @@ -178,7 +178,7 @@ file_name.value = app.select_file(save=True)

![select save file popup](images/select_file_save_windows.png)

** Example: Get a folder name**
**Example: Get a folder name**

Select a folder using the `select_folder` pop-up.

Expand Down
2 changes: 1 addition & 1 deletion docs/app.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ You can call the following methods on an `App` object.
|---------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------|
| add_tk_widget(tk_widget, grid=None, align=None, visible=True, enabled=None, width=None, height=None) | tk_widget (tk), grid (list), align (str), visible (bool), enabled (bool), width (int), height (int) | Widget | Adds a tk widget into a guizero container. Note - this is an advanced feature see [Using tk](usingtk.md) for more information. |
| after(time, command, args=None) | time (int), command (function name), args (list of arguments) | - | Schedules a **single** call to `command` after `time` milliseconds. (To repeatedly call the same command, use `repeat()`) |
| cancel(command) | command (function name) | - | Cancels a scheduled call to `command` |
| cancel(command, warn) | command (function name), warn (Boolean) | - | Cancels a scheduled call to `command`. Warns if the command was not scheduled unless warn is set to `False`. |
| destroy() | - | - | Destroys the widget |
| disable() | - | - | Disables all the widgets in the app so that they cannot be interacted with |
| display() | - | - | Displays the app on the screen. You **MUST** call this method at the end of your program to display the app on the screen. |
Expand Down
2 changes: 1 addition & 1 deletion docs/box.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ You can call the following methods on a `Box` object.
|------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------|---------|----------------------------------------------------------------------------------------------------------------------------------------------------------------|
| add_tk_widget(tk_widget, grid=None, align=None, visible=True, enabled=None, width=None, height=None) | tk_widget (tk), grid (list), align (str), visible (bool), enabled (bool), width (int), height (int) | Widget | Adds a tk widget into a guizero container. Note - this is an advanced feature see [Using tk](usingtk.md) for more information. |
| after(time, command, args=None) | time (int), command (function name), args (list of arguments) | - | Schedules a **single** call to `command` after `time` milliseconds. (To repeatedly call the same command, use `repeat()`) |
| cancel(command) | command (function name) | - | Cancels a scheduled call to `command` |
| cancel(command, warn) | command (function name), warn (Boolean) | - | Cancels a scheduled call to `command`. Warns if the command was not scheduled unless warn is set to `False`. |
| disable() | - | - | Disables all the widgets in the box so that they cannot be interacted with |
| destroy() | - | - | Destroys the widget |
| enable() | - | - | Enables all the widgets in the box |
Expand Down
2 changes: 1 addition & 1 deletion docs/buttongroup.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ You can call the following methods on an `ButtonGroup` object.
|-------------------------------------|--------------------------------------------------------------------------------------|---------|----------------------------------------------------------------------------------------------------------------------------------------------------------------|
| append(option) | item (string) | - | Appends a new `option` to the end of the ButtonGroup. |
| after(time, command, args=None) | time (int), command (function name), args (list of arguments) | - | Schedules a **single** call to `command` after `time` milliseconds. (To repeatedly call the same command, use `repeat()`) |
| cancel(command) | command (function name) | - | Cancels a scheduled call to `command` |
| cancel(command, warn) | command (function name), warn (Boolean) | - | Cancels a scheduled call to `command`. Warns if the command was not scheduled unless warn is set to `False`. |
| destroy() | - | - | Destroys the widget |
| disable() | - | - | Disables the widget so that it is "greyed out" and cannot be interacted with |
| enable() | - | - | Enables the widget |
Expand Down
2 changes: 1 addition & 1 deletion docs/checkbox.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ You can call the following methods on a `CheckBox` object.
| Method | Takes | Returns | Description |
|-------------------------------------|--------------------------------------------------------------------------------------|---------|----------------------------------------------------------------------------------------------------------------------------------------------------------------|
| after(time, command, args=None) | time (int), command (function name), args (list of arguments) | - | Schedules a **single** call to `command` after `time` milliseconds. (To repeatedly call the same command, use `repeat()`) |
| cancel(command) | command (function name) | - | Cancels a scheduled call to `command` |
| cancel(command, warn) | command (function name), warn (Boolean) | - | Cancels a scheduled call to `command`. Warns if the command was not scheduled unless warn is set to `False`. |
| destroy() | - | - | Destroys the widget |
| disable() | - | - | Disables the widget so that it is "greyed out" and cannot be interacted with |
| enable() | - | - | Enables the widget |
Expand Down
2 changes: 1 addition & 1 deletion docs/combo.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ You can call the following methods on a `Combo` object.
|----------------------------------|---------------------------------------------------------------|---------|----------------------------------------------------------------------------------------------------------------------------------------------------------------|
| append(option) | item (string) | - | Appends a new `option` to the end of the Combo. |
| after(time, command, args=None) | time (int), command (function name), args (list of arguments) | - | Schedules a **single** call to `command` after `time` milliseconds. (To repeatedly call the same command, use `repeat()`) |
| cancel(command) | command (function name) | - | Cancels a scheduled call to `command` |
| cancel(command, warn) | command (function name), warn (Boolean) | - | Cancels a scheduled call to `command`. Warns if the command was not scheduled unless warn is set to `False`. |
| clear() | - | - | Removes all options from the Combo box |
| destroy() | - | - | Destroys the widget |
| disable() | - | - | Disables the widget so that it is "greyed out" and cannot be interacted with |
Expand Down
2 changes: 1 addition & 1 deletion docs/drawing.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ You can call the following methods on a `Drawing` object.
| Method | Takes | Returns | Description |
|---------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------|---------|----------------------------------------------------------------------------------------------------------------------------------------------------------------|
| after(time, command, args=None) | time (int), command (function name), args (list of arguments) | - | Schedules a **single** call to `command` after `time` milliseconds. (To repeatedly call the same command, use `repeat()`) |
| cancel(command) | command (function name) | - | Cancels a scheduled call to `command` |
| cancel(command, warn) | command (function name), warn (Boolean) | - | Cancels a scheduled call to `command`. Warns if the command was not scheduled unless warn is set to `False`. |
| clear() | - | - | Clears the drawing |
| delete() | id (int) - | - | Deletes an "object" (line, triangle, image, etc) from the drawing. |
| destroy() | - | - | Destroys the widget |
Expand Down
Loading