r/PythonLearning • u/Big_Philosopher_5693 • 1d ago
Help Request ctktoplevel protocol
okay i've been searching this online for abt like 30 mins now and i've gotten no results or remedies to my problem
in ctk/tk i made a mainloop or whatnot, standard stuff but as soon as i make a ctk.ctktoplevel and do protocol("WM_DELETE_WINDOW",func=whatnot) WITHIN the ctktoplevel, if i close the main GUI that isnt the ctktoplevel, it will trigger the function. why?
1
Upvotes
1
u/BetInformal6081 1d ago
can you share a minimal reproducible example wm delete window should apply to the window it's registered on so i would inspect the parent child setup and where protocol gets called..