daboide Commit
Revision 573
Date: 2006-05-15 10:30:56 -0700 (Mon, 15 May 2006)
Author: ed

Changed:
U   trunk/ClassDesignerEditor.py

Log:
Fixed the problem with non-event methods automatically getting an 'evt' 
parameter. Also updated the old 'Border' property setting to 'DefaultBorder'.


Diff:
Modified: trunk/ClassDesignerEditor.py
===================================================================
--- trunk/ClassDesignerEditor.py        2006-05-15 16:34:11 UTC (rev 572)
+++ trunk/ClassDesignerEditor.py        2006-05-15 17:30:56 UTC (rev 573)
@@ -123,7 +123,7 @@
                dui.dDropdownList(pnl, RegID="ddObject")
                dui.dLabel(pnl, Caption="Method:", RegID="lblMethod")
                dui.dDropdownList(pnl, RegID="ddMethod")
-               hs = dui.dSizer("h", Border=8)
+               hs = dui.dSizer("h", DefaultBorder=8)
                hs.append(self.lblObj, 0, valign="middle")
                hs.append(self.ddObject, 0)
                hs.appendSpacer(1,1)
@@ -166,6 +166,8 @@
                        txt = objCode.get(mthd, "")
                if not txt:
                        mvPointer = True
+                       if nonEvent is None:
+                               nonEvent = mthd not in 
self.app.getClassEvents(obj._baseClass)
                        txt = self._getMethodBase(mthd, not (nonEvent is True))
                if pg is None:
                        pg = self.pgf.appendPage(EditorPage)




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev

Reply via email to