Skip to content

Commit

Permalink
Update pySVS.py
Browse files Browse the repository at this point in the history
  • Loading branch information
logon84 authored Dec 6, 2023
1 parent 81aefa1 commit d1a253c
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions pySVS.py
Original file line number Diff line number Diff line change
Expand Up @@ -551,49 +551,49 @@ def refresh_widgets(values_dict={}):
preset_values[preset_n] = values_dict[key]
preset_combo.configure(values=preset_values)
if lpf_var.get() and 'ON' not in lpf_checkbox.cget("text"):
lpfilter_slider.configure(state='normal')
lpfilter_slider.configure(state='normal', takefocus=1)
lpfilter_slope_combo.configure(state='readonly')
lpf_checkbox.configure(text='Low Pass Filter ON (LFE Inactive)')
elif not(lpf_var.get()) and 'OFF' not in lpf_checkbox.cget("text"):
lpfilter_slider.configure(state='disabled')
lpfilter_slider.configure(state='disabled', takefocus=0)
lpfilter_slope_combo.configure(state='disabled')
lpf_checkbox.configure(text='Low Pass Filter OFF (LFE Active)')
if PEQ1_var.get() and 'Enabled' not in PEQ1_checkbox.cget("text"):
PEQ1_freq_slider.configure(state='normal')
PEQ1_boost_slider.configure(state='normal')
PEQ1_qfactor_slider.configure(state='normal')
PEQ1_freq_slider.configure(state='normal', takefocus=1)
PEQ1_boost_slider.configure(state='normal', takefocus=1)
PEQ1_qfactor_slider.configure(state='normal', takefocus=1)
PEQ1_checkbox.configure(text='PEQ1 Enabled')
elif not(PEQ1_var.get()) and 'Disabled' not in PEQ1_checkbox.cget("text"):
PEQ1_freq_slider.configure(state='disabled')
PEQ1_boost_slider.configure(state='disabled')
PEQ1_qfactor_slider.configure(state='disabled')
PEQ1_freq_slider.configure(state='disabled', takefocus=0)
PEQ1_boost_slider.configure(state='disabled', takefocus=0)
PEQ1_qfactor_slider.configure(state='disabled', takefocus=0)
PEQ1_checkbox.configure(text='PEQ1 Disabled')
if PEQ2_var.get() and 'Enabled' not in PEQ2_checkbox.cget("text"):
PEQ2_freq_slider.configure(state='normal')
PEQ2_boost_slider.configure(state='normal')
PEQ2_qfactor_slider.configure(state='normal')
PEQ2_freq_slider.configure(state='normal', takefocus=1)
PEQ2_boost_slider.configure(state='normal', takefocus=1)
PEQ2_qfactor_slider.configure(state='normal', takefocus=1)
PEQ2_checkbox.configure(text='PEQ2 Enabled')
elif not(PEQ2_var.get()) and 'Disabled' not in PEQ2_checkbox.cget("text"):
PEQ2_freq_slider.configure(state='disabled')
PEQ2_boost_slider.configure(state='disabled')
PEQ2_qfactor_slider.configure(state='disabled')
PEQ2_freq_slider.configure(state='disabled', takefocus=0)
PEQ2_boost_slider.configure(state='disabled', takefocus=0)
PEQ2_qfactor_slider.configure(state='disabled', takefocus=0)
PEQ2_checkbox.configure(text='PEQ2 Disabled')
if PEQ3_var.get() and 'Enabled' not in PEQ3_checkbox.cget("text"):
PEQ3_freq_slider.configure(state='normal')
PEQ3_boost_slider.configure(state='normal')
PEQ3_qfactor_slider.configure(state='normal')
PEQ3_freq_slider.configure(state='normal', takefocus=1)
PEQ3_boost_slider.configure(state='normal', takefocus=1)
PEQ3_qfactor_slider.configure(state='normal', takefocus=1)
PEQ3_checkbox.configure(text='PEQ3 Enabled')
elif not(PEQ3_var.get()) and 'Disabled' not in PEQ3_checkbox.cget("text"):
PEQ3_freq_slider.configure(state='disabled')
PEQ3_boost_slider.configure(state='disabled')
PEQ3_qfactor_slider.configure(state='disabled')
PEQ3_freq_slider.configure(state='disabled', takefocus=0)
PEQ3_boost_slider.configure(state='disabled', takefocus=0)
PEQ3_qfactor_slider.configure(state='disabled', takefocus=0)
PEQ3_checkbox.configure(text='PEQ3 Disabled')
if room_gain_var.get() and 'ON' not in room_gain_checkbox.cget("text"):
room_gain_slider.configure(state='normal')
room_gain_slider.configure(state='normal', takefocus=1)
room_gain_slope_combo.configure(state='readonly')
room_gain_checkbox.configure(text='Room Gain Compensation ON')
elif not(room_gain_var.get()) and 'OFF' not in room_gain_checkbox.cget("text"):
room_gain_slider.configure(state='disabled')
room_gain_slider.configure(state='disabled', takefocus=0)
room_gain_slope_combo.configure(state='disabled')
room_gain_checkbox.configure(text='Room Gain Compensation OFF')
if not(polarity_var.get()) and '(+)' not in polarity_checkbox.cget("text"):
Expand Down

0 comments on commit d1a253c

Please sign in to comment.