ReferenceViewer

class ginga.rv.main.ReferenceViewer(layout=['seq', {}, ['vbox', {'name': 'top', 'width': 1400, 'height': 700}, {'row': ['hbox', {'name': 'menu'}], 'stretch': 0}, {'row': ['hpanel', {'name': 'hpnl'}, ['ws', {'name': 'left', 'wstype': 'tabs', 'width': 300, 'height': -1, 'group': 2}, [('Info', ['vpanel', {}, ['ws', {'name': 'uleft', 'wstype': 'stack', 'height': 250, 'group': 3}], ['ws', {'name': 'lleft', 'wstype': 'tabs', 'height': 330, 'group': 3}]])]], ['vbox', {'name': 'main', 'width': 600}, {'row': ['ws', {'name': 'channels', 'wstype': 'tabs', 'group': 1, 'use_toolbar': True}], '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', {'name': 'right', 'wstype': 'tabs', 'width': 400, 'height': -1, 'group': 2}, [('Dialogs', ['ws', {'name': 'dialogs', 'wstype': 'tabs', 'group': 2}])]]], 'stretch': 1}, {'row': ['ws', {'name': 'toolbar', 'wstype': 'stack', 'height': 40, 'group': 2}], '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(self, argprs)

Adds the default reference viewer startup options to an ArgumentParser instance argprs.

add_default_plugins(self[, except_global, …])

Add the ginga-distributed default set of plugins to the reference viewer.

add_global_plugin(self, module_name, ws_name)

add_global_plugin_spec(self, spec)

add_local_plugin(self, module_name, ws_name)

add_local_plugin_spec(self, spec)

add_plugin_spec(self, spec)

add_separately_distributed_plugins(self)

clear_default_plugins(self)

main(self, options, args)

Main routine for running the reference viewer.

Methods Documentation

add_default_options(self, argprs)[source]

Adds the default reference viewer startup options to an ArgumentParser instance argprs.

add_default_plugins(self, except_global=[], except_local=[])[source]

Add the ginga-distributed default set of plugins to the reference viewer.

add_global_plugin(self, module_name, ws_name, path=None, klass=None, category='Global', tab_name=None, start_plugin=True, pfx=None)[source]
add_global_plugin_spec(self, spec)[source]
add_local_plugin(self, module_name, ws_name, path=None, klass=None, pfx=None, category=None)[source]
add_local_plugin_spec(self, spec)[source]
add_plugin_spec(self, spec)[source]
add_separately_distributed_plugins(self)[source]
clear_default_plugins(self)[source]
main(self, 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.