dabo Commit
Revision 7072
Date: 2012-01-30 18:48:01 -0800 (Mon, 30 Jan 2012)
Author: Ed
Trac: http://trac.dabodev.com/changeset/7072
Changed:
U trunk/ide/ClassDesigner.py
Log:
Got rid of an unnecessary abbreviation that just made the code harder to read.
Diff:
Modified: trunk/ide/ClassDesigner.py
===================================================================
--- trunk/ide/ClassDesigner.py 2012-01-31 02:45:57 UTC (rev 7071)
+++ trunk/ide/ClassDesigner.py 2012-01-31 02:48:01 UTC (rev 7072)
@@ -13,7 +13,7 @@
dabo.ui.loadUI("wx")
# This is because I'm a lazy typist
dui = dabo.ui
-from ClassDesignerFormMixin import ClassDesignerFormMixin as dfm
+from ClassDesignerFormMixin import ClassDesignerFormMixin
from ClassDesignerPemForm import PemForm
from ClassDesignerEditor import EditorForm
from ClassDesignerComponents import LayoutPanel
@@ -370,9 +370,9 @@
base = self._selectedClass
else:
base = dui.dForm
- class DesForm(dfm, base):
+ class DesForm(ClassDesignerFormMixin, base):
_superBase = base
- _superMixin = dfm
+ _superMixin = ClassDesignerFormMixin
try:
_classFile = os.path.realpath(filepath)
except AttributeError:
@@ -385,7 +385,7 @@
if isWizard:
kwargs["Caption"] = "Dabo Wizard
Designer"
base.__init__(self, parent=parent, *args,
**kwargs)
- dfm.__init__(self, parent=parent, *args,
**kwargs)
+ ClassDesignerFormMixin.__init__(self,
parent=parent, *args, **kwargs)
self._basePrefKey =
"dabo.ide.ClassDesigner.ClassDesignerForm"
def _afterInit(self):
@@ -2436,9 +2436,8 @@
def getDesignerWindows(self, frm=None):
"""Returns a list of the currently open designer surface
windows."""
- # NOTE: 'dfm' is the ClassDesignerFormMixin class
return [win for win in self.uiForms
- if isinstance(win, dfm)
+ if isinstance(win, ClassDesignerFormMixin)
and win is not frm]
_______________________________________________
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]