From 55009dc89d9290330e5dac3b05fccbe1ccb2ffa2 Mon Sep 17 00:00:00 2001 From: dpslwk Date: Fri, 1 Dec 2023 00:25:59 +0000 Subject: [PATCH] Docs: fix code example in custom ux --- docs_src/source/custom_ux_hacking.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs_src/source/custom_ux_hacking.rst b/docs_src/source/custom_ux_hacking.rst index 0cdfbcf7..54045373 100644 --- a/docs_src/source/custom_ux_hacking.rst +++ b/docs_src/source/custom_ux_hacking.rst @@ -17,6 +17,7 @@ In the following python example the **FLOOD** button is rename to **FOO** and th To try out the following yourself, save the python below to a file called ``custom_probebasic.py`` under your machine config directory (``~/linuxcnc/configs/{my_machine}/custom_probebasic.py``). .. code:: python + from probe_basic.probe_basic import ProbeBasic class CustomProbeBasic(ProbeBasic): @@ -43,6 +44,7 @@ To try out the following yourself, save the python below to a file called ``cust # rename the Mist button self.mist_button.setText("Bar") + Then edit the ``~/linuxcnc/configs/{my_machine}/custom_config.yml`` file and add the line ``provider: custom_probebasic:CustomProbeBasic`` just under ``mainwindow:`` **Before:**