[pygtk] Retrieving window Handler
John Ehresman
jpe at wingware.com
Thu Dec 1 04:00:05 WST 2005
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