ParamMixin¶
- class stginga.plugins.local_plugin_mixin.ParamMixin[source]¶
Bases:
object
Mixin class for Ginga local plugin that enables the feature to save/load parameters.
Methods Summary
build_param_gui
(container)Call this in
build_gui()
to create 'Load Param' and 'Save Param' buttons.ingest_params
(pardict)Ingest dictionary containing plugin parameters into plugin GUI and internal variables.
load_params
(filename)Load previously saved parameters from a JSON file.
Allow user to select JSON file to load.
Return current parameters as a dictionary.
Save parameters to a JSON file.
Methods Documentation
- build_param_gui(container)[source]¶
Call this in
build_gui()
to create ‘Load Param’ and ‘Save Param’ buttons.- Parameters:
- containerwidget
The widget to contain these buttons.