Use this method to cause your layout to built into a real tkinter window. In reality this method is like Read(timeout=0). It doesn't block and uses your layout to create tkinter widgets to represent the elements. Lots of action! :return: Returns 'self' so that met
(self)
| 10844 | self.TKAfterID = self.TKroot.after(int(duration * 1000), self._AutoCloseAlarmCallback) |
| 10845 | |
| 10846 | def finalize(self): |
| 10847 | """ |
| 10848 | Use this method to cause your layout to built into a real tkinter window. In reality this method is like |
| 10849 | Read(timeout=0). It doesn't block and uses your layout to create tkinter widgets to represent the elements. |
| 10850 | Lots of action! |
| 10851 | |
| 10852 | :return: Returns 'self' so that method "Chaining" can happen (read up about it as it's very cool!) |
| 10853 | :rtype: (Window) |
| 10854 | """ |
| 10855 | |
| 10856 | if self.TKrootDestroyed: |
| 10857 | return self |
| 10858 | self.finalize_in_progress = True |
| 10859 | |
| 10860 | self.Read(timeout=1) |
| 10861 | |
| 10862 | if self.AutoClose: |
| 10863 | self.auto_close_timer_needs_starting = True |
| 10864 | # add the window to the list of active windows |
| 10865 | Window._active_windows[self] = Window.hidden_master_root |
| 10866 | if self.repeating_timer_ms is not None: |
| 10867 | self.timer_start(self.repeating_timer_ms, repeating=True) |
| 10868 | return self |
| 10869 | # OLD CODE FOLLOWS |
| 10870 | if not self.Shown: |
| 10871 | self._Show(non_blocking=True) |
| 10872 | try: |
| 10873 | rc = self.TKroot.update() |
| 10874 | except: |
| 10875 | self.TKrootDestroyed = True |
| 10876 | Window._DecrementOpenCount() |
| 10877 | print('** Finalize failed **') |
| 10878 | # _my_windows.Decrement() |
| 10879 | # return None, None |
| 10880 | return self |
| 10881 | |
| 10882 | def refresh(self): |
| 10883 | """ |
no test coverage detected