def on_new_button(self, action=None, params=None, title=None): "Defines what happens when you press the 'new' button on the toolbar" new_workspace_dialog = NewWorkspaceDialog(self.createWorkspace, self.workspace_manager, self.ws_sidebar, self.window, title) new_workspace_dialog.show_all()