Qwt is a C++ library, the examples are C++ code. You need to install a C++ development environment and have to compile and link the Qwt examples before you can execute them.
But maybe you are looking for PyQwt. It offers Python Bindings for the Qwt library.
HTH,
Uwe
Bookmarks