Skip to content

Commit

Permalink
Merge pull request #452 from astrofrog/allow-toolbar-subclasses
Browse files Browse the repository at this point in the history
Allow viewers to use BasicJupyterToolbar subclasses
  • Loading branch information
astrofrog authored May 22, 2024
2 parents 23111b9 + 11fedb5 commit 8ae0545
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion glue_jupyter/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ class IPyWidgetView(Viewer):

_layer_artist_container_cls = IPyWidgetLayerArtistContainer
_default_mouse_mode_cls = None
_toolbar_cls = BasicJupyterToolbar

inherit_tools = True
tools = []
Expand Down Expand Up @@ -149,7 +150,7 @@ def initialize_toolbar(self):

from glue.config import viewer_tool

self.toolbar = BasicJupyterToolbar(self)
self.toolbar = self._toolbar_cls(self)

# Need to include tools and subtools declared by parent classes unless
# specified otherwise
Expand Down

0 comments on commit 8ae0545

Please sign in to comment.