ReferenceViewer¶
-
class
ginga.rv.main.ReferenceViewer(layout=['seq', {}, ['vbox', {'width': 1400, 'name': 'top', 'height': 700}, {'row': ['hbox', {'name': 'menu'}], 'stretch': 0}, {'row': ['hpanel', {'name': 'hpnl'}, ['ws', {'height': -1, 'width': 300, 'name': 'left', 'wstype': 'tabs', 'group': 2}, [('Info', ['vpanel', {}, ['ws', {'height': 250, 'name': 'uleft', 'wstype': 'stack', 'group': 3}], ['ws', {'height': 330, 'name': 'lleft', 'wstype': 'tabs', 'group': 3}]])]], ['vbox', {'width': 600, 'name': 'main'}, {'row': ['ws', {'use_toolbar': True, 'name': 'channels', 'wstype': 'tabs', 'group': 1}], 'stretch': 1}, {'row': ['ws', {'name': 'cbar', 'wstype': 'stack', 'group': 99}], 'stretch': 0}, {'row': ['ws', {'name': 'readout', 'wstype': 'stack', 'group': 99}], 'stretch': 0}, {'row': ['ws', {'name': 'operations', 'wstype': 'stack', 'group': 99}], 'stretch': 0}], ['ws', {'height': -1, 'width': 400, 'name': 'right', 'wstype': 'tabs', 'group': 2}, [('Dialogs', ['ws', {'name': 'dialogs', 'wstype': 'tabs', 'group': 2}])]]], 'stretch': 1}, {'row': ['ws', {'height': 40, 'name': 'toolbar', 'wstype': 'stack', 'group': 2}], 'stretch': 0}, {'row': ['hbox', {'name': 'status'}], 'stretch': 0}]])[source]¶ Bases:
objectThis class exists solely to be able to customize the reference viewer startup.
Methods Summary
add_default_options(optprs)Adds the default reference viewer startup options to an OptionParser instance optprs.add_default_plugins([except_global, …])Add the ginga-distributed default set of plugins to the reference viewer. add_global_plugin(module_name, ws_name[, …])add_global_plugin_spec(spec)add_local_plugin(module_name, ws_name[, …])add_local_plugin_spec(spec)add_plugin_spec(spec)add_separately_distributed_plugins()clear_default_plugins()main(options, args)Main routine for running the reference viewer. Methods Documentation
-
add_default_options(optprs)[source]¶ Adds the default reference viewer startup options to an OptionParser instance
optprs.
-
add_default_plugins(except_global=[], except_local=[])[source]¶ Add the ginga-distributed default set of plugins to the reference viewer.
-
add_global_plugin(module_name, ws_name, path=None, klass=None, category='Global', tab_name=None, start_plugin=True, pfx=None)[source]¶
-
main(options, args)[source]¶ Main routine for running the reference viewer.
optionsis a OptionParser object that has been populated with values from parsing the command line. It should at least include the options from add_default_options()argsis a list of arguments to the viewer after parsing out options. It should contain a list of files or URLs to load.
-