def doit1(self, keysym): window = find_window_cached(self.match_mplayer) if window != None: send_key(window, keysym)
def doit2(self, keysym): window = find_window_cached(self.match_xmms) if window != None: send_key(window, keysym)