dialogs/LDPowerRailDialog.py
branch1.1 Korean release
changeset 1384 02fe382c4511
parent 1357 b8d577c7eb4b
child 1571 486f94a8032c
equal deleted inserted replaced
1280:72a826dfcfbb 1384:02fe382c4511
    73         self.LeftGridSizer.AddWindow(pin_number_label, flag=wx.GROW)
    73         self.LeftGridSizer.AddWindow(pin_number_label, flag=wx.GROW)
    74         
    74         
    75         # Create spin control for defining power rail pin number
    75         # Create spin control for defining power rail pin number
    76         self.PinNumber = wx.SpinCtrl(self, min=1, max=50,
    76         self.PinNumber = wx.SpinCtrl(self, min=1, max=50,
    77               style=wx.SP_ARROW_KEYS)
    77               style=wx.SP_ARROW_KEYS)
       
    78         self.PinNumber.SetValue(1)
    78         self.Bind(wx.EVT_SPINCTRL, self.OnPinNumberChanged, self.PinNumber)
    79         self.Bind(wx.EVT_SPINCTRL, self.OnPinNumberChanged, self.PinNumber)
    79         self.LeftGridSizer.AddWindow(self.PinNumber, flag=wx.GROW)
    80         self.LeftGridSizer.AddWindow(self.PinNumber, flag=wx.GROW)
    80         
    81         
    81         # Add preview panel and associated label to sizers
    82         # Add preview panel and associated label to sizers
    82         self.RightGridSizer.AddWindow(self.PreviewLabel, flag=wx.GROW)
    83         self.RightGridSizer.AddWindow(self.PreviewLabel, flag=wx.GROW)