Spaces:
Running
Running
Update app2.py
Browse files
app2.py
CHANGED
|
@@ -35,11 +35,6 @@ select2 = pn.widgets.RadioButtonGroup(value="Normal", options=["Bionic", "Normal
|
|
| 35 |
|
| 36 |
# Define a callback to display the selected value
|
| 37 |
def display_selected_value(event):
|
| 38 |
-
for option in select.options:
|
| 39 |
-
if option == event.new:
|
| 40 |
-
option.button_type = 'primary'
|
| 41 |
-
else:
|
| 42 |
-
option.button_type = 'default'
|
| 43 |
print(f"Selected value: {event.new}", flush = True)
|
| 44 |
|
| 45 |
# Attach the callback to the value_change event of the RadioButtonGroup
|
|
|
|
| 35 |
|
| 36 |
# Define a callback to display the selected value
|
| 37 |
def display_selected_value(event):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
print(f"Selected value: {event.new}", flush = True)
|
| 39 |
|
| 40 |
# Attach the callback to the value_change event of the RadioButtonGroup
|