Add RadioButtonGroup for operation mode
This commit is contained in:
parent
603ecefcd5
commit
d9924ffc83
@ -1,17 +1,22 @@
|
|||||||
from bokeh.layouts import column
|
from bokeh.layouts import column
|
||||||
from bokeh.models import Panel, TextInput, Button
|
from bokeh.models import Panel, TextInput, Button, RadioButtonGroup
|
||||||
|
|
||||||
import pyzebra
|
import pyzebra
|
||||||
|
|
||||||
|
|
||||||
def create():
|
def create():
|
||||||
fileinput = TextInput()
|
fileinput = TextInput()
|
||||||
process_button = Button(label="Process")
|
|
||||||
|
mode_radio_button_group = RadioButtonGroup(
|
||||||
|
labels=["Adaptive Peak Detection", "Adaptive Dynamic Mask Integration"], active=0
|
||||||
|
)
|
||||||
|
|
||||||
def process_button_callback():
|
def process_button_callback():
|
||||||
pyzebra.anatric(fileinput.value)
|
pyzebra.anatric(fileinput.value)
|
||||||
|
|
||||||
|
process_button = Button(label="Process")
|
||||||
process_button.on_click(process_button_callback)
|
process_button.on_click(process_button_callback)
|
||||||
|
|
||||||
tab_layout = column(fileinput, process_button)
|
tab_layout = column(fileinput, mode_radio_button_group, process_button)
|
||||||
|
|
||||||
return Panel(child=tab_layout, title="Anatric")
|
return Panel(child=tab_layout, title="Anatric")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user