m7mdal7aj commited on
Commit
de78d1a
1 Parent(s): 8aa443c

Update my_model/state_manager.py

Browse files
Files changed (1) hide show
  1. my_model/state_manager.py +3 -0
my_model/state_manager.py CHANGED
@@ -78,6 +78,9 @@ class StateManager:
78
  @property
79
  def is_widget_disabled(self):
80
  return st.session_state['loading_in_progress']
 
 
 
81
 
82
  @property
83
  def settings_changed(self):
 
78
  @property
79
  def is_widget_disabled(self):
80
  return st.session_state['loading_in_progress']
81
+
82
+ def disable_widgets(self):
83
+ st.session_state['loading_in_progress'] = True
84
 
85
  @property
86
  def settings_changed(self):