gear_mc
 All Classes Namespaces Functions Variables
Public Member Functions | Public Attributes | List of all members
gear.xsi.ppg.PPGLogic Class Reference

Generate PPGLogic code. More...

Public Member Functions

def __init__
 Init method. More...
 
def addGlobalCode
 Add Global code to the logic. More...
 
def addMethod
 Add a method to the logic. More...
 
def addOnChanged
 Add onchanged event to the logic. More...
 
def addOnClicked
 Add onClicked event to the logic. More...
 
def addOnChangedRefresh
 Add onchanged event that refresh the PPG. More...
 
def getValue
 Return the logic code as a string. More...
 

Public Attributes

 propType
 
 globalCode
 
 methods
 
 value
 
 refresh_method
 

Detailed Description

Generate PPGLogic code.

Constructor & Destructor Documentation

def gear.xsi.ppg.PPGLogic.__init__ (   self,
  propType = "gear_PSet" 
)

Init method.

Parameters
self
propTypeString - Type of the property. This should always be sn_PSet, no need to set it.

Member Function Documentation

def gear.xsi.ppg.PPGLogic.addGlobalCode (   self,
  code 
)

Add Global code to the logic.

For example to import modules. Code must be in Python.

Parameters
self
codeString.
def gear.xsi.ppg.PPGLogic.addMethod (   self,
  name,
  code 
)

Add a method to the logic.

Code must be in Python.

Parameters
self
nameString - method name.
codeString.
def gear.xsi.ppg.PPGLogic.addOnChanged (   self,
  paramName,
  code 
)

Add onchanged event to the logic.

Code must be in Python.

Parameters
self
paramNameString - Parameter name.
codeString.
def gear.xsi.ppg.PPGLogic.addOnChangedRefresh (   self,
  paramName 
)

Add onchanged event that refresh the PPG.

Parameters
self
paramNameString - Parameter name.
def gear.xsi.ppg.PPGLogic.addOnClicked (   self,
  buttonName,
  code 
)

Add onClicked event to the logic.

Code must be in Python.

Parameters
self
buttonNameString - Button name.
codeString.
def gear.xsi.ppg.PPGLogic.getValue (   self)

Return the logic code as a string.

Code is in Python.

Parameters
self
Returns
String - The logic.

The documentation for this class was generated from the following file: