Trade dialog¶
The value dialog Trade is used to create a button that allows to open the dialog for a trade selection.
Clicking the button opens the trade dialog like
After closing the dialog, the name of the selected trade is displayed as the button text and the ID is assigned to the parameter.
Syntax¶
<Parameter>
<Name>TradeID</Name>
<Text>Trade</Text>
<Value>0</Value>
<ValueType>Integer</ValueType>
<ValueDialog>Trade</ValueDialog>
</Parameter>
Example¶
The implementation of the Trade value dialog is described in the example AllControls located in
..\etc\Examples\PythonParts\PaletteExamples\AllControls.pyp
..\etc\PythonPartsExampleScripts\PaletteExamples\AllControls.py