dabo Commit
Revision 7082
Date: 2012-02-06 14:24:08 -0800 (Mon, 06 Feb 2012)
Author: Paul
Trac: http://trac.dabodev.com/changeset/7082
Changed:
U trunk/dabo/ui/uiwx/dPemMixin.py
U trunk/dabo/ui/uiwx/dTimer.py
Log:
Last commit resulted in visual timer control. Fixed.
Diff:
Modified: trunk/dabo/ui/uiwx/dPemMixin.py
===================================================================
--- trunk/dabo/ui/uiwx/dPemMixin.py 2012-02-06 22:12:02 UTC (rev 7081)
+++ trunk/dabo/ui/uiwx/dPemMixin.py 2012-02-06 22:24:08 UTC (rev 7082)
@@ -182,6 +182,8 @@
# Do the init:
if threeWayInit:
pre.Create(*args, **kwargs)
+ elif preClass is None:
+ pass
else:
preClass.__init__(self, *args, **kwargs)
Modified: trunk/dabo/ui/uiwx/dTimer.py
===================================================================
--- trunk/dabo/ui/uiwx/dTimer.py 2012-02-06 22:12:02 UTC (rev 7081)
+++ trunk/dabo/ui/uiwx/dTimer.py 2012-02-06 22:24:08 UTC (rev 7082)
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-
-import wx
import dabo
if __name__ == "__main__":
dabo.ui.loadUI("wx")
@@ -11,13 +10,12 @@
import dPanel
-class dTimer(PM, wx.Control):
+class dTimer(PM):
"""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=wx.Control, parent=parent,
properties=properties, *args, **kwargs)
+ PM.__init__(self, preClass=None, parent=parent,
properties=properties, *args, **kwargs)
-
def isRunning(self):
return self.Enabled
_______________________________________________
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]