From 2ec30a2ebf7b9576251d298d79cebf83dec75d88 Mon Sep 17 00:00:00 2001 From: Pierre Ratinaud Date: Tue, 16 Dec 2014 00:11:00 +0100 Subject: [PATCH] ... --- dialog.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/dialog.py b/dialog.py index aac6e1d..818485e 100755 --- a/dialog.py +++ b/dialog.py @@ -3250,15 +3250,17 @@ class ImageViewer ( wx.Frame ): bSizer2.Fit( self.m_panel1 ) bSizer1.Add( self.m_panel1, 1, wx.EXPAND |wx.ALL, 5 ) - + panel = wx.Panel(self, -1) m_sdbSizer1 = wx.StdDialogButtonSizer() - self.m_sdbSizer1Save = wx.Button( self, wx.ID_SAVE ) + self.m_sdbSizer1Save = wx.Button( panel, wx.ID_SAVE ) m_sdbSizer1.AddButton( self.m_sdbSizer1Save ) - self.m_sdbSizer1Cancel = wx.Button( self, wx.ID_CANCEL ) + self.m_sdbSizer1Cancel = wx.Button( panel, wx.ID_CANCEL ) m_sdbSizer1.AddButton( self.m_sdbSizer1Cancel ) m_sdbSizer1.Realize(); - bSizer1.Add( m_sdbSizer1, 0, wx.EXPAND, 5 ) + panel.SetSizer( m_sdbSizer1 ) + + bSizer1.Add( panel, 0, wx.EXPAND, 5 ) self.SetSizer( bSizer1 ) -- 2.7.4