def click_outside(event):
            """Selects coordinates outside the dialog and updates the corresponding X, Y and Z
            fields in the dialog. Immediately moves the camera to the coordinates on double-click.
            :param event: object: The event to be processed."""
            if event not in self.waypointDialog:
                x, y, z = self.blockFaceUnderCursor[0]
                if y == 0:
                    y = 64
                y += 3
                gotoPanel.X, gotoPanel.Y, gotoPanel.Z = x, y, z

                if event.num_clicks == 2:
                    gotoPanel.goto_coords = True
                    self.waypointDialog.dismiss()
Selects coordinates outside the dialog and updates the corresponding X, Y and Z
            fields in the dialog. Immediately moves the camera to the coordinates on double-click.
            :param event: object: The event to be processed.
leveleditor.py