Skip to content

Commit

Permalink
Focus inside_view.widget when the tab is selected.
Browse files Browse the repository at this point in the history
  • Loading branch information
culler committed Dec 24, 2024
1 parent 5713d91 commit 0ec707e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion python/browser.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ def __init__(self, manifold, root=None, main_window=None):
notebook.add(invariants_tab, text='Invariants', padding=[0])
notebook.add(self.dirichlet_viewer, text='Dirichlet')
notebook.add(self.horoball_viewer, text='Cusp Nbhds')
notebook.add(self.build_inside_view(), text='Inside view')
notebook.add(self.build_inside_view(), text='Inside View')
notebook.add(symmetry_tab, text='Symmetry', padding=[0])
if link_tab:
notebook.add(link_tab.canvas, text='Link')
Expand Down Expand Up @@ -506,6 +506,9 @@ def update_current_tab(self, event=None):
elif tab_name == 'Link':
self.update_menus(self.menubar)
self.link_tab.draw()
elif tab_name == 'Inside View':
print('Inside View selected.')
self.inside_view.widget.focus_set()
elif tab_name == 'Symmetry':
self.update_menus(self.menubar)
self.update_symmetry()
Expand Down

0 comments on commit 0ec707e

Please sign in to comment.