#tkinter のボタンをクリックすると起動するpowershell上であるPythonのプログラムを実行できるようにしたいです。インターネット上をあらかた探しましたが解決できませんでした。
あるpythonプログラムとはfunction()のことです。
```python
import tkinter
import os
root = tkinter.Tk()
.
.
.
def function() :
print("hello")
def powershell() :
os.system("start powershell")
function()
Button_1 = Button(root,command=powershell)
.
.
--------------------------------------------------------------------------------------------------------------------------- Button_1を押すとpowershellが起動、function() ("hello"と出力)はその上に実行されるのだ という構想の下かいてみました。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/02/17 11:19
2018/02/17 11:25
2018/02/17 11:28
2018/02/17 12:04
2018/02/17 12:09
2018/02/17 12:10
2018/02/17 13:54