By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,731 Members | 1,123 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,731 IT Pros & Developers. It's quick & easy.

wxPython: How can I get window's HANDLE in wxPython.

P: n/a
I need a window's handle to be passed to external c++.
Thanks in advance
Jul 3 '08 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Leo Lee wrote:
I need a window's handle to be passed to external c++.
Thanks in advance
import wx
help(wx.Window.GetHandle)

"""
GetHandle(*args, **kwargs) unbound wx._core.Window method
GetHandle(self) -long

Returns the platform-specific handle (as a long integer) of the
physical window. On wxMSW this is the win32 window handle, on wxGTK
it is the XWindow ID, and on wxMac it is the ControlRef.
"""

Paul
Jul 3 '08 #2

P: n/a
On Jul 2, 8:40*pm, "Leo Lee" <lxz3...@yahoo.com.cnwrote:
I need a window's handle to be passed to external c++.
Thanks in advance
Are you talking about a wxPython wx.Window object or an external
window handle? If the latter, then I recommend asking about that on
the PyWin32 user's group. Otherwise, follow Paul's suggestion.

Mike
Jul 3 '08 #3

P: n/a
Thank you , Mike.
"Mike Driscoll" <ky******@gmail.com>
??????:ad**********************************@t54g20 00hsg.googlegroups.com...
On Jul 2, 8:40 pm, "Leo Lee" <lxz3...@yahoo.com.cnwrote:
I need a window's handle to be passed to external c++.
Thanks in advance
Are you talking about a wxPython wx.Window object or an external
window handle? If the latter, then I recommend asking about that on
the PyWin32 user's group. Otherwise, follow Paul's suggestion.

Mike
Jul 17 '08 #4

This discussion thread is closed

Replies have been disabled for this discussion.