Fixed bug wrong pin number in dialog when creating new power rail on Windows
authorLaurent Bessard
Thu, 10 Oct 2013 17:43:11 +0200
changeset 1357 b8d577c7eb4b
parent 1356 2d4cc768a1bc
child 1358 fe7770a30527
Fixed bug wrong pin number in dialog when creating new power rail on Windows
dialogs/LDPowerRailDialog.py
--- a/dialogs/LDPowerRailDialog.py	Thu Oct 10 17:10:01 2013 +0200
+++ b/dialogs/LDPowerRailDialog.py	Thu Oct 10 17:43:11 2013 +0200
@@ -75,6 +75,7 @@
         # Create spin control for defining power rail pin number
         self.PinNumber = wx.SpinCtrl(self, min=1, max=50,
               style=wx.SP_ARROW_KEYS)
+        self.PinNumber.SetValue(1)
         self.Bind(wx.EVT_SPINCTRL, self.OnPinNumberChanged, self.PinNumber)
         self.LeftGridSizer.AddWindow(self.PinNumber, flag=wx.GROW)