擅长:python、mysql、java
<p>您可以<a href="https://wiki.python.org/moin/TkInter" rel="nofollow noreferrer">Tkinter</a>创建GUI,并为每个按钮创建一个运行python脚本的函数,如下所示:</p>
<pre><code># Create the button
button1 = Button \
(root, text='Start script1!', command=lambda: script1())
def script1():
os.system('python ~/path/to/script1.py')
def script2():
os.system('python ~/path/to/script2.py')
</code></pre>