dialogs/LDPowerRailDialog.py
changeset 2572 9622418ac28c
parent 1853 47a3f39bead0
child 2587 c67488bd8134
equal deleted inserted replaced
2571:d968d586ad16 2572:9622418ac28c
   153         @param event: wx.SpinEvent
   153         @param event: wx.SpinEvent
   154         """
   154         """
   155         self.RefreshPreview()
   155         self.RefreshPreview()
   156         event.Skip()
   156         event.Skip()
   157 
   157 
   158     def RefreshPreview(self):
   158     def DrawPreview(self):
   159         """
   159         """
   160         Refresh preview panel of graphic element
   160         Refresh preview panel of graphic element
   161         Override BlockPreviewDialog function
   161         Override BlockPreviewDialog function
   162         """
   162         """
   163 
   163 
   164         # Set graphic element displayed, creating a power rail element
   164         # Set graphic element displayed, creating a power rail element
   165         self.Element = LD_PowerRail(self.Preview,
   165         self.Element = LD_PowerRail(self.Preview,
   166                                     self.GetPowerRailType(),
   166                                     self.GetPowerRailType(),
   167                                     connectors=self.PinNumber.GetValue())
   167                                     connectors=self.PinNumber.GetValue())
   168 
   168 
   169         # Call BlockPreviewDialog function
   169         return BlockPreviewDialog.DrawPreview(self)
   170         BlockPreviewDialog.RefreshPreview(self)