pyWinAuto: pywinauto.findbestmatch.UniqueDict -- A dictionary subclass that handles making it's keys unique

UniqueDict

A dictionary subclass that handles making it's keys unique


Methods

f __lt__(...) ...

x.__lt__(y) <==> x<y

f __init__(...) ...

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

f __contains__(...) ...

D.__contains__(k) -> True if D has a key k, else False

f __cmp__(...) ...

x.__cmp__(y) <==> cmp(x,y)

f __len__(...) ...

x.__len__() <==> len(x)

f __ne__(...) ...

x.__ne__(y) <==> x!=y

f __getitem__(...) ...

x.__getitem__(y) <==> x[y]

f __gt__(...) ...

x.__gt__(y) <==> x>y

f __eq__(...) ...

x.__eq__(y) <==> x==y

f __delitem__(...) ...

x.__delitem__(y) <==> del x[y]

f __iter__(...) ...

x.__iter__() <==> iter(x)

f __le__(...) ...

x.__le__(y) <==> x<=y

f __ge__(...) ...

x.__ge__(y) <==> x>=y

f __setitem__(self, text, item) ...

Set an item of the dictionary

f FindBestMatches(self, search_text, clean=False, ignore_case=False) ...

Return the best matches for search_text in the items

  • search_text the text to look for
  • clean whether to clean non text characters out of the strings
  • ignore_case compare strings case insensitively

See the source for more information.