Created
October 14, 2025 10:34
-
-
Save stephensmitchell/ea608b6e67e255e6d4d4800723f4ea9c to your computer and use it in GitHub Desktop.
Custom Values and Settings Window
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #https://help.alibre.com/articles/#!alibre-help-v28/custom-values-and-settings-window | |
| # create windows object | |
| Win = Windows() | |
| # construct list of items for the window | |
| Options = [] | |
| # ask user for text | |
| Options.append(['Name of the item', WindowsInputTypes.String, 'Baz']) | |
| # ask user for a floating point (real) value | |
| Options.append(['Scale', WindowsInputTypes.Real, 1.234]) | |
| # checkbox | |
| Options.append(['Enabled', WindowsInputTypes.Boolean, True]) | |
| # ask user for an integer | |
| Options.append(['Count', WindowsInputTypes.Integer, 123456]) | |
| # show window and output results | |
| # if user closes window or clicks on Cancel button then Values will be set to 'None' | |
| Values = Win.OptionsDialog('Test', Options) | |
| print Values |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment