Progress being made on Chaco Linux problem

Just wanted to let everyone know that I have made some progress on the Chaco Linux problem that several people have reported. It appears that the Linux GTK-based version on wxPython does not implement the wxDC.SetDeviceOrigin and wxDC.SetAxisOrientation methods the same way as the Windows version does. The Kiva layer of Chaco is based on DisplayPDF and has its origin in the lower-left corner. Chaco uses the two calls just mentioned to properly orient the wxDC drawing methods. But in the Linux version, these calls are not behaving as I would expect. By commenting out the body of the 'right_side_up' method in wxplot_window.py in the chaco directory (which calls the two methods described), I was able to get the demo program to work (although all the plots are inverted!). I'm going to start looking at the wxPython source to see if I can figure out what's going wrong. But in the meantime I thought I would post what I had found so far. Dave Morrill

"DCM" == David C Morrill <dmorrill@enthought.com> writes:
DCM> Just wanted to let everyone know that I have made some DCM> progress on the Chaco Linux problem that several people have DCM> reported. It appears that the Linux GTK-based version on DCM> wxPython does not implement the wxDC.SetDeviceOrigin and DCM> wxDC.SetAxisOrientation methods the same way as the Windows DCM> version does. Is that the same reason why I got the tracebacks that I sent to the list? File "/usr/local/lib/python2.1/site-packages/kiva/wxcore2d.py", line 167, in d evice_update_line_state pen.SetDashes(list(pattern.astype(int))) ValueError: type must be either a 1-length string, or a python type object Please let us know if you need us to checkout a CVS copy and play with a newer version. cheers, prabhu

Is that the same reason why I got the tracebacks that I sent to the list?
File "/usr/local/lib/python2.1/site-packages/kiva/wxcore2d.py", line 167, in d evice_update_line_state pen.SetDashes(list(pattern.astype(int))) ValueError: type must be either a 1-length string, or a python type object
I don't believe it is the same error, but I'm not sure. I have not seen this error yet myself when testing on Linux.
Please let us know if you need us to checkout a CVS copy and play with a newer version.
I haven't fixed or changed anything yet. Every change I've tried so far works just as poorly :-( But I will post once I've made any additional progress, include CVS updates... Dave Morrill
participants (2)
-
David C. Morrill
-
Prabhu Ramachandran