def __init__(self, application): self.application = application self.tabs = Tabs(id='toolbar').append_to(application.viewport) row = Row(id="file") col1 = Column().append_to(row) col2 = Column().append_to(row) Button('Open').append_to(col1).on_click = application.file_open.show Button('Save').append_to(col1).on_click = application.file_save.show Button('New').append_to(col1).on_click = application.empty Label('Export').append_to(col2) Button('Heighs').append_to(col2).on_click = application.export_heights_dialog.show Button('Material').append_to(col2).on_click = application.export_png_dialog.show Button('Obj').append_to(col2).on_click = application.export_obj_dialog.show self.tabs.add('File', row) self.sources = Category(application) self.tabs.add('Src', self.sources) self.operators = Category(application) self.tabs.add('Ops', self.operators) self.filters = Category(application) self.tabs.add('Filter', self.filters)
def __init__(self, title, node): Row.__init__(self) self.input = InputSlot(node).append_to(self) Label(title).append_to(self)
def __init__(self, title, checked=False): Row.__init__(self) Label(title).append_to(self) self.checkbox = Checkbox(checked=checked).append_to(self)
def __init__(self, title, start): Row.__init__(self) Label(title).append_to(self) self.slider = Slider(start=start).append_to(self)
def __init__(self, application): Row.__init__(self) self.application = application self.col1 = Column().append_to(self) self.col2 = Column().append_to(self)