Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __init__(self, inputs, targets, indexes=None, keyboard_shortcuts=True, save_hook=None):
self.path = ''
self.dirty_uindexes = set()
self.save_hook = save_hook
self.datamanager = DataManager(inputs, targets, indexes)
slider = IntSlider(min=0, max=0)
self.slider = slider
self.prevbtn = Button(description='< Previous')
self.nextbtn = Button(description='Next >')
self.input_widgets = [dw.get_widget() for dw in self.datamanager.get_inputs()]
self.target_widgets = [dw.get_widget() for dw in self.datamanager.get_targets()]
self.add_class('innotater-base')
cbar_widgets = [self.prevbtn, slider, self.nextbtn]
if self.save_hook:
self.savebtn = Button(description='Save', disabled=True)