Re: [python-win32] com events while running wx main loop

2007-04-20 Thread Christian K
Thomas Heller wrote: > Christian K. schrieb: >>> Second, if you are running the exact sample that I posted then it should >>> work >>> for InternetExplorer, and with slight changes also for Outlook. At least >>> it worked for me. >> Well, here it doesn't. > > comtypes uses fairly extensive loggi

Re: [python-win32] com events while running wx main loop

2007-04-20 Thread Thomas Heller
Christian K. schrieb: >> Second, if you are running the exact sample that I posted then it should work >> for InternetExplorer, and with slight changes also for Outlook. At least >> it worked for me. > > Well, here it doesn't. comtypes uses fairly extensive logging calls in certain areas. You c

Re: [python-win32] com events while running wx main loop

2007-04-20 Thread Thomas Heller
Christian K. schrieb: > > I successfully read out the Outlook inbox using comtpyes but finally > switched back to pywin32 because I was not able to interprete the value > of MailItem.CreationTime, > e.g: > obj.Session.Folders['mail.server.com'].Folders['INBOX'].Items.Item(1).CreationTime > which

Re: [python-win32] com events while running wx main loop

2007-04-20 Thread Thomas Heller
Christian K. schrieb: > Thomas Heller wrote: >> Christian K. schrieb: >>> Now I installed comtypes from svn and get this error running your new >>> example: >>> >>> Traceback (most recent call last): >>>File "C:\Dokumente und Einstellungen\ck\Desktop\x.py", line 64, in ? >>> Listener() >>>

Re: [python-win32] com events while running wx main loop

2007-04-20 Thread Christian K.
Thomas Heller wrote: > Christian K. schrieb: >> Now I installed comtypes from svn and get this error running your new >> example: >> >> Traceback (most recent call last): >>File "C:\Dokumente und Einstellungen\ck\Desktop\x.py", line 64, in ? >> Listener() >>File "C:\Dokumente und Einst

Re: [python-win32] com events while running wx main loop

2007-04-19 Thread Thomas Heller
Christian K. schrieb: > > Now I installed comtypes from svn and get this error running your new > example: > > Traceback (most recent call last): >File "C:\Dokumente und Einstellungen\ck\Desktop\x.py", line 64, in ? > Listener() >File "C:\Dokumente und Einstellungen\ck\Desktop\x.py",

Re: [python-win32] com events while running wx main loop

2007-04-18 Thread Christian K.
Thomas Heller wrote: > Christian K. schrieb: >> sorry. I forgot the attachment. >> >> Christian >> >> >> >> >> >> import unittest >> import comtypes.client >> >> import wx >> >> class EventHandler(object): >> """Instances

Re: [python-win32] com events while running wx main loop

2007-04-18 Thread Thomas Heller
Christian K. schrieb: > sorry. I forgot the attachment. > > Christian > > > > > > import unittest > import comtypes.client > > import wx > > class EventHandler(object): > """Instances are called when the COM object

Re: [python-win32] com events while running wx main loop

2007-04-17 Thread Christian K.
sorry. I forgot the attachment. Christian import unittest import comtypes.client import wx class EventHandler(object): """Instances are called when the COM object fires events.""" def __init__(self, view, name): self.view = view self.name = name def __call__(self,

[python-win32] com events while running wx main loop

2007-04-17 Thread Christian K.
Hi, I'm trying to recieve com events in a wxpython application. I modified an example posted here by Thomas Heller some time ago. It seems that the events are not delivered. Am I doing something wrong or is this just a limitation of com/wxPython? Thanks for any hint, Christian ___