Error getting while running python function

Mark Lawrence breamoreboy at yahoo.co.uk
Tue Feb 11 04:59:55 EST 2014


On 11/02/2014 04:26, Jaydeep Patil wrote:
> On Tuesday, 11 February 2014 09:37:23 UTC+5:30, Jaydeep Patil  wrote:
>> 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.
>
>
>
> Is anybody answer my query?
>
> Regards
> Jay
>

Come on you lot, pull your bloody fingers out, I've been waiting for 
NINETEEN minutes!!!

Would you please read and action this 
https://wiki.python.org/moin/GoogleGroupsPython to prevent us seeing the 
double line spacing above, thanks.

-- 
My fellow Pythonistas, ask not what our language can do for you, ask 
what you can do for our language.

Mark Lawrence

---
This email is free from viruses and malware because avast! Antivirus protection is active.
http://www.avast.com





More information about the Python-list mailing list