code: def setCloseWindow(self, win):
          
          self._setProperty('_NET_CLOSE_WINDOW',
                            [int(time.mktime(time.localtime())), 1], win)
docs: Close the given window (property _NET_CLOSE_WINDOW)
  
          :param win: the window object