Commit de006394874f047494878f4f7db95d592f59adb3

Authored by Thiago Franco de Moraes
1 parent de8f129e

Using dialog without predialog on boolean ops dialog

Showing 1 changed file with 2 additions and 5 deletions   Show diff stats
invesalius/gui/dialogs.py
@@ -1489,11 +1489,9 @@ class WatershedOptionsDialog(wx.Dialog): @@ -1489,11 +1489,9 @@ class WatershedOptionsDialog(wx.Dialog):
1489 1489
1490 class MaskBooleanDialog(wx.Dialog): 1490 class MaskBooleanDialog(wx.Dialog):
1491 def __init__(self, masks): 1491 def __init__(self, masks):
1492 - pre = wx.PreDialog()  
1493 - pre.Create(wx.GetApp().GetTopWindow(), -1, _(u"Boolean operations"), style=wx.DEFAULT_DIALOG_STYLE|wx.FRAME_FLOAT_ON_PARENT)  
1494 - self.PostCreate(pre)  
1495 - 1492 + wx.Dialog.__init__(self, wx.GetApp().GetTopWindow(), -1, _(u"Boolean operations"))
1496 self._init_gui(masks) 1493 self._init_gui(masks)
  1494 + self.CenterOnScreen()
1497 1495
1498 def _init_gui(self, masks): 1496 def _init_gui(self, masks):
1499 mask_choices = [(masks[i].name, masks[i]) for i in sorted(masks)] 1497 mask_choices = [(masks[i].name, masks[i]) for i in sorted(masks)]
@@ -1550,7 +1548,6 @@ class MaskBooleanDialog(wx.Dialog): @@ -1550,7 +1548,6 @@ class MaskBooleanDialog(wx.Dialog):
1550 self.SetSizer(sizer) 1548 self.SetSizer(sizer)
1551 sizer.Fit(self) 1549 sizer.Fit(self)
1552 1550
1553 - self.Centre()  
1554 1551
1555 btn_ok.Bind(wx.EVT_BUTTON, self.OnOk) 1552 btn_ok.Bind(wx.EVT_BUTTON, self.OnOk)
1556 1553