Fw: [pygtk] Retrieving window Handler
Nicholas
nicholas at itarget.com.br
Thu Dec 1 04:04:47 WST 2005
I'm sorry John, but I didn't understand what you mean with
win.window.handle... There is such a object like this on native python ?
> ----- Original Message -----
> From: "John Ehresman" <jpe em wingware.com>
> To: "Nicholas" <nicholas em itarget.com.br>
> Cc: <pygtk em daa.com.au>
> Sent: Wednesday, November 30, 2005 6:00 PM
> Subject: Re: [pygtk] Retrieving window Handler
>
>
>> Nicholas wrote:
>>> And for this, I use the Twain Module for Python... And in the method
>>> 'twain.SourceManager' he use it. And I'm looking for something like this
>>> in PyGtk...
>>>
>>> http://twainmodule.sourceforge.net/docs/quickstarttk.html (twain module
>>> using tk)
>>> http://twainmodule.sourceforge.net/docs/quickstart.html (using wxPython)
>>
>> This is one of the few instances where you do need the native win32
>> handle. I'd suggest creating a window (possibly a gtk.Invisible()) and
>> keeping it around for as long as the program runs. If win is a
>> gtk.Window object, the win32 handle can be obtained via win.window.handle
>> after the window is realized.
>>
>> Note that I've never used twain with or without pygtk, so this may not
>> work.
>>
>> Good luck,
>>
>> John
>>
>
More information about the pygtk
mailing list