Python Forum
[Tkinter] identify window
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tkinter] identify window
#5
for master window use withdraw, not destroy.
You will have to capture exit so that you can manually destroy at end
for example, my code add line 11:
import tkinter as tk

class DynamicWindows:
    def __init__(self, parent):
        parent.title('Parent window')
        parent.geometry('300x300+500+500')
        self.startx = 10
        self.starty = 10
        self.all_windows = []
        parent.withdraw()
see: http://effbot.org/zone/tkinter-window-destroy.htm for destroy
Reply


Messages In This Thread
identify window - by DPaul - Feb-16-2019, 08:46 AM
RE: identify window - by Larz60+ - Feb-16-2019, 05:19 PM
RE: identify window - by woooee - Feb-16-2019, 07:14 PM
RE: identify window - by DPaul - Feb-17-2019, 07:44 AM
RE: identify window - by Larz60+ - Feb-17-2019, 04:53 PM
RE: identify window - by DPaul - Feb-18-2019, 07:15 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Interaction between Matplotlib window, Python prompt and TKinter window NorbertMoussy 3 2,755 Mar-17-2024, 09:37 AM
Last Post: deanhystad
  tkinter window and turtle window error 1885 3 8,387 Nov-02-2019, 12:18 PM
Last Post: 1885
  update a variable in parent window after closing its toplevel window gray 5 11,388 Mar-20-2017, 10:35 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020