Should be NEVER called directly by the user. The user can call Window.read(timeout=0) to get same effect :return: (event, values). (event or timeout_key or None, Dictionary of values or List of values from all elements in the Window) :rtype: Tuple[(Any), Dict[Any, Any] |
(self)
| 10805 | return self.ReturnValues |
| 10806 | |
| 10807 | def _ReadNonBlocking(self): |
| 10808 | """ |
| 10809 | Should be NEVER called directly by the user. The user can call Window.read(timeout=0) to get same effect |
| 10810 | |
| 10811 | :return: (event, values). (event or timeout_key or None, Dictionary of values or List of values from all elements in the Window) |
| 10812 | :rtype: Tuple[(Any), Dict[Any, Any] | List[Any] | None] |
| 10813 | """ |
| 10814 | if self.TKrootDestroyed: |
| 10815 | try: |
| 10816 | self.TKroot.quit() |
| 10817 | self.TKroot.destroy() |
| 10818 | except: |
| 10819 | pass |
| 10820 | # print('DESTROY FAILED') |
| 10821 | return None, None |
| 10822 | if not self.Shown: |
| 10823 | self._Show(non_blocking=True) |
| 10824 | try: |
| 10825 | rc = self.TKroot.update() |
| 10826 | except: |
| 10827 | self.TKrootDestroyed = True |
| 10828 | Window._DecrementOpenCount() |
| 10829 | # _my_windows.Decrement() |
| 10830 | # print("read failed") |
| 10831 | # return None, None |
| 10832 | if self.RootNeedsDestroying: |
| 10833 | # print('*** DESTROYING LATE ***', self.ReturnValues) |
| 10834 | self.TKroot.destroy() |
| 10835 | Window._DecrementOpenCount() |
| 10836 | # _my_windows.Decrement() |
| 10837 | self.Values = None |
| 10838 | self.LastButtonClicked = None |
| 10839 | return None, None |
| 10840 | return _BuildResults(self, False, self) |
| 10841 | |
| 10842 | def _start_autoclose_timer(self): |
| 10843 | duration = DEFAULT_AUTOCLOSE_TIME if self.AutoCloseDuration is None else self.AutoCloseDuration |
no test coverage detected