def _hotkeyPressed(self, dev, changes, name):
    self.setSourceActive(name, (not self.sourceActive(name)))
def _hotkeyPressed(self, dev, changes, name):
    self.setSourceActive(name, (not self.sourceActive(name)))