enthought/traitsui — pull request #46 by pberkes (2011-12-20 23:27:43+00:00)
Title: Range editor bug

This branch corrects 2 bugs:

1) children of ui.control are not destroyed when a dialog is closed, which caused an AttributeError to be raised on Mac (issue 43: https://github.com/enthought/traitsui/issues/43).

2) traitsui.wx.SimpleSpinEditor did not update its value when text was typed in.

Most of this branch consists in putting tests into place to reproduce these issues.

The actual fixes are two lines only, but **please** have a look at them, since those two lines have been around since 2007 and I'm not too comfortable with changing them ;-)
https://github.com/enthought/traitsui/commit/b9eaa9f3578f797f98907d03bbba96c927e4428c
https://github.com/enthought/traitsui/commit/74a21854bb1b768fea16c8f58a4f5fdf9992162e

I tested the final result on wx, qt4, Mac OS X and Windows. pyAnno works fine, and the examples I tried in traitsui/integrationtests work, too.