EasySci commited on
Commit
6e17e42
·
1 Parent(s): 4f2d2e6

Update app2.py

Browse files
Files changed (1) hide show
  1. app2.py +4 -4
app2.py CHANGED
@@ -73,10 +73,10 @@ main_panel_content = None
73
  # Function to reset the main panel content to the initial content and store the previous content
74
  def reset_main_panel(event):
75
  global main_panel_content
76
- print(main_panel_content, flush = True)
77
- if main_panel_content is not None:
78
  # Store the initial content of main_panel if it's not already stored
79
- main_panel_content = main_body_instance.main_body
80
 
81
  # Reset the main panel to the initial state
82
  main_body_instance.main_body.clear() # Clear the existing main panel content
@@ -174,7 +174,7 @@ template = pn.template.FastListTemplate(
174
  header_background="#FFFFFF",
175
  header_color="#000000",
176
  text_align='center',
177
- sidebar_width=175,
178
  sizing_mode = 'stretch_both'
179
  )
180
 
 
73
  # Function to reset the main panel content to the initial content and store the previous content
74
  def reset_main_panel(event):
75
  global main_panel_content
76
+ print(main_panel_content.update, flush = True)
77
+ if main_panel_content is None:
78
  # Store the initial content of main_panel if it's not already stored
79
+ main_panel_content = main_body_instance.main_body.update
80
 
81
  # Reset the main panel to the initial state
82
  main_body_instance.main_body.clear() # Clear the existing main panel content
 
174
  header_background="#FFFFFF",
175
  header_color="#000000",
176
  text_align='center',
177
+ sidebar_width=160,
178
  sizing_mode = 'stretch_both'
179
  )
180