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

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Leo Lee

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

    I need a window's handle to be passed to external c++.
    Thanks in advance


  • Paul McNett

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

    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

    Comment

    • Mike Driscoll

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

      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

      Comment

      • Leo Lee

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

        Thank you , Mike.
        "Mike Driscoll" <kyosohma@gmail .com>
        ??????:ad849714-c6a9-4308-a997-d6d1d43a915b@t5 4g2000hsg.googl egroups.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


        Comment

        Working...