From 86ba775c4fb92479371cc5b9a3f16ce5d5e2299c 2008-09-13 16:21:39 From: Ville M. Vainio Date: 2008-09-13 16:21:39 Subject: [PATCH] ipy_leo.mkbutton creates buttons on button bar --- diff --git a/IPython/Extensions/ipy_leo.py b/IPython/Extensions/ipy_leo.py index 0521150..e472c79 100644 --- a/IPython/Extensions/ipy_leo.py +++ b/IPython/Extensions/ipy_leo.py @@ -768,4 +768,9 @@ def shadow_walk(directory, parent=None, isroot=True): child.initBodyString(body) shadow_walk(path, parent=child, isroot=False) +def mkbutton(text, node_to_push): + ib = c.frame.getIconBarObject() + ib.add(text = text, command = node_to_push.ipush) + +