Error getting while running python function

Jaydeep Patil patil.jay2009 at
Tue Feb 11 05:07:23 CET 2014

I have defined one function as below.

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


It gives below error.
    msg1 = wx.MessageDialog(msg)
  File "C:\Python27\lib\site-packages\wx-2.8-msw-unicode\wx\", 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.

More information about the Python-list mailing list