From 73727196c800d7b9aa1f7f963ce093d1f01a4363 Mon Sep 17 00:00:00 2001 From: Thiago Franco de Moraes Date: Mon, 19 Sep 2016 14:06:58 -0300 Subject: [PATCH] binding the close button --- invesalius/gui/dialogs.py | 4 ++++ 1 file changed, 4 insertions(+), 0 deletions(-) diff --git a/invesalius/gui/dialogs.py b/invesalius/gui/dialogs.py index d2d3328..cc8fca5 100644 --- a/invesalius/gui/dialogs.py +++ b/invesalius/gui/dialogs.py @@ -2296,6 +2296,7 @@ class FFillSegmentationOptionsDialog(wx.Dialog): self.Bind(wx.EVT_RADIOBUTTON, self.OnSetRadio) self.cmb_method.Bind(wx.EVT_COMBOBOX, self.OnSetMethod) + self.close_btn.Bind(wx.EVT_BUTTON, self.OnBtnClose) self.Bind(wx.EVT_CLOSE, self.OnClose) def OnSetRadio(self, evt): @@ -2338,6 +2339,9 @@ class FFillSegmentationOptionsDialog(wx.Dialog): self.GetSizer().Fit(self) self.Layout() + def OnBtnClose(self, evt): + self.Close() + def OnClose(self, evt): if self.config.dlg_visible: Publisher.sendMessage('Disable style', const.SLICE_STATE_MASK_FFILL) -- libgit2 0.21.2