ReferenceViewer

class ginga.rv.main.ReferenceViewer(layout=['seq', {}, ['vbox', {'width': 1400, 'height': 700, 'name': 'top'}, {'row': ['hbox', {'name': 'menu'}], 'stretch': 0}, {'row': ['hpanel', {'name': 'hpnl'}, ['ws', {'width': 300, 'height': -1, 'name': 'left', 'group': 2, 'wstype': 'tabs'}, [('Info', ['vpanel', {}, ['ws', {'height': 250, 'name': 'uleft', 'group': 3, 'wstype': 'stack'}], ['ws', {'height': 330, 'name': 'lleft', 'group': 3, 'wstype': 'tabs'}]])]], ['vbox', {'width': 600, 'name': 'main'}, {'row': ['ws', {'group': 1, 'name': 'channels', 'use_toolbar': True, 'wstype': 'tabs'}], 'stretch': 1}, {'row': ['ws', {'group': 99, 'name': 'cbar', 'wstype': 'stack'}], 'stretch': 0}, {'row': ['ws', {'group': 99, 'name': 'readout', 'wstype': 'stack'}], 'stretch': 0}, {'row': ['ws', {'group': 99, 'name': 'operations', 'wstype': 'stack'}], 'stretch': 0}], ['ws', {'width': 400, 'height': -1, 'name': 'right', 'group': 2, 'wstype': 'tabs'}, [('Dialogs', ['ws', {'group': 2, 'name': 'dialogs', 'wstype': 'tabs'}])]]], 'stretch': 1}, {'row': ['ws', {'height': 40, 'name': 'toolbar', 'group': 2, 'wstype': 'stack'}], 'stretch': 0}, {'row': ['hbox', {'name': 'status'}], 'stretch': 0}]])[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[, …])
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]
add_global_plugin_spec(spec)[source]
add_local_plugin(module_name, ws_name, path=None, klass=None, pfx=None, category=None)[source]
add_local_plugin_spec(spec)[source]
add_plugin_spec(spec)[source]
add_separately_distributed_plugins()[source]
clear_default_plugins()[source]
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.