From e43a714d453539ce116665a2d3c7eadb355a8fa7 Mon Sep 17 00:00:00 2001 From: ccremers Date: Thu, 3 Aug 2006 14:33:11 +0000 Subject: [PATCH] - Simplified close button setup --- gui/Scytherthread.py | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/gui/Scytherthread.py b/gui/Scytherthread.py index 7885434..a7f6b60 100644 --- a/gui/Scytherthread.py +++ b/gui/Scytherthread.py @@ -277,17 +277,10 @@ class ResultWindow(wx.Frame): line = wx.StaticLine(self, -1, size=(20,-1), style=wx.LI_HORIZONTAL) sizer.Add(line, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL|wx.RIGHT|wx.TOP, 5) - btnsizer = wx.StdDialogButtonSizer() - - btn = wx.Button(self, wx.ID_OK) - btn.SetHelpText("Close window") - btn.SetDefault() + btn = wx.Button(self, -1,"Close window") self.Bind(wx.EVT_BUTTON,self.onCloseButton,btn) - btnsizer.AddButton(btn) - btnsizer.Realize() - - sizer.Add(btnsizer, 0, wx.ALIGN_CENTER_VERTICAL|wx.ALL|wx.ALIGN_RIGHT, 5) + sizer.Add(btn, 0, wx.ALIGN_CENTER_VERTICAL|wx.ALL|wx.ALIGN_RIGHT, 5) self.SetSizer(sizer) sizer.Fit(self)