Re: Agide and wxPython 2.5.2.7: another patch proposed
Bram Moolenaar <[email protected]> Sat, 28 Aug 2004 17:17:42 +0200
| Newsgroups | gmane.comp.tools.aap.devel |
|---|---|
| Message-ID | <[email protected]> |
Christoph Herzog wrote:
> The next problem when doing the tutorial under linux and wxPython
> 2.5.2.7 occurs with the grep dialog:
> In GrepToolWindow, def _init_coll_grepmenu_Items
> the lines
> parent.Append(helpString='',
> id=wxID_GREPTOOLWINDOWGREPMENUSEARCHAGAIN, item='Search again')
> throw an exception:
>
> File "/home/che/lib/aap/Agide/Tools/GrepToolUtil/GrepToolWindow.py",
> line 25, in _init_coll_grepmenu_Items
> id=wxID_GREPTOOLWINDOWGREPMENUSEARCHAGAIN, item='Search again')
> File "/usr/lib/python2.3/site-packages/wx/_core.py", line 7776, in Append
> return _core_.Menu_Append(*args, **kwargs)
> TypeError: Menu_Append() takes at least 3 arguments (2 given)
>
> The reason for this being obviously that the keyword "item" is not
> accepted any more, it was changed to the keyword "text" in wxMenu.Append
> However I suppose in wxPython 2.4.x "text" will be not accepted, so the
> proposed solution is avoiding the keywords altogether, like in the patch
> below.
I tried this with wxPython 2.4 and it appears to work fine.
I think these lines were generated by Boa a long time back. Boa often
has problems with changes in wxPython.
Thanks for fixing this problem!
--
hundred-and-one symptoms of being an internet addict:
193. You ask your girlfriend to drive home so you can sit back with
your PDA and download the information to your laptop
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ Project leader for A-A-P -- http://www.A-A-P.org ///
\\\ Buy at Amazon and help AIDS victims -- http://ICCF.nl/click1.html ///
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click