code: def close(self):
          '''close the window'''
          self.close_window.release()
          count=0
          while self.child.is_alive() and count < 30: # 3 seconds to die...
              time.sleep(0.1) #?
              count+=1
  
          if self.child.is_alive():
              self.child.terminate()
  
          self.child.join(f close(self):
          '''close the window'''
          self.close_window.release()
          count=0
          while self.child.is_alive() and count < 30: # 3 seconds to die...
              time.sleep(0.1) #?
              count+=1
  
          if self.child.is_alive():
              self.child.terminate()
  
          self.child.join()
docs: close the window