Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #73490 > unrolled thread
| Started by | peter.balazovic@emspin.com |
|---|---|
| First post | 2014-06-22 02:15 -0700 |
| Last post | 2014-06-22 11:22 -0400 |
| Articles | 5 — 3 participants |
Back to article view | Back to comp.lang.python
Event handling for COM object with win32com (pywin32) peter.balazovic@emspin.com - 2014-06-22 02:15 -0700
Re: Event handling for COM object with win32com (pywin32) Chris Angelico <rosuav@gmail.com> - 2014-06-22 20:09 +1000
Re: Event handling for COM object with win32com (pywin32) peter.balazovic@emspin.com - 2014-06-22 04:55 -0700
Re: Event handling for COM object with win32com (pywin32) Chris Angelico <rosuav@gmail.com> - 2014-06-22 22:02 +1000
Re: Event handling for COM object with win32com (pywin32) Kevin Walzer <kw@codebykevin.com> - 2014-06-22 11:22 -0400
| From | peter.balazovic@emspin.com |
|---|---|
| Date | 2014-06-22 02:15 -0700 |
| Subject | Event handling for COM object with win32com (pywin32) |
| Message-ID | <8bd5e4fd-22d2-40d5-b13c-022c9e610abf@googlegroups.com> |
Dears,
I have a problem with firing Events and event handling on COM object.
This code works on python console but there is no event fired.
>>> class fmstrEvents(object):
... def OnRecroderDone(self):
... print "Hello OnRecroderDone"
>>> import win32com.client
>>> fm = win32com.client.Dispatch("MCB.PCM")
>>> fm_events = win32com.client.WithEvents(fm,fmstrEvents)
The application fmstr with COM Object "MCB.PCM" is freezing by events handling within python by pywin32.
Do I miss something in code or incorrectly handling the events or COM Object?
Thank you very much.
Peter
[toc] | [next] | [standalone]
| From | Chris Angelico <rosuav@gmail.com> |
|---|---|
| Date | 2014-06-22 20:09 +1000 |
| Message-ID | <mailman.11185.1403431799.18130.python-list@python.org> |
| In reply to | #73490 |
On Sun, Jun 22, 2014 at 7:15 PM, <peter.balazovic@emspin.com> wrote: > This code works on python console but there is no event fired. > >>>> class fmstrEvents(object): > ... def OnRecroderDone(self): > ... print "Hello OnRecroderDone" Is that supposed to say "OnRecroderDone" or "OnRecorderDone"? I can't find any Google hits for the former, other than this exact question (which you seem to have also posted to StackOverflow - I'm counting that as the same), and the latter would be a much more obvious spelling. ChrisA
[toc] | [prev] | [next] | [standalone]
| From | peter.balazovic@emspin.com |
|---|---|
| Date | 2014-06-22 04:55 -0700 |
| Message-ID | <acb5b4dd-a7f9-4f04-a468-592c4b9dbd8f@googlegroups.com> |
| In reply to | #73494 |
On Sunday, June 22, 2014 12:09:51 PM UTC+2, Chris Angelico wrote: > On Sun, Jun 22, 2014 at 7:15 PM, <peter.balazovic@emspin.com> wrote: > > > This code works on python console but there is no event fired. > > > > > >>>> class fmstrEvents(object): > > > ... def OnRecroderDone(self): > > > ... print "Hello OnRecroderDone" > > > > Is that supposed to say "OnRecroderDone" or "OnRecorderDone"? I can't > > find any Google hits for the former, other than this exact question > > (which you seem to have also posted to StackOverflow - I'm counting > > that as the same), and the latter would be a much more obvious > > spelling. > > > > ChrisA You right, this is a typo here - I am sorry for this but event handler does not work... fmstr application is freezing and event handler does not work. I need to restart python to unfreeze my application. Peter
[toc] | [prev] | [next] | [standalone]
| From | Chris Angelico <rosuav@gmail.com> |
|---|---|
| Date | 2014-06-22 22:02 +1000 |
| Message-ID | <mailman.11186.1403438581.18130.python-list@python.org> |
| In reply to | #73495 |
On Sun, Jun 22, 2014 at 9:55 PM, <peter.balazovic@emspin.com> wrote: > You right, this is a typo here - I am sorry for this but event handler does not work... fmstr application is freezing and event handler does not work. I need to restart python to unfreeze my application. > I can't help further, then. I'm not experienced with the COM interface in any language, so I couldn't tell you what's going on. ChrisA
[toc] | [prev] | [next] | [standalone]
| From | Kevin Walzer <kw@codebykevin.com> |
|---|---|
| Date | 2014-06-22 11:22 -0400 |
| Message-ID | <lo6sb7$704$1@dont-email.me> |
| In reply to | #73490 |
On 6/22/14, 5:15 AM, peter.balazovic@emspin.com wrote: > Do I miss something in code or incorrectly handling the events or COM Object? There is a pywin32 mailing list that may be able to offer more help here. -- Kevin Walzer Code by Kevin/Mobile Code by Kevin http://www.codebykevin.com http://www.wtmobilesoftware.com
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web