make adjustable size of ArrayTypeDialog
authorAndrey Skvortsov <andrej.skvortzov@gmail.com>
Thu, 08 Jun 2017 17:30:23 +0300
changeset 1694 acb767d6ac85
parent 1693 72286367d0fd
child 1695 a63bb4025852
make adjustable size of ArrayTypeDialog
dialogs/ArrayTypeDialog.py
--- a/dialogs/ArrayTypeDialog.py	Thu Jun 08 17:29:41 2017 +0300
+++ b/dialogs/ArrayTypeDialog.py	Thu Jun 08 17:30:23 2017 +0300
@@ -41,8 +41,7 @@
 class ArrayTypeDialog(wx.Dialog):
     
     def __init__(self, parent, datatypes, infos):
-        wx.Dialog.__init__(self, parent,
-              size=wx.Size(500, 350), title=_('Edit array type properties'))
+        wx.Dialog.__init__(self, parent, title=_('Edit array type properties'))
         
         main_sizer = wx.FlexGridSizer(cols=1, hgap=0, rows=3, vgap=10)
         main_sizer.AddGrowableCol(0)
@@ -88,6 +87,7 @@
             self.BaseType.SetStringSelection(infos)
         
         self.BaseType.SetFocus()
+        self.Fit()
         
     def GetDimensions(self):
         dimensions_list = []