'Build a completion list of process names matching text'

def _complete_processes(self, text):

    processes = []
    for info in self._get_complete_info():
        if ((':' in text) or (info['name'] != info['group'])):
            processes.append(('%s:%s' % (info['group'], info['name'])))
            if (('%s:*' % info['group']) not in processes):
                processes.append(('%s:*' % info['group']))
        else:
            processes.append(info['name'])
    return [(p + '    ') for p in processes if p.startswith(text)]
