EasySci commited on
Commit
3bd9181
·
1 Parent(s): d70a09a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -47,12 +47,12 @@ def add_to_header(event):
47
  filter_list.value = [] # Clear the selected options after adding them to the list
48
 
49
  # Update the header immediately after adding the options
50
- update_header(buttons_to_add)
51
 
52
  add_to_header_button.on_click(add_to_header)
53
 
54
  # Function to update the header layout with the newly created buttons
55
- def update_header(buttons_to_add):
56
  header_buttons.clear() # Clear the existing buttons
57
  for button_name in buttons_to_add:
58
  new_button = pn.widgets.Button(name=button_name, width=130, sizing_mode='fixed')
 
47
  filter_list.value = [] # Clear the selected options after adding them to the list
48
 
49
  # Update the header immediately after adding the options
50
+ update_header()
51
 
52
  add_to_header_button.on_click(add_to_header)
53
 
54
  # Function to update the header layout with the newly created buttons
55
+ def update_header():
56
  header_buttons.clear() # Clear the existing buttons
57
  for button_name in buttons_to_add:
58
  new_button = pn.widgets.Button(name=button_name, width=130, sizing_mode='fixed')