[SciPy-dev] A few gui_thread improvements.

Prabhu Ramachandran prabhu at aero.iitm.ernet.in
Fri Dec 21 23:02:54 CST 2001


hi,

I just committed some code to gui_thread that adds a __setattr__
method to the proxy classes.  Without these changes the following
example will not work.

import gui_thread
from scipy import plt
p = plt.plot([1,2,3])
# so far so good.
plt.xaxis([1,2])

at this point you should see the xaxes bounds change but nothing will
happen.  With the newly added __setattr__ this should behave
correctly.  This should also make the behaviour of proxied objects
nicer.

I've also added a simple unit test for the new method.  You can view
the changes here:

http://scipy.net/cgi-bin/viewcvs.cgi/scipy/gui_thread/

Cheers,
prabhu



More information about the Scipy-dev mailing list