dabo Commit
Revision 6103
Date: 2010-10-13 18:41:09 -0700 (Wed, 13 Oct 2010)
Author: Ed
Trac: http://trac.dabodev.com/changeset/6103

Changed:
U   trunk/ide/ClassDesignerControlMixin.py

Log:
Fixed a bug reported by Jim Byrnes in which dPage instances in the Class 
Designer did not display a context menu.

Removed the 'haz_format' method and replaced it with a simple lambda.


Diff:
Modified: trunk/ide/ClassDesignerControlMixin.py
===================================================================
--- trunk/ide/ClassDesignerControlMixin.py      2010-10-12 13:58:45 UTC (rev 
6102)
+++ trunk/ide/ClassDesignerControlMixin.py      2010-10-14 01:41:09 UTC (rev 
6103)
@@ -329,7 +329,7 @@
                        # Add option to delete the page or the entire pageframe
                        pop.prependSeparator()
                        sepAdded =True
-                       pop.prepend(_("Delete the entire Paged Control"), 
self.Parent.onDelete)
+                       pop.prepend(_("Delete the entire Paged Control"), 
OnHit=self.Parent.onDelete)
                        pop.prepend(_("Delete this Page"), OnHit=self.onDelete)
 
                if isinstance(self, dui.dTreeView):
@@ -785,15 +785,10 @@
                                "SortOnHeaderClick": {"type": bool, "readonly": 
False},
                                "ValueColumn": {"type": int, "readonly": False},
                                "VerticalRules": {"type": bool, "readonly": 
False}}
-               
-               def haz_format(self):
-                       # Cannot edit the Mask property when Format is set to 
something
-                       return bool(self.Format)
-
                maskedTextBoxProps = {"Format": {"type": list, "readonly": 
False,
                                                "values": 
[""]+dui.dMaskedTextBox.getFormats()},
-                               "InputCodes": {"type": unicode, "readonly": 
False},
-                               "Mask": {"type": unicode, "readonly": 
haz_format},
+                               "InputCodes": {"type": unicode, "readonly": 
lambda self: bool(self.Format)},
+                               "Mask": {"type": unicode, "readonly": lambda 
self: bool(self.Format)},
                                "ValueMode": {"type": list, "readonly": False,
                                        "values": ["Masked", "Unmasked"]}}
                multiSelectProps = {"MultipleSelect": {"type": bool, 
"readonly": False}}



_______________________________________________
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