By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,199 Members | 1,077 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,199 IT Pros & Developers. It's quick & easy.

help with event handling

P: 3
Hi this is my first post here. Seems like a well informed and popular forum. I am currently learning python for a project in work involving the testing of COM components. I need to write some event handlers and having used a lot of C# and Java i was wondering if there is a similar way of creating, subscribing to and handling events. I have looked for articles and tutorials but have not had much joy. If anyone could point me in the direction of some tutorials of provide some info i would be very grateful.
Thanks
Jun 4 '07 #1
Share this Question
Share on Google+
4 Replies


bartonc
Expert 5K+
P: 6,596
Hi this is my first post here. Seems like a well informed and popular forum. I am currently learning python for a project in work involving the testing of COM components. I need to write some event handlers and having used a lot of C# and Java i was wondering if there is a similar way of creating, subscribing to and handling events. I have looked for articles and tutorials but have not had much joy. If anyone could point me in the direction of some tutorials of provide some info i would be very grateful.
Thanks
Hello, jimigoon. You and I are in pretty much the same boat. I've recently been asked to add a web-cam to a project that is (or was) pretty near completion. I've found all the parts that I need, but require a better understanding of the win32com package. I've been searching the web for a while now. It seems that all the tutorial out there are at least a few years old. I suspect that is because the pythonWin project has been commercialized through book sales and experts are willing to defer to Mr. Hammond's need to make a living. I broke down and order the latest book and it's due to arrive in several days. Give me a couple of days after that to get up to speed and we can have ourselves an unofficial win23com python forum. 'Til then, some of the links in the docs (Start->Programs->Python 2.x->Python for Windows Documentation) are useful to a limited degree.

I hope that you stick around and we can figure this stuff out together.
Thanks for joining,
Barton
Jun 4 '07 #2

P: 3
Cheers Barton, sounds like a good idea. I've been using the win32com module for the my project but i'm definately no expert. Just been using it to create instances of the COM components vis Dispatch. Anyway regarding events the only ino i seem to find is to do with GUI programming which isn't really what i need. Anyway i'm gonna work through it and hopefully i will something wil be relevant. Will let you know how i get on.
Jun 4 '07 #3

bartonc
Expert 5K+
P: 6,596
Cheers Barton, sounds like a good idea. I've been using the win32com module for the my project but i'm definately no expert. Just been using it to create instances of the COM components vis Dispatch. Anyway regarding events the only ino i seem to find is to do with GUI programming which isn't really what i need. Anyway i'm gonna work through it and hopefully i will something wil be relevant. Will let you know how i get on.
The OP of this thread had dug up something call pyhook. I played with if for a while but didn't do doc research nor tutorial search. Seems interesting, though.
Jun 4 '07 #4

P: 3
The OP of this thread had dug up something call pyhook. I played with if for a while but didn't do doc research nor tutorial search. Seems interesting, though.
I'll take a look a little later. Thanks mate
Jun 4 '07 #5

Post your reply

Sign in to post your reply or Sign up for a free account.