Skip to content

Commit

Permalink
UPD: Manager robot's IPs to navegation mode (fix layout button)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcioCamposJr committed Jan 21, 2025
1 parent a3835c8 commit 7e73012
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions invesalius/gui/preferences.py
Original file line number Diff line number Diff line change
Expand Up @@ -1654,10 +1654,11 @@ def __init__(self, parent, tracker, robot):
(btn_rob, 0, wx.ALIGN_CENTER_VERTICAL),
])

rob_status_sizer = wx.FlexGridSizer(rows=1, cols=2, hgap=3, vgap=3)
rob_status_sizer = wx.FlexGridSizer(rows=1, cols=3, hgap=3, vgap=3)
rob_status_sizer.AddMany([
(status_text, 1, wx.EXPAND),
(btn_rob_con, 0, wx.ALIGN_CENTER_VERTICAL),
(status_text, 1, wx.LEFT | wx.ALIGN_CENTER_VERTICAL),
(0,0, wx.EXPAND | wx.ALIGN_CENTER_VERTICAL),
(btn_rob_con, 0, wx.RIGHT | wx.ALIGN_CENTER_VERTICAL),
])

rob_static_sizer = wx.StaticBoxSizer(wx.VERTICAL, self, _("Setup robot"))
Expand Down Expand Up @@ -1833,6 +1834,7 @@ def OnRobotStatus(self, data):
if data:
self.status_text.SetLabelText("Setup robot transformation matrix:")
self.btn_rob_con.Show()
self.Layout()

def OnSetRobotTransformationMatrix(self, data):
if self.robot.matrix_tracker_to_robot is not None:
Expand Down

0 comments on commit 7e73012

Please sign in to comment.