dialogs/LDPowerRailDialog.py
changeset 2578 eed31489c909
parent 2572 9622418ac28c
child 2587 c67488bd8134
equal deleted inserted replaced
2577:f88eef34a523 2578:eed31489c909
   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)