Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
schiebel committed Feb 1, 2024
1 parent 112091d commit 2a8e583
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions casagui/toolbox/_cube.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'] ),
Expand Down

0 comments on commit 2a8e583

Please sign in to comment.