ReferenceViewer¶
-
class
ginga.rv.main.
ReferenceViewer
(layout=['seq', {}, ['vbox', {'width': 1400, 'height': 700, 'name': 'top'}, {'stretch': 0, 'row': ['hbox', {'name': 'menu'}]}, {'stretch': 1, 'row': ['hpanel', {'name': 'hpnl'}, ['ws', {'group': 2, 'height': -1, 'wstype': 'tabs', 'width': 300, 'name': 'left'}, [('Info', ['vpanel', {}, ['ws', {'group': 3, 'height': 250, 'wstype': 'stack', 'name': 'uleft'}], ['ws', {'group': 3, 'height': 330, 'wstype': 'tabs', 'name': 'lleft'}]])]], ['vbox', {'width': 600, 'name': 'main'}, {'stretch': 1, 'row': ['ws', {'group': 1, 'wstype': 'tabs', 'name': 'channels', 'use_toolbar': True}]}, {'stretch': 0, 'row': ['ws', {'group': 99, 'wstype': 'stack', 'name': 'cbar'}]}, {'stretch': 0, 'row': ['ws', {'group': 99, 'wstype': 'stack', 'name': 'readout'}]}, {'stretch': 0, 'row': ['ws', {'group': 99, 'wstype': 'stack', 'name': 'operations'}]}], ['ws', {'group': 2, 'height': -1, 'wstype': 'tabs', 'width': 400, 'name': 'right'}, [('Dialogs', ['ws', {'group': 2, 'wstype': 'tabs', 'name': 'dialogs'}])]]]}, {'stretch': 0, 'row': ['ws', {'group': 2, 'height': 40, 'wstype': 'stack', 'name': 'toolbar'}]}, {'stretch': 0, 'row': ['hbox', {'name': 'status'}]}]])[source]¶ Bases:
object
This 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[, ...])TO BE DEPRECATED–DO NOT USE. add_global_plugin_spec
(spec)add_local_plugin
(module_name, ws_name[, ...])TO BE DEPRECATED–DO NOT USE. add_local_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]¶ TO BE DEPRECATED–DO NOT USE. Use add_global_plugin_spec() instead.
-
add_local_plugin
(module_name, ws_name, path=None, klass=None, pfx=None, category=None)[source]¶ TO BE DEPRECATED–DO NOT USE. Use add_local_plugin_spec() instead.
-
main
(options, args)[source]¶ Main routine for running the reference viewer.
options
is 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()args
is a list of arguments to the viewer after parsing out options. It should contain a list of files or URLs to load.
-