コード例 #1
0
ファイル: telplugins.py プロジェクト: alexdarling/telPlugins
 def __init__(self, pluginName):
     self.pluginName = pluginName
     self.plugin = tpc.loadPlugin (_pluginManager, pluginName)
     if not self.plugin:
         raise Exception(tpc.getLastError())             
     else:
         lp = self.listOfProperties()
         for element in lp:
             self._propertyNames.append (element[0])
         tpc.resetPlugin(self.plugin)                
コード例 #2
0
 def __init__(self, pluginName):
     self.pluginName = pluginName
     self.plugin = tpc.loadPlugin(_pluginManager, pluginName)
     if not self.plugin:
         raise Exception(tpc.getLastError())
     else:
         lp = self.listOfProperties()
         for element in lp:
             self._propertyNames.append(element[0])
         tpc.resetPlugin(self.plugin)
コード例 #3
0
ファイル: telplugins.py プロジェクト: alexdarling/telPlugins
 def execute (self):
     if tpc.executePlugin (self.plugin) == True:
         return True
     else:
         raise Exception(tpc.getLastError())
コード例 #4
0
 def execute(self):
     if tpc.executePlugin(self.plugin) == True:
         return True
     else:
         raise Exception(tpc.getLastError())