pygtk如何将外部应用程序嵌入我的pygtk GUI中 [英] pygtk how to embed external application within my pygtk GUI

查看:86
本文介绍了pygtk如何将外部应用程序嵌入我的pygtk GUI中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在设计pygtk GUI,并希望将外部应用程序嵌入其中。

I'm desiging a pygtk GUI and want to embed an external application into it.

有人知道如何做到吗?

推荐答案

这取决于您要嵌入到哪个应用程序中,但是如果另一个应用程序是GTK应用程序(或支持XEMBED的应用程序)协议),则应该可以使用 gtk.Plug gtk.Socket 。 PyGTK教程的一节说明了如何执行此操作:

It depends on what application you are trying to embed into yours, but if the other app is a GTK app (or one that supports the XEMBED protocol), you should be able to do this with gtk.Plug and gtk.Socket. The PyGTK tutorial has a section explaining how to do this:

http://www.pygtk.org/pygtk2tutorial/sec-PlugsAndSockets.html

这篇关于pygtk如何将外部应用程序嵌入我的pygtk GUI中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆