my $menu=add_edit_popup($mw, $text); my $but = $mw->Button( -text => "Change me", -command => [\&push_button, $menu] );