def __init__(self, name='unnamed text', text=None, *args, **kwargs): Dock.__init__(self, name, *args, **kwargs) t = FwMinimalTextEditor() if text is not None: t.text.setText(text) self.addWidget(t)
def __init__(self, name='unnamed table', text=None, array=None, *args, **kwargs): Dock.__init__(self, name, *args, **kwargs) if array is not None: t = Table.fromArray(array) elif text is not None: t = Table.fromText(text) else: t = Table() self.addWidget(t)
def close(self): Dock.close(self) # Show text when all docks are closed if not self.area.docks: self.area.text.show()
def close(self): Dock.close(self) # Show text when all docks are closed if not self.area.docks: self.area.reset()