#make this change... #$lbox->g_bind('' , sub { clic() }); $mw->g_bind('' , sub { clic() });