Skip to content

Commit 76a8d26

Browse files
author
Dilmi Wickramanayake
committed
renaming hide_button method
1 parent 8440772 commit 76a8d26

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

examples/nidaqmx/nidaqmx_analog_input_filtering/nidaqmx_analog_input_filtering_panel.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@
4545
)
4646

4747

48-
def hide_buttons():
48+
def hide_run_button():
49+
"""hide_run_button is used to disable run button when DAQ error pops up."""
4950
st.markdown(
5051
"""
5152
<style>
@@ -68,7 +69,7 @@ def hide_buttons():
6869
if panel.get_value("daq_error", "") == "":
6970
pass
7071
else:
71-
hide_buttons()
72+
hide_run_button()
7273
st.error(panel.get_value("daq_error", "") + " Please re-run script")
7374

7475
st.title("Channel Settings")

0 commit comments

Comments
 (0)