From c775896d95cc616e4bdd3160d3ab24ae64b319a3 Mon Sep 17 00:00:00 2001 From: Pierre Ratinaud Date: Tue, 16 Dec 2014 00:14:19 +0100 Subject: [PATCH] ... --- guifunct.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/guifunct.py b/guifunct.py index de5c1cf..5420b3c 100644 --- a/guifunct.py +++ b/guifunct.py @@ -1021,14 +1021,18 @@ class CreateTgenDialog ( wx.Frame ): bSizer2.Add( self.ip, 0, wx.ALL, 5 ) + butpanel = wx.Panel(self, -1) + m_sdbSizer3 = wx.StdDialogButtonSizer() - self.m_sdbSizer3OK = wx.Button( self, wx.ID_OK ) + self.m_sdbSizer3OK = wx.Button( butpanel, wx.ID_OK ) m_sdbSizer3.AddButton( self.m_sdbSizer3OK ) - self.m_sdbSizer3Cancel = wx.Button( self, wx.ID_CANCEL ) + self.m_sdbSizer3Cancel = wx.Button( butpanel, wx.ID_CANCEL ) m_sdbSizer3.AddButton( self.m_sdbSizer3Cancel ) m_sdbSizer3.Realize(); - bSizer2.Add( m_sdbSizer3, 1, wx.EXPAND, 5 ) + butpanel.SetSizer( m_sdbSizer3 ) + + bSizer2.Add( butpanel, 1, wx.EXPAND, 5 ) self.SetSizer( bSizer2 ) @@ -1148,6 +1152,7 @@ class TGenFrame ( wx.Frame ): bSizer1.Add( fgSizer1, 1, wx.ALIGN_CENTER_HORIZONTAL|wx.ALIGN_CENTER_VERTICAL|wx.ALL|wx.EXPAND, 5 ) + m_sdbSizer2 = wx.StdDialogButtonSizer() self.m_sdbSizer2OK = wx.Button( self.panel, wx.ID_OK ) m_sdbSizer2.AddButton( self.m_sdbSizer2OK ) -- 2.7.4