Hey Paul,
I was running some tests on the dListControl changes, and there
was a part of the items mixin that referenced dListBox-specific
methods. I wrapped that code with: if isinstance(self,
dabo.ui.dListControl) so that the class-specific code would be
isolated. However, when I ran the class test, it still ran the wrong
code.
The problem is that when you run 'python dListControl.py', the
list control object that is created is not an instance of
dListControl! This is true of all Dabo controls. To see what I mean,
add this line at the very end of the __init__() code for dButton.py,
and then run the test:
print "INIT DONE:", self, isinstance(self, dabo.ui.dButton)
When the test runs, it will print that message out, and the last item
will be 'False'. Now run a regular app that uses dButton, and see
that the messages print out with 'True' at the end.
This is most likely due to the use of wx frames and such in the
testing code; at least that's my take on it. This is going to
severely limit the validity of testing, since code that relies on
isinstance() is now unreliable.
-- Ed Leafe
-- http://leafe.com
-- http://dabodev.com
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev