Answer the question
In order to leave comments, you need to log in
How to call a terminal in a pyqt application and execute a command in it?
There is a desktop mini-application for linux with a button:
#!/usr/bin/python
# coding=utf-8
import sys
from qt import *
a = QApplication(sys.argv)
# Наша функция, которая будет вызвана при нажатии на кнопку
#создание кнопки
btn = QPushButton("Выполнить",None)
#назначить обработчик
a.setMainWidget(btn)
btn.show()
a.exec_loop()
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question