GUIKit Example: ColorChooser
CodeDefinition
| Out[4]= |  |
ExampleThis example uses Widget["ColorChooser"] and includes sample code demonstrating how to Bind a Mathematica script to execute each time the selected color changes. Create a custom 'color well' whose background color changes with the selection. Add a modal result binding so a Mathematica color primitive is returned to the kernel when the dialog session ends. Define a utility wrapper function around the GUIRunModal call, demonstrating a single reusable instance of the dialog used throughout the lifetime of the kernel session.
| Out[3]= |  |
|