Fix bug when opening PouActionDialog while trying to add action to a POU in SFC
authorLaurent Bessard
Mon, 27 Aug 2012 23:06:29 +0200
changeset 751 c994279f205c
parent 750 fedef839bfa8
child 752 6b63246474ff
Fix bug when opening PouActionDialog while trying to add action to a POU in SFC
dialogs/PouActionDialog.py
--- a/dialogs/PouActionDialog.py	Mon Aug 27 17:51:55 2012 +0200
+++ b/dialogs/PouActionDialog.py	Mon Aug 27 23:06:29 2012 +0200
@@ -63,7 +63,7 @@
         button_sizer = self.CreateButtonSizer(wx.OK|wx.CANCEL|wx.CENTRE)
         self.Bind(wx.EVT_BUTTON, self.OnOK, 
               button_sizer.GetAffirmativeButton())
-        main_sizer.AddSizer(self.ButtonSizer, border=20, 
+        main_sizer.AddSizer(button_sizer, border=20, 
               flag=wx.ALIGN_RIGHT|wx.BOTTOM|wx.LEFT|wx.RIGHT)
             
         self.SetSizer(main_sizer)