doodle crashes with wxpython 2.4

I recently upgraded from 2.2 to 2.4 on my debian system.

When I now start the doodle example it crashes.

Traceback (most recent call last):
  File "doodle.py", line 210, in ?
    app = DoodleApp(0)
  File "/usr/lib/python2.2/site-packages/wxPython/wx.py", line 1742, in __init__
    _wxStart(self.OnInit)
  File "doodle.py", line 201, in OnInit
    frame = DoodleFrame(None)
  File "doodle.py", line 193, in __init__
    self.doodle = DoodleWindow(self, -1)
  File "doodle.py", line 42, in __init__
    self.MakeMenu()
  File "doodle.py", line 88, in MakeMenu
    menu.Append(k, text, checkable=true)
  File "/usr/lib/python2.2/site-packages/wxPython/windows.py", line 806, in Append
    val = apply(windowsc.wxMenu_Append,(self,) + _args, _kwargs)
TypeError: 'checkable' is an invalid keyword argument for this function

···

--
Antoon Pardon

Antoon Pardon wrote:

I recently upgraded from 2.2 to 2.4 on my debian system.

When I now start the doodle example it crashes.

[...]

TypeError: 'checkable' is an invalid keyword argument for this function

Did you also get the new version of the demo and samples?

http://prdownloads.sourceforge.net/wxpython/wxPythonDemo-2.4.0.6.tar.gz

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

Well no, but I didn't use version from the samples but the one that is
on wxPyWiki: http://wiki.wxpython.org/index.cgi/WxHowtoDrawing

As far as I can see that is still the same version as before. It at
least still contains the "checkable=true" construction that causes
the crash.

···

On Wed, Mar 19, 2003 at 09:52:45AM -0800, Robin Dunn wrote:

Antoon Pardon wrote:
>I recently upgraded from 2.2 to 2.4 on my debian system.
>
>When I now start the doodle example it crashes.
>
[...]
>TypeError: 'checkable' is an invalid keyword argument for this function
>

Did you also get the new version of the demo and samples?

Download wxPythonDemo-2.4.0.6.tar.gz (wxPython)

--
Antoon Pardon

Antoon Pardon wrote:

Did you also get the new version of the demo and samples?

Download wxPythonDemo-2.4.0.6.tar.gz (wxPython)

Well no, but I didn't use version from the samples but the one that is
on wxPyWiki: http://wiki.wxpython.org/index.cgi/WxHowtoDrawing

Ah, I forgot that it was there. I've just updated it.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!