equal
deleted
inserted
replaced
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) |