on_click give a pointer to the clicked Panel as parameter:

function_choose(clicked_panel)
{
clicked_panel.pos_x = ...;
...
}

Is all explained in the manual (search for on_click), please search first there before you ask here!!