Re: python wia and RegisterEvent

2010-04-20 Thread News123
Hi Roger, Roger Upole wrote: > gelonida wrote: > ... >> while True: >> print "sleep" >> time.sleep(10) >> >> When I plug / unplug a USB WIA device nothing shows up. >> My C# implementation prints messages on wiaEventDeviceConnected / >> wiaEventDeviceDisconnected events if I register them.

Re: python wia and RegisterEvent

2010-04-18 Thread Roger Upole
gelonida wrote: ... > while True: > print "sleep" > time.sleep(10) > >When I plug / unplug a USB WIA device nothing shows up. > My C# implementation prints messages on wiaEventDeviceConnected / > wiaEventDeviceDisconnected events if I register them. > > What am I missing? You need to be pr

Re: python wia and RegisterEvent

2010-04-16 Thread gelonida
Hi Mark, On Apr 16, 3:16 am, Mark Hammond wrote: > On 16/04/2010 7:15 AM,gelonidawrote: > > The model used by pywin32 is more "low level" than that exposed by some > of the MS languages.  You probably need something closer to: > >   class MgrHandlerClass: >        def OnEvent(self, EventID=defaul

Re: python wia and RegisterEvent

2010-04-15 Thread Mark Hammond
On 16/04/2010 7:15 AM, gelonida wrote: Hi, I'd like to register an event in order to be informed, whenever a Windows WIA device is connected or disconnected. In python I can use WIA devices, but I don't know how to register events I have existing C# code, which works and looks like. class

python wia and RegisterEvent

2010-04-15 Thread gelonida
Hi, I'd like to register an event in order to be informed, whenever a Windows WIA device is connected or disconnected. In python I can use WIA devices, but I don't know how to register events I have existing C# code, which works and looks like. class MgrHandlerClass { public void