我有一些bash脚本,一些简单的复制,搜索,写行到文件等等.
我是Ubuntu.我在谷歌搜索过,但似乎每个人都在python上这样做.
我可以在python上做这些,但由于我不是python程序员,我只知道基础知识.
我不知道如何从python上编写的GUI调用sh脚本.
如果有人有链接或要说的话,请删除一行.
问候,
马里奥
最佳答案
Is there a way of having a GUI for bash scripts?
您可以尝试使用Zenity.
a tool that allows you to display GTK dialog boxes in commandline and shell scripts.
I have no idea of how calling a sh script from a GUI written on python.
您可以使用subprocess
执行此操作.
就个人而言,我建议您学习Python并从Python调用脚本,而不是尝试在Bash中编写GUI.