etherlab/EthercatMaster.py
changeset 2366 d635680e4c2c
parent 2363 9c7da6ff6a34
child 2367 0fb54172a18b
equal deleted inserted replaced
2365:bc07b9910cdb 2366:d635680e4c2c
   447                 wx.YES_NO|wx.ICON_QUESTION)
   447                 wx.YES_NO|wx.ICON_QUESTION)
   448             execute = dialog.ShowModal() == wx.ID_YES
   448             execute = dialog.ShowModal() == wx.ID_YES
   449             dialog.Destroy()
   449             dialog.Destroy()
   450 
   450 
   451         if execute:
   451         if execute:
   452             error, returnVal = self.RemoteExec(SCAN_COMMAND, returnVal = None)
   452             error, returnVal = self.RemoteExec(SCAN_COMMAND, returnVal=None)
   453             if error != 0:
   453             if error != 0:
   454                 dialog = wx.MessageDialog(app_frame, returnVal, "Error", wx.OK|wx.ICON_ERROR)
   454                 dialog = wx.MessageDialog(app_frame, returnVal, "Error", wx.OK|wx.ICON_ERROR)
   455                 dialog.ShowModal()
   455                 dialog.ShowModal()
   456                 dialog.Destroy()
   456                 dialog.Destroy()
   457             elif returnVal is not None:
   457             elif returnVal is not None: