擅长:python、mysql、java
<p>看起来您需要一个GUI工具箱来完成这一点,<a href="http://svn.python.org/view/python/trunk/Lib/idlelib/macosxSupport.py?revision=HEAD&view=markup" rel="nofollow noreferrer">idlelib/macosxSupport.py</a>中有一个示例</p>
<pre><code>def doOpenFile(*args):
for fn in args:
flist.open(fn)
# The command below is a hook in aquatk that is called whenever the app
# receives a file open event. The callback can have multiple arguments,
# one for every file that should be opened.
root.createcommand("::tk::mac::OpenDocument", doOpenFile)
</code></pre>
<p>Qt也有<a href="http://doc.trolltech.com/qq/qq18-macfeatures.html" rel="nofollow noreferrer">support</a>。在</p>