Skip to content

Commit

Permalink
ENH: Loading markers GUI cleaner look
Browse files Browse the repository at this point in the history
Checkboxes aligned to the left and put inside a StaticBoxSizer.
  • Loading branch information
Rakhesis committed Sep 2, 2024
1 parent a559db2 commit 889f354
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions invesalius/gui/dialogs.py
Original file line number Diff line number Diff line change
Expand Up @@ -7459,9 +7459,12 @@ def ImportMarkers():
)
overwrite_image_checkbox = wx.CheckBox(dialog, -1, _("Overwrite current image fiducials"))
clear_checkbox = wx.CheckBox(dialog, -1, _("Clear all previous markers"))
dialog.sizer.Add(overwrite_image_checkbox, 0, wx.CENTER)
dialog.sizer.Add(clear_checkbox, 0, wx.CENTER)
options_sizer = wx.StaticBoxSizer(wx.VERTICAL, dialog)
options_sizer.Add(overwrite_image_checkbox, 0, wx.LEFT)
options_sizer.Add(clear_checkbox, 0, wx.LEFT)
dialog.sizer.Add(options_sizer, 0, wx.EXPAND | wx.ALL, 5)
dialog.FitSizers()

if dialog.ShowModal() == wx.ID_OK:
filename = dialog.GetPath()

Expand All @@ -7484,9 +7487,12 @@ def ImportImageFiducials():
)
load_markers_checkbox = wx.CheckBox(dialog, -1, _("Load other markers from file"))
clear_checkbox = wx.CheckBox(dialog, -1, _("Clear all previous markers"))
dialog.sizer.Add(load_markers_checkbox, 0, wx.CENTER)
dialog.sizer.Add(clear_checkbox, 0, wx.CENTER)
options_sizer = wx.StaticBoxSizer(wx.VERTICAL, dialog)
options_sizer.Add(load_markers_checkbox, 0, wx.LEFT)
options_sizer.Add(clear_checkbox, 0, wx.LEFT)
dialog.sizer.Add(options_sizer, 0, wx.EXPAND | wx.ALL, 5)
dialog.FitSizers()

if dialog.ShowModal() == wx.ID_OK:
filename = dialog.GetPath()

Expand Down

0 comments on commit 889f354

Please sign in to comment.