[vtkusers] VTK & wxPython & Numarray

REGAT-BARREL Aurélien arbvtk at yahoo.fr
Fri Jun 4 04:08:01 EDT 2004


Hi,
I think you should ask your question to a Python (comp.lang.python) or wxWidgets (comp.soft-sys.wxwindows) newsgroup since it does not seem to be a VTK problem.
Greets.

rharder at uiuc.edu wrote:
Hi, 
I am hoping to use all of them together, but I have run into a problem
just using Numarray and wxPython together.
Here is a short example that crashes for me:
numarray .9
wxpython 2.4.0.7
wxgtk 2.4.1-r1
python 2.3.3

If I comment out either the numarray assignment or the wxScrolledWindow
It will run fine. If both are left in I get a floating point exception
from the frame.Show() command. Has anyone run into this before?

Ross

---------------------------------------------------------------
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, "wxVizWindow")
print "I am"
frame.Show(true)
print "an idiot"
app.MainLoop()
_______________________________________________
This is the private VTK discussion list. 
Please keep messages on-topic. Check the FAQ at: 
Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtkusers

Aurélien REGAT-BARREL
		
---------------------------------
Yahoo! Mail : votre e-mail personnel et gratuit qui vous suit partout !
Créez votre Yahoo! Mail

Dialoguez en direct avec vos amis grâce à Yahoo! Messenger !
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20040604/3c570fb1/attachment.htm>


More information about the vtkusers mailing list