Restores a previously packated widget which will make it visible again. If no settings were saved, then the widget is assumed to have not been unpacked and will not try to pack it again :param alternate_widget: Widget to use that's different than the one defined in Elemen
(self, alternate_widget=None)
| 1918 | pass |
| 1919 | |
| 1920 | def _pack_restore_settings(self, alternate_widget=None): |
| 1921 | """ |
| 1922 | Restores a previously packated widget which will make it visible again. |
| 1923 | If no settings were saved, then the widget is assumed to have not been unpacked and will not try to pack it again |
| 1924 | |
| 1925 | :param alternate_widget: Widget to use that's different than the one defined in Element.Widget. These are usually Frame widgets |
| 1926 | :type alternate_widget: (tk.Widget) |
| 1927 | """ |
| 1928 | |
| 1929 | # if there are no saved pack settings, then assume it hasnb't been packaed before. The request will be ignored |
| 1930 | if self.pack_settings is None: |
| 1931 | return |
| 1932 | |
| 1933 | widget = alternate_widget if alternate_widget is not None else self.Widget |
| 1934 | if widget is not None: |
| 1935 | widget.pack(**self.pack_settings) |
| 1936 | |
| 1937 | def update(self, *args, **kwargs): |
| 1938 | """ |