PLCOpenEditor.py
changeset 322 bf5a968bb7e0
parent 317 bb25a8edd3e4
child 324 9f240641e3f0
equal deleted inserted replaced
321:5b37e16f7b2a 322:bf5a968bb7e0
  3889                                     location = "%M" + location
  3889                                     location = "%M" + location
  3890                                 self.ParentWindow.Table.SetValue(row, col, location)
  3890                                 self.ParentWindow.Table.SetValue(row, col, location)
  3891                                 self.ParentWindow.Table.ResetView(self.ParentWindow.VariablesGrid)
  3891                                 self.ParentWindow.Table.ResetView(self.ParentWindow.VariablesGrid)
  3892                                 self.ParentWindow.SaveValues()
  3892                                 self.ParentWindow.SaveValues()
  3893                             dialog.Destroy()
  3893                             dialog.Destroy()
  3894         if message is not None:
  3894             if message is not None:
  3895             wx.CallAfter(self.ShowMessage, message)
  3895                 wx.CallAfter(self.ShowMessage, message)
  3896             
  3896             
  3897     def ShowMessage(self, message):
  3897     def ShowMessage(self, message):
  3898         message = wx.MessageDialog(self.ParentWindow, message, "Error", wx.OK|wx.ICON_ERROR)
  3898         message = wx.MessageDialog(self.ParentWindow, message, "Error", wx.OK|wx.ICON_ERROR)
  3899         message.ShowModal()
  3899         message.ShowModal()
  3900         message.Destroy()
  3900         message.Destroy()