Skip to content, Skip to search

Changes

Script Parameters

448 bytes added, 02:44, 19 June 2017
Add section of styles of Scripting Parameters
print(myDir)
</source>
 
=== Styles ===
 
You can influence the visual style of some of the input widgets. See previous paragraph for an example for how to switch from file to folder selection. You can also switch
 
<source lang="python">
#@String(choices={"Option 1", "Option 2"}, style="listBox") myChoice123
#@String(choices={"Option A", "Option B"}, style="radioButtonHorizontal") myChoiceABC
 
print(myChoice123)
print(myChoiceABC)
</source>
 
[[File:Input-styles.png]]
[[Category:Scripting]]
160
edits