>Frameworks are just a set of libraries that play nice.
Many times when people talk about the difference between frameworks and libraries, they are talking about which code is driving the program. I think this is the case here.
An overly simplified example of the difference is that, with a library, your code calls the library. With a framework, the framework calls your code.