Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #65876
| Path | csiph.com!usenet.pasdenom.info!news.franciliens.net!fdn.fr!usenet-fr.net!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <rosuav@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.000 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'argument': 0.05; 'skip:" 60': 0.07; 'subject:Error': 0.07; 'subject:getting': 0.07; '(pos': 0.09; '__init__': 0.09; 'exit': 0.09; 'subject:while': 0.09; 'cc:addr:python-list': 0.11; 'def': 0.12; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'patil': 0.16; 'typeerror:': 0.16; 'subject:python': 0.16; 'skip:_ 70': 0.16; 'wrote:': 0.18; 'finished': 0.19; 'passing': 0.19; 'feb': 0.22; 'cc:addr:python.org': 0.22; 'looks': 0.24; 'cc:2**0': 0.24; 'defined': 0.27; 'header:In-Reply-To:1': 0.27; 'function': 0.29; 'message-id:@mail.gmail.com': 0.30; 'gives': 0.31; 'code': 0.31; 'file': 0.32; 'message.': 0.35; 'received:google.com': 0.35; 'url:org': 0.36; 'error.': 0.37; 'window': 0.38; 'pm,': 0.38; "you're": 0.61; 'below.': 0.71; 'to:none': 0.92 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=wMqZlbRUdXP5GL7o8OdOtdjExQrV/i11ESQxxH7DNY8=; b=p2dHeX7558D4hUdIhOrkjbQS37wT/wmzt011L6ZEoT5qqQLZEn1ja03HcW2coKDeoy Dw/T3ayMGISdOKG2fxQ467RZE1WTzItkW28nqsPVdEtcIuV5uarhTOmtv3EcK4ZBVmxd /jqRPtkb5UFUwpNnDxK4RIgK1HPcLFmyzC8LMQY+iD80GXjSJIEd/2rWBWR4eRu56Urf jNtiDQPjln+1TngFVkoF/H4MccGFfGZZsHm5HRqHm8AsfINUW/cEJpzqwyQDF53Lo6aF 2WMjdn1JdqZTz5HNLre57cNQyQ6HHRl2ylbtEBrG7YoqQLKFk6sAapCo9Fr/I7yWDo6I Ke8g== |
| MIME-Version | 1.0 |
| X-Received | by 10.66.164.229 with SMTP id yt5mr30238233pab.67.1392091955555; Mon, 10 Feb 2014 20:12:35 -0800 (PST) |
| In-Reply-To | <6e857925-8571-438b-84a6-bf53a3488037@googlegroups.com> |
| References | <6e857925-8571-438b-84a6-bf53a3488037@googlegroups.com> |
| Date | Tue, 11 Feb 2014 15:12:35 +1100 |
| Subject | Re: Error getting while running python function |
| From | Chris Angelico <rosuav@gmail.com> |
| Cc | "python-list@python.org" <python-list@python.org> |
| Content-Type | text/plain; charset=UTF-8 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.6647.1392091964.18130.python-list@python.org> (permalink) |
| Lines | 26 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1392091964 news.xs4all.nl 2899 [2001:888:2000:d::a6]:50758 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:65876 |
Show key headers only | View raw
On Tue, Feb 11, 2014 at 3:07 PM, Jaydeep Patil <patil.jay2009@gmail.com> 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
It looks like you're missing a required argument :)
http://www.wxpython.org/docs/api/wx.MessageDialog-class.html#__init__
Try passing it a parent window as well as the message.
ChrisA
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Error getting while running python function Jaydeep Patil <patil.jay2009@gmail.com> - 2014-02-10 20:07 -0800
Re: Error getting while running python function Chris Angelico <rosuav@gmail.com> - 2014-02-11 15:12 +1100
Re: Error getting while running python function Jaydeep Patil <patil.jay2009@gmail.com> - 2014-02-10 20:34 -0800
Re: Error getting while running python function Chris Angelico <rosuav@gmail.com> - 2014-02-11 16:01 +1100
Re: Error getting while running python function Jaydeep Patil <patil.jay2009@gmail.com> - 2014-02-10 20:26 -0800
Re: Error getting while running python function Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-02-11 09:59 +0000
csiph-web