Clear the flag to indicate to re-query or re-select the UI element(s) from hierarchy. alias is refresh() Example: >>> a = poco(text="settings") >>> print(a.exists()) >>> a.refresh() >>> print(a.exists())
(self)
| 860 | return self._do_query() |
| 861 | |
| 862 | def invalidate(self): |
| 863 | """ |
| 864 | Clear the flag to indicate to re-query or re-select the UI element(s) from hierarchy. |
| 865 | |
| 866 | alias is refresh() |
| 867 | |
| 868 | Example: |
| 869 | >>> a = poco(text="settings") |
| 870 | >>> print(a.exists()) |
| 871 | >>> a.refresh() |
| 872 | >>> print(a.exists()) |
| 873 | """ |
| 874 | |
| 875 | self._evaluated = False |
| 876 | self._nodes = None |
| 877 | |
| 878 | # refresh is alias of invalidate |
| 879 | # use poco(xxx).refresh() to force the UI element(s) to re-query |
no outgoing calls