def item text, mnem=nil, &block
      #$log.debug "YYYY inside M: menuitem text #{text}  "
      m =  MenuItem.new text, mnem, &block 
      add m
      return m
    end
def item text, mnem=nil, &block
      #$log.debug "YYYY inside M: menuitem text #{text}  "
      m =  MenuItem.new text, mnem, &block 
      add m
      return m
    end
add item method which could be used from blocks
 add 2010-09-10 12:20 simplifying