Source code for pyfileconfgui.pages.navigator.main

from typing import TYPE_CHECKING, Dict, Union, Sequence

from dash.dependencies import Output, Input
from dash.development.base_component import Component

from pyfileconfgui.component import PFCGuiComponent
from pyfileconfgui.dash_ext.component import DashPythonComponent
from pyfileconfgui.pages.navigator.create import CreateEntryComponent
from pyfileconfgui.pages.navigator.edit import EditItemComponent
from pyfileconfgui.pages.navigator.refresh import REFRESH_INTERVAL_ID
from pyfileconfgui.pages.navigator.reload import ReloadPFCComponent
from pyfileconfgui.pages.navigator.run import RunEntryComponent


import dash_core_components as dcc
import dash_html_components as html
from dash_keyed_file_browser import KeyedFileBrowser
from dash import dash


[docs]def show_running_item(selected_file: Dict[str, str]): if not selected_file: return dash.no_update path = selected_file['key'] return path
[docs]def show_editing_item(selected_file: Dict[str, str]): if not selected_file: return dash.no_update path = selected_file['key'] return path