dabo Commit
Revision 4633
Date: 2008-11-02 12:13:07 -0800 (Sun, 02 Nov 2008)
Author: Nate
Trac: http://svn.dabodev.com/trac/dabo/changeset/4633

Changed:
U   trunk/demo/samples/dTreeView.py

Log:
Fixed an error that would occur when the user tried to show a context menu on a 
tree item in the demo.  Items would be appended to the menu, but the handler 
function were being passed as the help function.  Fixed.

Diff:
Modified: trunk/demo/samples/dTreeView.py
===================================================================
--- trunk/demo/samples/dTreeView.py     2008-11-02 19:21:10 UTC (rev 4632)
+++ trunk/demo/samples/dTreeView.py     2008-11-02 20:13:07 UTC (rev 4633)
@@ -9,12 +9,13 @@
        def onTreeItemContextMenu(self, evt):
                self.activeNode = evt.itemNode
                self.Form.logit(_("Context menu on node %s") % 
self.activeNode.Caption)
+               
                pop = dabo.ui.dMenu()
-               pop.append(_("Add Child"), self.onAddChild)
-               pop.append(_("Add Sibling"), self.onAddSibling)
+               pop.append(_("Add Child"), OnHit=self.onAddChild)
+               pop.append(_("Add Sibling"), OnHit=self.onAddSibling)
                if not self.Editable:
-                       pop.append(_("Change Caption"), self.onChangeCaption)
-               pop.append(_("Delete this node"), self.onDelNode)
+                       pop.append(_("Change Caption"), 
OnHit=self.onChangeCaption)
+               pop.append(_("Delete this node"), OnHit=self.onDelNode)
                self.showContextMenu(pop)
        
        def onAddChild(self, evt):




_______________________________________________
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