Re: Error getting while running python function

2014-02-11 Thread Mark Lawrence
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 give

Re: Error getting while running python function

2014-02-10 Thread Chris Angelico
On Tue, Feb 11, 2014 at 3:34 PM, Jaydeep Patil wrote: > There is not parent window such. I just write a simple function to define. > There is no class. > Is it possible to work like the way i am doing? You could try reading the docs; there might be a way to say "no parent window" (maybe pass it N

Re: Error getting while running python function

2014-02-10 Thread Jaydeep Patil
On Tuesday, 11 February 2014 09:42:35 UTC+5:30, Chris Angelico wrote: > On Tue, Feb 11, 2014 at 3:07 PM, Jaydeep Patil > wrote: > > > I have defined one function as below. > > > > > > def InfoDir(msg): > > > msg1 = wx.MessageDialog(msg) > > > msg1.ShowModal() > > >

Re: Error getting while running python function

2014-02-10 Thread Jaydeep Patil
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 belo

Re: Error getting while running python function

2014-02-10 Thread Chris Angelico
On Tue, Feb 11, 2014 at 3:07 PM, 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) > F

Error getting while running python function

2014-02-10 Thread Jaydeep Patil
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