I have defined one function as below.

def InfoDir(msg):
        msg1 = wx.MessageDialog(msg)
        msg1.ShowModal()
        msg1.Destroy()

InfoDir("Testing")


It gives below error.
    msg1 = wx.MessageDialog(msg)
  File "C:\Python27\lib\site-packages\wx-2.8-msw-unicode\wx\_windows.py", line 
2922, in __init__
    _windows_.MessageDialog_swiginit(self,_windows_.new_MessageDialog(*args, 
**kwargs))
TypeError: Required argument 'message' (pos 2) not found

Process finished with exit code 1



Please give me solution for this.
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to