[SciPy-dev] gui_thread and wxPython-2.5.2.8
Fernando Perez
Fernando.Perez at colorado.edu
Mon Oct 4 19:11:20 CDT 2004
Prabhu Ramachandran schrieb:
> Here is a simple test you can run:
>
> import gui_thread
> gui_thread.start()
> from gui_thread.examples import SimpleFrame
> a = SimpleFrame()
> a.Show()
> a.SetTitle('Hey! this works!')
Mmh :( With scipy CVS from a moment ago, this is what I'm getting:
In [1]: import gui_thread
In [2]: gui_thread.start()
In [3]: from gui_thread.examples import SimpleFrame
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
/home/fperez/test/<console>
/home/fperez/test/gui_thread/examples.py
/home/fperez/test/gui_thread/examples.py in SimpleFrame()
/usr/lib/python2.3/site-packages/wxPython/misc.py in __init__(self, *_args,
**_kwargs)
102 class wxSize(wxSizePtr):
103 def __init__(self,*_args,**_kwargs):
--> 104 self.this = miscc.new_wxSize(*_args,**_kwargs)
105 self.thisown = 1
106
/home/fperez/test/<string> in new_wxSize(*args, **kws)
AttributeError: AttrHolder instance has no attribute 'result'
And the WxPython demo doesn't seem to work either:
planck[~/test]> cd /usr/share/doc/wxPythonGTK2-2.4.2.4/demo/
planck[demo]> ip
Python 2.3.3 (#1, May 7 2004, 10:31:40)
Type "copyright", "credits" or "license" for more information.
IPython 0.6.4.rc1 -- An enhanced Interactive Python.
? -> Introduction to IPython's features.
@magic -> Information about IPython's 'magic' @ functions.
help -> Python's own help system.
object? -> Details about 'object'. ?object also works, ?? prints more.
In [1]: import gui_thread
In [2]: gui_thread.start()
In [3]: import Main
In [4]: d = Main.wxPythonDemo(None, 'a')
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
/usr/share/doc/wxPythonGTK2-2.4.2.4/demo/<console>
TypeError: __init__() takes exactly 4 arguments (3 given)
Is it a problem on my side? I'll gladly run more tests if you nudge me a bit
in the right direction.
Best,
f
More information about the Scipy-dev
mailing list