def setModel(self, model): """Sets new model for application, and change window title witn new macroserver name.""" TaurusMainWindow.setModel(self, model) self.setWindowTitle(Qt.QApplication.applicationName() + ": " + model)
def setModel(self, name): """Reimplemented to delegate model to the commands and attrs forms""" TaurusMainWindow.setModel(self, name) self._ui.taurusAttrForm.setModel(name) self._ui.taurusCommandsForm.setModel(name)