def deactivate_module(self, name, win):
        if not name in self.mods:
            Logger.warning('Modules: Module <%s> not found' % name)
            return
        if not 'module' in self.mods[name]:
            return

        module = self.mods[name]['module']
        if self.mods[name]['activated']:
            module.stop(win, self.mods[name]['context'])
            self.mods[name]['activated'] = False
Deactivate a module from a window
dataset/ETHPy150Open kivy/kivy/kivy/modules/__init__.py/ModuleBase.deactivate_module