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))
def NewPowerCurve(self): config = PowerCurveConfiguration() power_curve.PowerCurveConfigurationDialog( self, self.setSpecifiedPowerCurveFromPath, config)