def _actions_default(self): # Using the same actions as the minimal menu actions = [ SchemaAddition(id='RaiseException', factory=RaiseExceptionAction, path='MenuBar/Help/Debug'), ] return [TaskExtension(actions=actions)]
def _contributed_task_extensions_default(self): from .actions import StartQtConsoleAction def menu_factory(): kernel = self.application.get_service(IPYTHON_KERNEL_PROTOCOL) return SGroup(StartQtConsoleAction(kernel=kernel), id='ipython') return [ TaskExtension(actions=[ SchemaAddition( path='MenuBar/View', factory=menu_factory, id='IPythonSchema', ), ]) ]
def _actions_default(self): # Using the same actions as the minimal menu actions = self._osx_actions_default() return [TaskExtension(actions=actions)]