--- a/tuikit/menu.py Fri Dec 14 10:32:43 2012 +0100
+++ b/tuikit/menu.py Sun Dec 16 20:49:54 2012 +0100
@@ -9,6 +9,8 @@
self.width = max([len(x[0]) for x in items if x is not None]) + 4
self.height = len(items) + 2
+ self.allow_focus = True
+
self.bg = 'menu'
self.highlight = 'menu-active'
self.items = items
@@ -88,7 +90,7 @@
def run_selected(self):
if self.selected and self.selected[1] is not None:
if isinstance(self.selected[1], str):
- self.handle('activate', self.selected[1])
+ self.emit('activate', self.selected[1])
elif isinstance(self.selected[1], Widget):
self.selected[1].show()
self.selected[1].setfocus()