SIP now does the RightThing with __[sg]etattr__ methods, so use them to provide a simpler implementation for wx.PyEvent and wx.PyCommandEvent. Put any attributes set from Python into a separate dictionary object, and copy that dictionary in Clone().

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@66489 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2010-12-29 02:09:50 +00:00
parent 80898eba5b
commit b47abd88ff
2 changed files with 145 additions and 105 deletions

View File

@@ -73,7 +73,7 @@ class PyEvents(unittest2.TestCase):
rc2 = sys.getrefcount(evt2)
rc3 = sys.getrefcount(evt1)
#print '\n****', rc1, rc2, rc3
##self.assertTrue(rc1 == rc2 == rc3) TODO: rc2 has an extra refcount. Why?
self.assertTrue(rc1 == rc2 == rc3)
self.assertTrue(evt1.attr == evt2.attr)
#def test_AA(self):