Display dialog window for selection of a color. Convenience wrapper for the Chooser class. Displays the color chooser dialog with color as the initial value.
(color=None, **options)
| 66 | # convenience stuff |
| 67 | |
| 68 | def askcolor(color=None, **options): |
| 69 | """Display dialog window for selection of a color. |
| 70 | |
| 71 | Convenience wrapper for the Chooser class. Displays the color |
| 72 | chooser dialog with color as the initial value. |
| 73 | """ |
| 74 | |
| 75 | if color: |
| 76 | options = options.copy() |
| 77 | options["initialcolor"] = color |
| 78 | |
| 79 | return Chooser(**options).show() |
| 80 | |
| 81 | |
| 82 | # -------------------------------------------------------------------- |
no test coverage detected
searching dependent graphs…