dabo Commit
Revision 7186
Date: 2012-05-16 13:07:38 -0700 (Wed, 16 May 2012)
Author: Ed
Trac: http://trac.dabodev.com/changeset/7186

Changed:
U   trunk/dabo/ui/uiwx/dTimer.py

Log:
Added the dummy Destroy() method for compatibility.

Also cleaned up some formatting.

Diff:
Modified: trunk/dabo/ui/uiwx/dTimer.py
===================================================================
--- trunk/dabo/ui/uiwx/dTimer.py        2012-05-15 18:22:02 UTC (rev 7185)
+++ trunk/dabo/ui/uiwx/dTimer.py        2012-05-16 20:07:38 UTC (rev 7186)
@@ -14,8 +14,9 @@
        """Creates a timer, for causing something to happen at regular 
intervals."""
        def __init__(self, parent=None, properties=None, *args, **kwargs):
                self._baseClass = dTimer
-               PM.__init__(self, preClass=None, parent=parent, 
properties=properties, *args, **kwargs)
+               super(dTimer, self).__init__(preClass=None, parent=parent, 
properties=properties, *args, **kwargs)
 
+
        def isRunning(self):
                return self.Enabled
 
@@ -49,7 +50,10 @@
                return None
        def Bind(self, *args, **kwargs):
                pass
+       def Destroy(self):
+               pass
 
+
        def _onTimerHit(self):
                if self.Enabled and self.Interval > 0:
                        self.raiseEvent(dabo.dEvents.Hit)
@@ -80,9 +84,9 @@
 
 
        Enabled = property(_getEnabled, _setEnabled, None,
-                       _("Alternative means of starting/stopping the timer, or 
determining "
-                       "its status. If Enabled is set to True and the timer 
has a positive value "
-                       "for its Interval, the timer will be started."))
+                       _("""Alternative means of starting/stopping the timer, 
or determining
+                       its status. If Enabled is set to True and the timer has 
a positive value
+                       for its Interval, the timer will be started.  
(bool)"""))
 
        Interval = property(_getInterval, _setInterval, None,
                        _("Specifies the timer interval (milliseconds)."))



_______________________________________________
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]

Reply via email to