Ejemplo n.º 1
0
 def _textEdited(self, txt):
     words = get_completions(str(txt),
                             paths=self._paths,
                             family_only=self.family_only)
     self.completions.setStringList(list(reversed(list(words))))
Ejemplo n.º 2
0
def PackageCompleter(prefix, **kwargs):
    from rez.packages_ import get_completions
    return get_completions(prefix)
Ejemplo n.º 3
0
def PackageFamilyCompleter(prefix, **kwargs):
    from rez.packages_ import get_completions
    return get_completions(prefix, family_only=True)
Ejemplo n.º 4
0
 def _eq(prefix, expected_completions):
     completions = get_completions(prefix)
     self.assertEqual(set(completions), set(expected_completions))
Ejemplo n.º 5
0
 def _eq(prefix, expected_completions):
     completions = get_completions(prefix)
     self.assertEqual(set(completions), set(expected_completions))
Ejemplo n.º 6
0
def PackageFamilyCompleter(prefix, **kwargs):
    from rez.packages_ import get_completions
    return get_completions(prefix, family_only=True)
Ejemplo n.º 7
0
def PackageCompleter(prefix, **kwargs):
    from rez.packages_ import get_completions
    return get_completions(prefix)
Ejemplo n.º 8
0
 def _textEdited(self, txt):
     words = get_completions(str(txt),
                             paths=self._paths,
                             family_only=self.family_only)
     self.completions.setStringList(list(reversed(list(words))))