Skip to content, Skip to search

Changes

Script Parameters

306 bytes added, 08:29, 6 May 2016
Parameter properties: add multiple choice
<source lang="python">
# @Integer(label="An integer!",value=15) someInt
</source>
 
=== Multiple Choice ===
 
Any parameter can be turned into a multiple-choice selector by adding a <code>choices = {...}</code> property:
 
<source lang="python">
# @String(label="What mythical monster would you like to unleash?",choices={"Kraken","Cyclops","Medusa","Fluffy bunny"}) monsterChoice
</source>
Bureaucrat, emailconfirmed, incoming, administrator, uploaders
735
edits