本文整理汇总了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