in reply to Re^3: Tkx treeview setting focus
in thread Tkx treeview setting focus

Your program works for me, if the tree control has focus, and I hit insert, then the newly added item has focus,  $tree->focus($gLast_id) worked

You can give the widget focus with  $tree->g_focus;

Does that help?