本文整理匯總了Python中dash_html_components.Br方法的典型用法代碼示例。如果您正苦於以下問題:Python dash_html_components.Br方法的具體用法?Python dash_html_components.Br怎麽用?Python dash_html_components.Br使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類dash_html_components
的用法示例。
在下文中一共展示了dash_html_components.Br方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: prepare_send
# 需要導入模塊: import dash_html_components [as 別名]
# 或者: from dash_html_components import Br [as 別名]
def prepare_send():
lCache = []
cData = get_All_data()
for pair in PAIRS:
ticker = pair.ticker
exchange = pair.exchange
graph = 'live-graph-' + exchange + "-" + ticker
lCache.append(html.Br())
if (pair.Dataprepared):
lCache.append(dcc.Graph(
id=graph,
figure=cData[exchange + ticker]
))
else:
lCache.append(html.Div(id=graph))
return lCache
# links up the chart creation to the interval for an auto-refresh
# creates one callback per currency pairing; easy to replicate / add new pairs
示例2: display_hoverdata
# 需要導入模塊: import dash_html_components [as 別名]
# 或者: from dash_html_components import Br [as 別名]
def display_hoverdata(hoverData, clickData):
return [
json.dumps(hoverData, indent=2),
html.Br(),
json.dumps(clickData, indent=2)
]
示例3: update_output
# 需要導入模塊: import dash_html_components [as 別名]
# 或者: from dash_html_components import Br [as 別名]
def update_output(angle, force):
return ['Angle is {}'.format(angle),
html.Br(),
'Force is {}'.format(force)]
示例4: show_selected_atoms
# 需要導入模塊: import dash_html_components [as 別名]
# 或者: from dash_html_components import Br [as 別名]
def show_selected_atoms(atom_ids):
if atom_ids is None or len(atom_ids) == 0:
return 'No atom has been selected. Click somewhere on the molecular \
structure to select an atom.'
return [html.Div([
html.Div('Element: {}'.format(model_data['atoms'][atm]['element'])),
html.Div('Chain: {}'.format(model_data['atoms'][atm]['chain'])),
html.Div('Residue name: {}'.format(model_data['atoms'][atm]['residue_name'])),
html.Br()
]) for atm in atom_ids]
示例5: getHeader
# 需要導入模塊: import dash_html_components [as 別名]
# 或者: from dash_html_components import Br [as 別名]
def getHeader(app):
# this is a mess;
inlineBlock = {"display": "inline-block"}
headerWidgets = [
html.Button("Refresh", id='refresh-button'),
html.Div(
[
html.Div("Last refresh @ ", style=inlineBlock.update({"float": "left"})),
html.Div(datetime.datetime.now(),
id='last-refresh', className="showTime",
style=inlineBlock.update({"float": "left"})),
html.Div("%s Start time" % app.startTime,
id='start-time', className="showTime",
style=inlineBlock.update({"float": "right"})),
html.Br(),
html.Center([
html.Div(app.epochInfo, id="current-epoch")
])
], className="showTime")
]
pageMenu = [
html.A(html.Button("Evolution Statistics"), href="/"),
html.A(html.Button("Evaluation Breaks"), href="/evalbreak"),
html.A(html.Button("View Results"), href="/results")
# html.Button("View Settings", className="unimplemented"),
# html.Button("Inspect Population", className="unimplemented")
]
# html.Link(rel='stylesheet', href='/static/promoterz_style.css'),
header = html.Div(
[
html.H2(
app.webpageTitle,
style={'padding-top': '20', 'text-align': 'center'},
),
html.Div(headerWidgets),
html.Div(pageMenu),
],
style=allStyle)
return header