dabo Commit
Revision 5496
Date: 2009-10-27 11:03:15 -0700 (Tue, 27 Oct 2009)
Author: Paul
Trac: http://trac.dabodev.com/changeset/5496
Changed:
U trunk/dabo/ui/uiwx/dSpinner.py
Log:
Fixed the dSpinner test case to instantiate the _dSpinner_test class instead
of a dSpinner. I just wasted an hour operating on that assumption, and so I
thought that initProperties() on the subclass was never being called.
With this change, I notice a real problem that I'll look at next: the
settings in initProperties (Value = 0) override the constructor arguments
(Value=3). It should be that constructor arguments override all else.
Diff:
Modified: trunk/dabo/ui/uiwx/dSpinner.py
===================================================================
--- trunk/dabo/ui/uiwx/dSpinner.py 2009-10-27 00:54:03 UTC (rev 5495)
+++ trunk/dabo/ui/uiwx/dSpinner.py 2009-10-27 18:03:15 UTC (rev 5496)
@@ -69,7 +69,6 @@
# Because several properties could not be set until after the
child
# objects were created, we need to manually call
_setProperties() here.
self._properties["NameBase"] = nm
-
self._setNameAndProperties(self._properties, **kwargs)
# self._setProperties(self._properties)
# self.autoBindEvents()
@@ -438,6 +437,6 @@
class Test(dabo.ui.dForm):
def OH(self, evt): print "HIT"
def afterInitAll(self):
- self.spn = dabo.ui.dSpinner(self, Value=3,
OnHit=self.OH)
+ self.spn = _dSpinner_test(self, Value=3, OnHit=self.OH)
app = dabo.dApp(MainFormClass=Test)
app.start()
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message:
http://leafe.com/archives/byMID/[email protected]