apparun.gui.panels.base#
Attributes#
Classes#
Functions#
|
Get a registered InputPanel class by type. |
|
Get a registered OutputPanel class by type. |
|
This decorator registers a new Panel class in PANELS registry. |
|
Get a list of registered InputPanel types. |
|
Get a list of registered OutputPanel types. |
Module Contents#
- class apparun.gui.panels.base.DynamicOutputPanel#
Bases:
OutputPanel- compute_from_impact_model(entry_data, impact_model)#
- fetch_from_lca_data(entry_data, lca_data)#
- get_results(entry_data, impact_model: apparun.impact_model.ImpactModel = None, lca_data: pandas.DataFrame = None)#
- result: apparun.results.ImpactModelResult | None = None#
- type: Literal['dynamic_output_panel']#
- class apparun.gui.panels.base.InputScenarioFormPanel(**args)#
Bases:
InputPanel- run()#
- fields: List[Dict[str, Any]] | None = []#
- type: Literal['input_scenario_form_panel']#
- class apparun.gui.panels.base.Panel#
Bases:
pydantic.BaseModel- spawn()#
- st_component: Callable = None#
- property state#
- class apparun.gui.panels.base.StaticOutputPanel#
Bases:
OutputPanel- run(impact_model: apparun.impact_model.ImpactModel = None, lca_data: pandas.DataFrame = None)#
- type: Literal['static_output_panel']#
- apparun.gui.panels.base.get_input_panel(panel_type: str)#
Get a registered InputPanel class by type. :param panel_type: type of the desired input panel. :return: registered InputPanel class corresponding to the type.
- apparun.gui.panels.base.get_output_panel(panel_type: str)#
Get a registered OutputPanel class by type. :param panel_type: type of the desired output panel. :return: registered OutputPanel class corresponding to the type.
- apparun.gui.panels.base.register_panel(panel_type: str)#
This decorator registers a new Panel class in PANELS registry. :param panel_type: new Panel’s type name :return: new Panel class
- apparun.gui.panels.base.registered_input_panels() List[str]#
Get a list of registered InputPanel types. :return: list of registered InputPanel types.
- apparun.gui.panels.base.registered_output_panels() List[str]#
Get a list of registered OutputPanel types. :return: list of registered OutputPanel types.
- apparun.gui.panels.base.ACTION_ADD = 'add'#
- apparun.gui.panels.base.ACTION_CLEAR = 'clear'#
- apparun.gui.panels.base.INPUT_PANELS#
- apparun.gui.panels.base.OUTPUT_PANELS#