Re: Wx broken?



On Jan 15, 10:46 am, tmallen <thomasmal...@xxxxxxxxx> wrote:
I've tried a few of the examples fromhttp://wiki.wxpython.org/Getting%20Started
, but after "Hello World" (window) nothing works. I get the following
error message with the other examples:

Traceback (most recent call last):
  File "C:/Documents and Settings/MyUserName/Desktop/WxExample.py",
line 1, in <module>
    import wx
  File "C:\Python25\lib\site-packages\wx-2.8-msw-unicode\wx
\__init__.py", line 45, in <module>
    from wx._core import *
  File "C:\Python25\lib\site-packages\wx-2.8-msw-unicode\wx\_core.py",
line 6, in <module>
    new_instancemethod = new.instancemethod
AttributeError: 'module' object has no attribute 'instancemethod'

Here's a snippet that generates this error:http://pastebin.com/m2b4f4f9c

For those familiar with wx here, is this a bug in the library, or
should I be providing "instancemethod" at some point? Seeing that it's
an unhandled exception, I do expect the former.

Thanks,
Thomas

Looking a little closer, this is what's causing the bug:

Wx: _core.py, lines 1-6:

# This file was created automatically by SWIG 1.3.29.
# Don't modify this file, modify the SWIG interface instead.

import _core_
import new
new_instancemethod = new.instancemethod

On this Win32 box, the "new" module doesn't have the "instancemethod"
attribute. What is new.instancemethod used for? "new_instancemethod,"
which should be assigned to the attr, does not show up again in this
particular source file.

Thanks,
Thomas
.



Relevant Pages

  • Re: Excel 2007 password bug
    ... Like Hector I was able to reproduce the bug. ... | the ability to save off the file as a copy then edit it. ... | originally set in THAT workbook somehow is no longer there. ... | to modify" anymore. ...
    (microsoft.public.excel)
  • Re: Linked file issue in Word 2007.
    ... I'm not sure if it is a bug or by design but a change is being made to the ... I'm leaning towards "by design" since they are making a modification to the ... MVP FAQ site: http://mvps.org/ ... don't modify any and close it. ...
    (microsoft.public.word.application.errors)
  • Re: Lets talk about GUI and sound libraries
    ... because you're able to "modify it" and not because it's distributed free ... If it was simply to fix a bug, ... of a software package confers no advantage to users when the vendor ...
    (comp.lang.lisp)
  • Re: Lets talk about GUI and sound libraries
    ... Jack Unrue wrote: ... because you're able to "modify it" and not because it's distributed free ... If it was simply to fix a bug, ... I'm a CLISP user, and I have modified CLISP, not to fix a bug, but ...
    (comp.lang.lisp)