コード例 #1
0
 def EditPowerCurve(self):
         
     specifiedPowerCurve = self.specifiedPowerCurve.get()
     analysisPath = self.filePath.get()
     
     folder = os.path.dirname(os.path.abspath(analysisPath))
     path = os.path.join(folder, specifiedPowerCurve)
     
     if len(specifiedPowerCurve) > 0:
     
         try:
             config = PowerCurveConfiguration(path)
             power_curve.PowerCurveConfigurationDialog(self, self.setSpecifiedPowerCurveFromPath, config)
         except Exception as e:
             ExceptionHandler.add(e, "ERROR loading config ({0})".format(specifiedPowerCurve))
コード例 #2
0
ファイル: analysis.py プロジェクト: pablo-esteban/PCWG
 def NewPowerCurve(self):
     config = PowerCurveConfiguration()
     power_curve.PowerCurveConfigurationDialog(
         self, self.setSpecifiedPowerCurveFromPath, config)