etherlab/CommonEtherCATFunction.py
changeset 2382 e783c6beacf1
parent 2378 7aa47c09f8f5
child 2383 6cc3460be285
equal deleted inserted replaced
2381:1c40e3976cc2 2382:e783c6beacf1
  1586         """
  1586         """
  1587         Create a dialog to indicate error or warning.
  1587         Create a dialog to indicate error or warning.
  1588         @param mention : Error String
  1588         @param mention : Error String
  1589         """
  1589         """
  1590         app_frame = self.Controler.GetCTRoot().AppFrame
  1590         app_frame = self.Controler.GetCTRoot().AppFrame
  1591         dlg = wx.MessageDialog (app_frame, mention,
  1591         dlg = wx.MessageDialog(app_frame, mention,
  1592                                 ' Warning...',
  1592                                ' Warning...',
  1593                                 wx.OK | wx.ICON_INFORMATION)
  1593                                wx.OK | wx.ICON_INFORMATION)
  1594         dlg.ShowModal()
  1594         dlg.ShowModal()
  1595         dlg.Destroy()
  1595         dlg.Destroy()