def _bt_rescale_changed(self): # rescale all x's between theta/d/Q rescale_xye_datasets(self.datasets, self.target_value, self.convert_from, self.convert_to) write_xye_datasets(self.datasets, self.filename_field) # disable rescale button self.can_rescale = False
def do_rescale(self, info): rescale_xye_datasets( info.object.datasets, info.object.target_value, info.object.convert_from, info.object.convert_to ) write_xye_datasets(info.object.datasets, info.object.filename_field) # disable rescale button # info.object.can_rescale = False info.ui.dispose() return