code: def popat(*args):
      
      if len(args) == 2 and isinstance(args[0], int) and isinstance(args[1], int):
          # popat(x,y)
          Settings.PopupLocation = Location(args[0], args[1])
      elif len(args) == 1 and isinstance(args[0], Location):
          # popat(location)
          Settings.PopupLocation = args[0]
      elif len(args) == 1 and isinstance(args[0], Region):
          Settings.PopupLocation = args[0].getCenter()
      elif len(args) == 0:
          Settings.PopupLocation = SCREEN.getCenter()
      else:
          raise TypeError("Unrecognized parameter(s) for popat")
docs: Convenience function. Sets the popup location (currently not used).