CmdBttnPlugin module

filename:CmdBttnPlugin.py
author:roar@tordivel.no
requirements:Scorpion 9.0.0.494 or higher

Scorpion Plugin for user configurable panel with buttons to send commands to Scorpion

1.0.0.6, 11nov2015, RL: modified for autodoc
1.0.0.5, 10jan2013, RL:
  using SpeedButtons
1.0.0.4, 10aug2012, RL:
  removed accessControl
  halign and valign replaces hcenter and vcenter
1.0.0.3, 06aug2012, RL:
  added vcenter and hcenter
1.0.0.2, 24dec2011, TV:
  enable both in Service and Settings
  standard header - add versionlabel
1.0.0.1, 29sep2011, RL:
  created
class CmdBttnPlugin.CmdBttnPlugin(cntr, name)[source]

Bases: object

__str__()[source]

return a unique persistance name for host application storage

init()[source]

reset all content and add the description label

positionControls()[source]

set button positions

addBttn(caption, cmd, params, glyph=None)[source]

add a button to the plugin

getConfig()[source]

returns plugin configuration as xml

setConfig(value)[source]

set plugin configuration from the string ‘value’

configure()[source]

launch an input dialog for editing plugin

cntrResize(sender, args)[source]

reposition controls

bttnClick(sender, args)[source]

callback when user clicks a button

CmdBttnPlugin.CreatePlugin(hWnd, name='')[source]

Scorpion Plugin Stub - Required