def enableLogging(self, enable=True):
        if enable:
            self.registerAll(self.logMessage)
        else:
            self.unregisterAll(self.logMessage)
        return enable
Returns a Menu object that generates the appropriate context
dataset/ETHPy150Open CarterBain/Medici/ib/opt/dispatcher.py/Dispatcher.enableLogging--crossover with--dataset/ETHPy150Open enthought/traitsui/traitsui/wx/table_model.py/TableModel.get_cell_context_menu