Skip to content

Commit

Permalink
Quit button on the right, why not
Browse files Browse the repository at this point in the history
  • Loading branch information
l00p3 committed Aug 2, 2024
1 parent bdeb70e commit 492d296
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python/kiss_icp/tools/visualizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,9 @@ def _global_view_callback(self):
self._ps.reset_camera_to_home_view()

def _quit_callback(self):
self._gui.SetCursorPosX(
self._gui.GetCursorPosX() + self._gui.GetContentRegionAvail()[0] - 50
)
if (
self._gui.Button(QUIT_BUTTON)
or self._gui.IsKeyPressed(self._gui.ImGuiKey_Escape)
Expand Down

0 comments on commit 492d296

Please sign in to comment.