本文整理匯總了Python中bokeh.models.Select方法的典型用法代碼示例。如果您正苦於以下問題:Python models.Select方法的具體用法?Python models.Select怎麽用?Python models.Select使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類bokeh.models
的用法示例。
在下文中一共展示了models.Select方法的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: create_dl1_widgets
# 需要導入模塊: from bokeh import models [as 別名]
# 或者: from bokeh.models import Select [as 別名]
def create_dl1_widgets(self):
self.w_dl1_dict = dict(
extractor=Select(
title="Extractor:",
value="",
width=5,
options=BokehFileViewer.extractor_product.values,
),
extractor_window_start=TextInput(title="Window Start:", value=""),
extractor_window_width=TextInput(title="Window Width:", value=""),
extractor_window_shift=TextInput(title="Window Shift:", value=""),
extractor_lwt=TextInput(title="Local Pixel Weight:", value=""),
)
for val in self.w_dl1_dict.values():
val.on_change("value", self.on_dl1_widget_change)
self.wb_extractor = widgetbox(
PreText(text="Charge Extractor Configuration"),
self.w_dl1_dict["extractor"],
self.w_dl1_dict["extractor_window_start"],
self.w_dl1_dict["extractor_window_width"],
self.w_dl1_dict["extractor_window_shift"],
self.w_dl1_dict["extractor_lwt"],
)
示例2: create_view_widget
# 需要導入模塊: from bokeh import models [as 別名]
# 或者: from bokeh.models import Select [as 別名]
def create_view_widget(self):
self.w_view = Select(title="View:", value="", options=[], width=5)
self.w_view.on_change("value", self.on_view_widget_change)
self.layout = column([self.w_view, self.layout])
示例3: create_telid_widget
# 需要導入模塊: from bokeh import models [as 別名]
# 或者: from bokeh.models import Select [as 別名]
def create_telid_widget(self):
self.w_telid = Select(title="Telescope:", value="", options=[])
self.w_telid.on_change("value", self.on_telid_widget_change)
示例4: create_channel_widget
# 需要導入模塊: from bokeh import models [as 別名]
# 或者: from bokeh.models import Select [as 別名]
def create_channel_widget(self):
self.w_channel = Select(title="Channel:", value="", options=[])
self.w_channel.on_change("value", self.on_channel_widget_change)
示例5: init_wdg_dict
# 需要導入模塊: from bokeh import models [as 別名]
# 或者: from bokeh.models import Select [as 別名]
def init_wdg_dict():
"""
Initialise the widget dictionary, adds in the initial bulkfile selector
Returns
-------
"""
wdg_dict = OrderedDict()
wdg_dict['file_list'] = Select(title="Select bulk-file:", options=app_data['app_vars']['files'])
wdg_dict['file_list'].on_change('value', update_file)
return wdg_dict
示例6: update_plot
# 需要導入模塊: from bokeh import models [as 別名]
# 或者: from bokeh.models import Select [as 別名]
def update_plot(attr, old, new):
# If the new Selection is 'female_literacy', update 'y' to female_literacy
if new == 'female_literacy':
source.data = {
'x': fertility,
'y': female_literacy
}
# Else, update 'y' to population
else:
source.data = {
'x' : fertility,
'y' : population
}
# Create a dropdown Select widget: select
開發者ID:qalhata,項目名稱:Python-Scripts-Repo-on-Data-Science,代碼行數:17,代碼來源:DatVis_Bokeh_Intr_App_Build_4.py