Beispiel #1
0
def get_singleton(session, create=False):
    from chimerax.core import tools
    from .tool import FilePanel
    return tools.get_singleton(session,
                               FilePanel,
                               'File History',
                               create=create)
Beispiel #2
0
 def get_singleton(self, session, create=True):
   from chimerax.core import tools
   return tools.get_singleton(session, CoordinatesPanel, 'Map Coordinates', create=create)
Beispiel #3
0
 def get_singleton(self, session, create=True):
     from chimerax.core import tools
     return tools.get_singleton(session,
                                FitMapDialog,
                                'Fit in Map',
                                create=create)
Beispiel #4
0
 def get_singleton(cls, session):
     from chimerax.core import tools
     return tools.get_singleton(session, ToolshedUI, 'Toolshed')
Beispiel #5
0
def get_singleton(session, create=True):
    if not session.ui.is_gui:
        return None
    from chimerax.core import tools
    from ..tool import ISOLDE_ToolUI
    return tools.get_singleton(session, ISOLDE_ToolUI, 'ISOLDE', create=create)
Beispiel #6
0
 def get_singleton(self, session, create=True):
     from chimerax.core import tools
     return tools.get_singleton(session,
                                CageBuilder,
                                'Cage Builder',
                                create=create)
Beispiel #7
0
 def get_singleton(self, session, create=True):
     from chimerax.core import tools
     return tools.get_singleton(session,
                                MapEraserSettings,
                                'Map Eraser',
                                create=create)
Beispiel #8
0
 def get_singleton(self, session, create=True):
     from chimerax.core import tools
     return tools.get_singleton(session, VolumeMenu, 'Volume Menu', create=create)
Beispiel #9
0
 def get_singleton(cls, session):
     from chimerax.core import tools
     return tools.get_singleton(session, MouseModePanel,
                                'Mouse Modes for Right Button')
Beispiel #10
0
 def get_singleton(cls, session):
     from chimerax.core import tools
     return tools.get_singleton(session, cls, cls.tool_name)
Beispiel #11
0
 def start_tool(session, tool_name):
     # 'start_tool' is called to start an instance of the tool
     from .tool import ISOLDE_ToolUI
     from chimerax.core import tools
     return tools.get_singleton(session, ISOLDE_ToolUI, 'ISOLDE', create=True)
Beispiel #12
0
 def get_singleton(cls, session, **kw):
     from chimerax.core import tools
     return tools.get_singleton(session, CommandLine,
                                'Command Line Interface', **kw)
Beispiel #13
0
 def get_singleton(self, session, create=True):
     from chimerax.core import tools
     return tools.get_singleton(session,
                                PickBlobSettings,
                                'Measure and Color Blobs',
                                create=create)
Beispiel #14
0
def get_singleton(session, create=False):
    if not session.ui.is_gui:
        return None
    from chimerax.core import tools
    from .tool import Log
    return tools.get_singleton(session, Log, 'Log', create=create)
Beispiel #15
0
 def get_singleton(cls, session):
     from chimerax.core import tools
     return tools.get_singleton(session, Log, 'Log')
Beispiel #16
0
 def get_singleton(self, session):
     from chimerax.core import tools
     return tools.get_singleton(session, ModelPanel, 'Model Panel', create=False)
Beispiel #17
0
 def start_tool(session, tool_name, **kw):
     from .tool import ToolUI
     from chimerax.core import tools
     return tools.get_singleton(session, ToolUI, 'Tempy', create=True)