dabo Commit
Revision 3670
Date: 2007-11-13 08:22:46 -0800 (Tue, 13 Nov 2007)
Author: Ed
Trac: http://svn.dabodev.com/trac/dabo/changeset/3670
Changed:
U trunk/ide/ClassDesigner.py
U trunk/ide/ClassDesignerComponents.py
U trunk/ide/ClassDesignerPropSheet.py
Log:
Improved detection of "changed" designs.
Improved the printout of bad prop dict settings in the Prop Sheet.
Diff:
Modified: trunk/ide/ClassDesigner.py
===================================================================
--- trunk/ide/ClassDesigner.py 2007-11-13 16:21:02 UTC (rev 3669)
+++ trunk/ide/ClassDesigner.py 2007-11-13 16:22:46 UTC (rev 3670)
@@ -696,7 +696,7 @@
frm.Centered = True
frm.Visible = True
# Save the initial state
- frm.saveState()
+ dabo.ui.callAfter(frm.saveState)
return frm
@@ -1456,7 +1456,7 @@
if issubclass(cls, (dui.dSizer, dui.dGridSizer)):
obj = cls()
elif issubclass(cls, (dui.dBorderSizer, )):
- frm = dui.dForm(None)
+ frm = dui.dForm(None, Visible=False,
NameBase="BORD")
obj = cls(frm)
elif issubclass(cls, (dui.dForm, dui.dDialog)):
cf = self.CurrentForm
@@ -1465,7 +1465,7 @@
self.CurrentForm = cf
dui.callAfterInterval(100, self.updateLayout)
else:
- frm = dui.dForm(None)
+ frm = dui.dForm(None, Visible=False,
NameBase="DEFA")
# We need to handle all the dependent class
types
if issubclass(cls, dui.dPage) and
isinstance(srcObj.Parent,
self.pagedControls):
@@ -3947,11 +3947,10 @@
except dui.deadObjectException:
noPem = True
if noPem:
- pf = self._pemForm = PemForm(None, Visible=False)
+ pf = self._pemForm = PemForm(None)
pf.restoreSizeAndPosition()
pf.Controller = self
dui.callAfterInterval(100, self.updateLayout)
- pf.Visible = True
return self._pemForm
Modified: trunk/ide/ClassDesignerComponents.py
===================================================================
--- trunk/ide/ClassDesignerComponents.py 2007-11-13 16:21:02 UTC (rev
3669)
+++ trunk/ide/ClassDesignerComponents.py 2007-11-13 16:22:46 UTC (rev
3670)
@@ -30,6 +30,8 @@
classID=None, classDict=None, propsToExclude=None):
app = self.Controller
ret = {}
+ if not app:
+ return ret
if not allProps:
# Can be set globally by the save routine
allProps = app.saveAllProps
Modified: trunk/ide/ClassDesignerPropSheet.py
===================================================================
--- trunk/ide/ClassDesignerPropSheet.py 2007-11-13 16:21:02 UTC (rev 3669)
+++ trunk/ide/ClassDesignerPropSheet.py 2007-11-13 16:22:46 UTC (rev 3670)
@@ -736,9 +736,9 @@
if not isinstance(pd, dict):
if pd is None:
- print _("None PROP DICT:, ROW="),
+ print _("None PROP DICT:, ROW="), row
else:
- print _("BAD PROP DICT:"), pd,
type(pd), _("ROW="),
+ print _("BAD PROP DICT:"), pd,
type(pd), _("ROW="), row
else:
if pd["type"] == "multi":
# This is a catch-all setting for props
such as 'Value' that
_______________________________________________
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/dabo-dev/[EMAIL PROTECTED]