I am using below code to create a tkinter window and then close the window after clicking on ok button. my code runs perfectly on windows and linux os but on mac os after clicki