擅长:python、mysql、java
<p>使用PyGTK!<a href="https://github.com/xlab/matchbox-keyboard" rel="nofollow">github</a>包含gtk源代码,您可以这样做。在</p>
<p>实际上,更多地关注github,您可能不需要这样做。键盘允许命令行选项,例如<code>-v, override Absolute positioning on the screen</code>和{<cd2>}(取自github)。您将无法控制z位置(无论它是在您的窗口上方还是下方)。在</p>
<p>如果你真的想要嵌入的感觉,github还说你可以把它嵌入到gtk中,并指向<code>examples/matchbox-keyboard-gtk-embed.c</code>这可能就是你想要的。你可以把它翻译成pygtk。我找到了<a href="http://www.pygtk.org/pygtk2tutorial/sec-PlugsAndSockets.html" rel="nofollow">this</a>,它是关于XEMBED的。我发现了<a href="http://perezdecastro.org/old/embedding-widgets-from-other-processes-with-pygtk.html" rel="nofollow">this too</a>它实际上嵌入了一些东西。最后,我给你指出<a href="http://www.pygtk.org/pygtk2reference/class-gtksocket.html" rel="nofollow">the docs for gtk.socket</a>。在</p>