Hello all,<br> This is my first post to this mailing list.<br><br> Our requirement is to invoke a Tkinter python panel from a C++ GUI app where both GUI windows would run in 2 separate threads. We have written a sample PyQt application which calls this Tk panel using something like this:<br><br>class TkPanel(threading.Thread):<br>  def run(self):<br>     # call showPanel<br><br>def showPanel():<br>    # create window = Tk.Tk()<br>   window.mainloop()<br><br>def start():<br>    t = TkPanel()<br>    t.start()<br><br>Now we call this from our main python code:<br><br>def startPanel(self):<br>   import tkPanel<br>   tkPanel.start() # this calls tkwindow.mainloop() in a separate thread.<br><br>This works absolutely fine when the invoking app is Python. However, we are having problems when the invoking app is in C/C++ and we use a similar logic.<br><br>My question boils down to this:<br><br> If I have code in C++ that has to invoke a Python-tk panel such that the panel runs in its 
 own thread, what is the best approach?<br><br>I tried studying the GIL and acquiring releasing/locks, but I must be doing something wrong. Any help would be greatly appreciated!<br><br>Thanks!<br>  <br><br>Raj<br>http://www.rajorshi.net/blog<br><br><div style="border-top:1px dashed #ccc; border-bottom:1px dashed #ccc; padding:5px;"><a href="http://mail.in.com/mails/new_reg.php?utm_source=invite&utm_medium=outgoing" style="font:13px arial; color:#1E56A1; text-decoration:none;">Dear <b>python-list!</b> Get Yourself a cool, short <b>@in.com</b> Email ID now!</a></div>