editors/LDViewer.py
changeset 1745 f9d32913bad4
parent 1744 69dfdb26f600
child 1753 19f19c66b67e
equal deleted inserted replaced
1744:69dfdb26f600 1745:f9d32913bad4
   664                 self.RefreshBuffer()
   664                 self.RefreshBuffer()
   665                 self.RefreshScrollBars()
   665                 self.RefreshScrollBars()
   666                 self.RefreshVisibleElements()
   666                 self.RefreshVisibleElements()
   667                 self.Refresh(False)
   667                 self.Refresh(False)
   668         else:
   668         else:
   669             message = wx.MessageDialog(self, _("You must select the wire where a contact should be added!"), _("Error"), wx.OK|wx.ICON_ERROR)
   669             message = wx.MessageDialog(self, _("You must select the wire where a contact should be added!"), _("Error"), wx.OK | wx.ICON_ERROR)
   670             message.ShowModal()
   670             message.ShowModal()
   671             message.Destroy()
   671             message.Destroy()
   672 
   672 
   673     def AddLadderBranch(self):
   673     def AddLadderBranch(self):
   674         blocks = []
   674         blocks = []
   880                 self.RefreshBuffer()
   880                 self.RefreshBuffer()
   881                 self.RefreshScrollBars()
   881                 self.RefreshScrollBars()
   882                 self.RefreshVisibleElements()
   882                 self.RefreshVisibleElements()
   883                 self.Refresh(False)
   883                 self.Refresh(False)
   884             else:
   884             else:
   885                 message = wx.MessageDialog(self, _("The group of block must be coherent!"), _("Error"), wx.OK|wx.ICON_ERROR)
   885                 message = wx.MessageDialog(self, _("The group of block must be coherent!"), _("Error"), wx.OK | wx.ICON_ERROR)
   886                 message.ShowModal()
   886                 message.ShowModal()
   887                 message.Destroy()
   887                 message.Destroy()
   888         else:
   888         else:
   889             message = wx.MessageDialog(self, _("You must select the block or group of blocks around which a branch should be added!"), _("Error"), wx.OK|wx.ICON_ERROR)
   889             message = wx.MessageDialog(self, _("You must select the block or group of blocks around which a branch should be added!"), _("Error"), wx.OK | wx.ICON_ERROR)
   890             message.ShowModal()
   890             message.ShowModal()
   891             message.Destroy()
   891             message.Destroy()
   892 
   892 
   893     def AddLadderBlock(self):
   893     def AddLadderBlock(self):
   894         message = wx.MessageDialog(self, _("This option isn't available yet!"), _("Warning"), wx.OK|wx.ICON_EXCLAMATION)
   894         message = wx.MessageDialog(self, _("This option isn't available yet!"), _("Warning"), wx.OK | wx.ICON_EXCLAMATION)
   895         message.ShowModal()
   895         message.ShowModal()
   896         message.Destroy()
   896         message.Destroy()
   897 
   897 
   898 #-------------------------------------------------------------------------------
   898 #-------------------------------------------------------------------------------
   899 #                          Delete element functions
   899 #                          Delete element functions