dialogs/LDElementDialog.py
changeset 1259 8350222a81c3
parent 1252 18cd1357e8d3
child 1370 ee795a8d4404
--- a/dialogs/LDElementDialog.py	Fri Jun 14 10:52:08 2013 +0200
+++ b/dialogs/LDElementDialog.py	Fri Jun 14 10:54:21 2013 +0200
@@ -50,7 +50,7 @@
         @param type: Type of LD element ('contact or 'coil')
         """
         BlockPreviewDialog.__init__(self, parent, controller, tagname, 
-              size=wx.Size(350, 260 if type == "contact" else 310),
+              size=wx.Size(350, 280 if type == "contact" else 330),
               title=(_("Edit Contact Values")
                      if type == "contact"
                      else _("Edit Coil Values")))
@@ -91,7 +91,7 @@
               flag=wx.GROW|wx.TOP)
         
         # Create a combo box for defining LD element variable
-        self.ElementVariable = wx.ComboBox(self, style=wx.CB_READONLY)
+        self.ElementVariable = wx.ComboBox(self, style=wx.CB_READONLY|wx.CB_SORT)
         self.Bind(wx.EVT_COMBOBOX, self.OnVariableChanged, 
                   self.ElementVariable)
         self.LeftGridSizer.AddWindow(self.ElementVariable, border=5,