def __init__(self, manager, scrollFactor=0.2, toolbar_id=None): ToggleTool.__init__(self, manager, title='Auto Scroll', icon=None, tip='Force X scale to always show the last value', toolbar_id=toolbar_id) BaseConfigurableClass.__init__(self) self.scrollFactor = scrollFactor self.registerConfigProperty(self.action.isChecked, self.setChecked, 'actionChecked')
def __init__(self, manager, scrollFactor=0.2, toolbar_id=None): ToggleTool.__init__(self, manager, title='Auto Scroll', icon=None, tip='Force X scale to always show the last value', toolbar_id=toolbar_id) BaseConfigurableClass.__init__(self) self.scrollFactor = scrollFactor self.registerConfigProperty(self.action.isChecked, self.action.setChecked, 'actionChecked')
def __init__(self, manager, axis, toolbar_id=None): ToggleTool.__init__(self, manager, title='Auto-scale %s axis' % axis, icon=None, tip='Auto-scale %s axis when data changes', toolbar_id=toolbar_id) BaseConfigurableClass.__init__(self) self.axis = axis self.registerConfigProperty(self.action.isChecked, self.setChecked, 'actionChecked')