Determines if a Widget was created for this element. :return: True if a Widget has been created previously (Widget is not None) :rtype: (bool)
(self)
| 1732 | |
| 1733 | |
| 1734 | def _widget_was_created(self): |
| 1735 | """ |
| 1736 | Determines if a Widget was created for this element. |
| 1737 | |
| 1738 | :return: True if a Widget has been created previously (Widget is not None) |
| 1739 | :rtype: (bool) |
| 1740 | """ |
| 1741 | if self.Widget is not None: |
| 1742 | return True |
| 1743 | else: |
| 1744 | if SUPPRESS_WIDGET_NOT_FINALIZED_WARNINGS: |
| 1745 | return False |
| 1746 | |
| 1747 | warnings.warn('You cannot Update element with key = {} until the window.read() is called or finalize=True when creating window'.format(self.Key), UserWarning) |
| 1748 | if not SUPPRESS_ERROR_POPUPS: |
| 1749 | _error_popup_with_traceback('Unable to complete operation on element with key {}'.format(self.Key), |
| 1750 | 'You cannot perform operations (such as calling update) on an Element until:', |
| 1751 | ' window.read() is called or finalize=True when Window created.', |
| 1752 | 'Adding a "finalize=True" parameter to your Window creation will likely fix this.', |
| 1753 | _create_error_message(), |
| 1754 | ) |
| 1755 | return False |
| 1756 | |
| 1757 | def _grab_anywhere_on_using_control_key(self): |
| 1758 | """ |
no test coverage detected