def connect_to_menu(wtree, item, callback):
    wtree.get_widget(item).connect('activate', callback)
Connects a callback to a menu item.
dataset/ETHPy150Open thesamet/webilder/src/webilder/WebilderDesktop.py/connect_to_menu