473,395 Members | 1,658 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

help with event handling

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
4 2201
bartonc
6,596 Expert 4TB
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
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
6,596 Expert 4TB
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
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

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

Similar topics

7
by: Pavils Jurjans | last post by:
Hallo, I have been programming for restricted environments where Internet Explorer is a standard, so I haven't stumbled upon this problem until now, when I need to write a DOM-compatible code. ...
1
by: Covad | last post by:
Hi all, For some reason my change() function is only called when the page loads. I'd much rather it gets called when the select changes. Here's the code: window.onload = init; function...
4
by: Eric | last post by:
How can I dynamically assign an event to an element? I have tried : (myelement is a text input) document.getElementById('myelement').onKeyUp = "myfnc(param1,param2,param3)"; ...
8
by: Mark | last post by:
Hi, I'm looking for some ideas on how to build a very simple Event processing framework in my C++ app. Here is a quick background ... I'm building a multithreaded app in C++ (on Linux) that...
11
by: milkyway | last post by:
Hello, I have an HTML page that I am trying to import 2 .js file (I created) into. These files are: row_functions.js and data_check_functions.js. Whenever I bring the contents of the files into...
3
by: Steve Long | last post by:
Hello, I have a VB.NET class that raises a MapSet event that passes an argument of type interop.MapObjects2.MapClass. I have a C# class that inherits from this VB.NET class. How can I handle the...
1
by: Shourie | last post by:
I've noticed that none of the child controls events are firing for the first time from the dynamic user control. Here is the event cycle. 1) MainPage_load 2) User control1_Load user clicks a...
2
by: Paul E. Orman | last post by:
I have a piece of VB code (.NET 1.1 - VB 2003) that loads data from a database through a timer. So the timer is setup and from it I call the procedure that loads the latest records from the...
4
by: slikrik98 | last post by:
Greetings, I have an application that subscribes to an intensive data feed, constantly receiving messages, and then routes those messages to various "listeners." My first attempt was to just...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.