Oh wait, oops, I misread your code, sorry about that. Can you post the main function of your program? As it is it looks like it's supposed to work. The only reason it wouldn't work would probably be because you haven't started your event loop or something. Hope this helps! Benjamin