Show terminal output in a gui window using python Gtk

前端 未结 3 2073
误落风尘
误落风尘 2021-02-10 15:31

I am developing a software and in that I want a window, that will display the output thrown by the terminal (like a package manager does ). Example, if i give the install comman

3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-02-10 16:05

    You can use the subprocess module and the os module to get back the terminal output.You can check this question.

提交回复
热议问题