Spaces:
Sleeping
Sleeping
Update app2.py
Browse files
app2.py
CHANGED
|
@@ -80,8 +80,8 @@ def reset_main_panel(event):
|
|
| 80 |
current_state = 'main_panel'
|
| 81 |
# Reset the main panel to the initial state
|
| 82 |
main_body_instance.main_body.clear() # Clear the existing main panel content
|
| 83 |
-
main_body_instance.main_body.append(pn.pane.LaTeX("Please select some tags!", styles={'font-size': '20pt'}))
|
| 84 |
-
main_body_instance.param.trigger('main_body') # Trigger the update manually
|
| 85 |
|
| 86 |
# Function to update the main panel content when button3 is pressed
|
| 87 |
def update_main_panel_button3(event):
|
|
@@ -94,8 +94,8 @@ def update_main_panel_button3(event):
|
|
| 94 |
|
| 95 |
# Reset the main panel to the desired content when button3 is pressed
|
| 96 |
main_body_instance.main_body.clear() # Clear the existing main panel content
|
| 97 |
-
main_body_instance.main_body.append(pn.pane.Markdown("You pressed button3!"))
|
| 98 |
-
main_body_instance.param.trigger('main_body') # Trigger the update manually
|
| 99 |
|
| 100 |
# Attach the functions to the on_click event of button1 and button3
|
| 101 |
button1.on_click(reset_main_panel)
|
|
|
|
| 80 |
current_state = 'main_panel'
|
| 81 |
# Reset the main panel to the initial state
|
| 82 |
main_body_instance.main_body.clear() # Clear the existing main panel content
|
| 83 |
+
# main_body_instance.main_body.append(pn.pane.LaTeX("Please select some tags!", styles={'font-size': '20pt'}))
|
| 84 |
+
# main_body_instance.param.trigger('main_body') # Trigger the update manually
|
| 85 |
|
| 86 |
# Function to update the main panel content when button3 is pressed
|
| 87 |
def update_main_panel_button3(event):
|
|
|
|
| 94 |
|
| 95 |
# Reset the main panel to the desired content when button3 is pressed
|
| 96 |
main_body_instance.main_body.clear() # Clear the existing main panel content
|
| 97 |
+
# main_body_instance.main_body.append(pn.pane.Markdown("You pressed button3!"))
|
| 98 |
+
# main_body_instance.param.trigger('main_body') # Trigger the update manually
|
| 99 |
|
| 100 |
# Attach the functions to the on_click event of button1 and button3
|
| 101 |
button1.on_click(reset_main_panel)
|