def setLearning(self, learningEnabled):
<EOL>if hasattr(self, "<STR_LIT>"):<EOL><INDENT>self._learningEnabled = learningEnabled<EOL><DEDENT>
Set whether learning is enabled.

        :param learningEnabled: (bool) whether learning should be enabled