def _textEdited(self, txt): words = get_completions(str(txt), paths=self._paths, family_only=self.family_only) self.completions.setStringList(list(reversed(list(words))))
def PackageCompleter(prefix, **kwargs): from rez.packages_ import get_completions return get_completions(prefix)
def PackageFamilyCompleter(prefix, **kwargs): from rez.packages_ import get_completions return get_completions(prefix, family_only=True)
def _eq(prefix, expected_completions): completions = get_completions(prefix) self.assertEqual(set(completions), set(expected_completions))