Source code for prsctrl_gui.ui.widgets.help

from ...resources import get_resource_path
from devctrl.gui.widgets import MarkdownFileListView

import logging
log = logging.getLogger(__name__)

# Ordered list of help files to use
GUI_FILES = [
    ("about.md", "About"),
    ("user_guide.md", "Quickstart"),
    ("sample_changing.md", "Changing the Sample"),
    ("measurement_settings.md", "Measurement Settings"),
    ("led_control.md", "LED Control"),
    ("data.md", "Data saving and loading"),
    ("troubleshooting.md", "Troubleshooting"),
    ("technical_information.md", "Technical Information"),
    ("controller_calibration.md", "Controller Calibration"),
]

[docs] class HelpMenu(MarkdownFileListView): def __init__(self, parent=None): files = [(get_resource_path(f), name) for (f,name) in GUI_FILES] super().__init__(files=files, parent=parent)