On 8/17/07, <b class="gmail_sendername">Marcin Kalicinski</b> <<a href="mailto:kalita@poczta.onet.pl">kalita@poczta.onet.pl</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I have an application written in C++ that uses wxWidgets for GUI. I use<br>embedded Python for scripting inside of this application. I want to use<br>wxPython to add GUI to my scripts - because my C++ App uses wxWidgets I
<br>thought it to be easy. The problem is that wxPython knows nothing about<br>wxApp/wxFrame objects created in my C++ application, and insists (by giving<br>me asserts) that I create another wxApp object for wxPython inside my
<br>scripts. Obviously, this is not what I want. I want the scripts to use the<br>same wxApp/wxFrame object that my C++ application already created. More<br>specifically, I want to create dialogs in wxPython that will have my
<br>application wxFrame as parent.<br></blockquote></div><br>I have nooo idea how to do it with pure wx, buut, you could try passing
the handle for the parent via wx.Window.GetHandle() to Python, then
create a reference to it in python via wx.Window_FromHWND(handle). Maybe! Its just a guess :) <br>