Source code for bokeh.models.annotations.html.toolbars
#-----------------------------------------------------------------------------# Copyright (c) Anaconda, Inc., and Bokeh Contributors.# All rights reserved.## The full license is in the file LICENSE.txt, distributed with this software.#-----------------------------------------------------------------------------''''''#-----------------------------------------------------------------------------# Boilerplate#-----------------------------------------------------------------------------from__future__importannotationsimportlogging# isort:skiplog=logging.getLogger(__name__)#-----------------------------------------------------------------------------# Imports#-----------------------------------------------------------------------------# Standard library importsfromtypingimportAny# Bokeh importsfrom....core.propertiesimportInstancefrom.html_annotationimportHTMLAnnotation#-----------------------------------------------------------------------------# Globals and constants#-----------------------------------------------------------------------------__all__=("ToolbarPanel",)#-----------------------------------------------------------------------------# General API#-----------------------------------------------------------------------------
[docs]classToolbarPanel(HTMLAnnotation):# TODO: this shouldn't be an annotation# explicit __init__ to support Init signaturesdef__init__(self,*args:Any,**kwargs:Any)->None:super().__init__(*args,**kwargs)toolbar=Instance(".models.tools.Toolbar",help=""" A toolbar to display. """)
#-----------------------------------------------------------------------------# Dev API#-----------------------------------------------------------------------------#-----------------------------------------------------------------------------# Private API#-----------------------------------------------------------------------------#-----------------------------------------------------------------------------# Code#-----------------------------------------------------------------------------