import time
import subprocess
from PyQt4 import QtGui, QtCore
.............
This function is not working!
@button.clicked.connect
def connectClicked():
button.setEnabled(False)
process = subprocess.Popen("command", shell=True, stderr=subprocess.PIPE, stdout=subprocess.PIPE)
time.sleep(5) # 5 sek (?)
button.setEnabled(True)
................