Commit 73727196c800d7b9aa1f7f963ce093d1f01a4363
1 parent
1e118472
Exists in
ffill_gui
binding the close button
Showing
1 changed file
with
4 additions
and
0 deletions
Show diff stats
invesalius/gui/dialogs.py
... | ... | @@ -2296,6 +2296,7 @@ class FFillSegmentationOptionsDialog(wx.Dialog): |
2296 | 2296 | |
2297 | 2297 | self.Bind(wx.EVT_RADIOBUTTON, self.OnSetRadio) |
2298 | 2298 | self.cmb_method.Bind(wx.EVT_COMBOBOX, self.OnSetMethod) |
2299 | + self.close_btn.Bind(wx.EVT_BUTTON, self.OnBtnClose) | |
2299 | 2300 | self.Bind(wx.EVT_CLOSE, self.OnClose) |
2300 | 2301 | |
2301 | 2302 | def OnSetRadio(self, evt): |
... | ... | @@ -2338,6 +2339,9 @@ class FFillSegmentationOptionsDialog(wx.Dialog): |
2338 | 2339 | self.GetSizer().Fit(self) |
2339 | 2340 | self.Layout() |
2340 | 2341 | |
2342 | + def OnBtnClose(self, evt): | |
2343 | + self.Close() | |
2344 | + | |
2341 | 2345 | def OnClose(self, evt): |
2342 | 2346 | if self.config.dlg_visible: |
2343 | 2347 | Publisher.sendMessage('Disable style', const.SLICE_STATE_MASK_FFILL) | ... | ... |