From 2a8e58343f48677516c41e276f207e5308531b24 Mon Sep 17 00:00:00 2001 From: Darrell Schiebel Date: Wed, 31 Jan 2024 20:27:20 -0500 Subject: [PATCH] add comment --- casagui/toolbox/_cube.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/casagui/toolbox/_cube.py b/casagui/toolbox/_cube.py index 856a8b3..a4fbae1 100644 --- a/casagui/toolbox/_cube.py +++ b/casagui/toolbox/_cube.py @@ -1481,6 +1481,11 @@ def colormap_adjust( self, **kw ): self._cm_adjust['span two'] = EditSpan( location=edges[-1], dimension='height', line_color='red', line_width=1, editable=True, line_dash='dashed' ) + ### + ### Bokeh supports 'description=Tooltip( content=HTML("..."), position="..." )'. However, + ### The Tooltip(...) works by creating an "i" in a circle with the label that can be clicked. + ### With "prefix=..." and no label, no button is displayed. + ### self._cm_adjust['min input'] = TextInput( value=repr(edges[0]), prefix="min", max_width=140 ) self._cm_adjust['min input'].js_on_event( ValueSubmit, CustomJS( args=dict( span1=self._cm_adjust['span one'], span2=self._cm_adjust['span two'] ),