Hi,
I think I have this demo distilled down to the minimum.
If I run it as it stands it will give Floating Point Exception.
If I comment out the np = numarray.one(10000) line it runs fine and
creates the single window you would expect. If I comment out the
creation of the wxScrolledWindow it will also run fine. Is there
a known conflict between wxPython and numarray? The error seems to come
from the frame.Show() command.
numarray .9
wxpython 2.4.0.7
wxgtk 2.4.1-r1
on an up to date gentoo box.
···
-------------------------------------------------------------
from wxPython.wx import *
import numarray
app = wxPySimpleApp()
np = numarray.ones(10000)
class MyFrame(wxFrame):
def __init__(self, parent, ID, title):
wxFrame.__init__(self, parent, ID, title,
wxDefaultPosition, wxSize(512,512))
self.imagewindow = wxScrolledWindow(id=-1, name='imagewindow',
parent=self, pos=wxDefaultPosition, size=wxDefaultSize,
style=wxHSCROLL|wxVSCROLL)
frame=MyFrame(NULL,-1, "wxRenderWindow")
print "I am"
frame.Show(true)
print "an idiot"
app.MainLoop()