git://git.onelab.eu
/
sface.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add status label to mainscreen.
[sface.git]
/
sface
/
sfiprocess.py
diff --git
a/sface/sfiprocess.py
b/sface/sfiprocess.py
index
ba9a5c8
..
9fd56a9
100644
(file)
--- a/
sface/sfiprocess.py
+++ b/
sface/sfiprocess.py
@@
-1,4
+1,5
@@
+import os
from PyQt4.QtCore import *
from sface.sficonfig import config
from PyQt4.QtCore import *
from sface.sficonfig import config
@@
-16,7
+17,7
@@
class SfiProcess(QObject):
def __init__(self, parent=None):
QObject.__init__(self, parent)
def __init__(self, parent=None):
QObject.__init__(self, parent)
- def __init_command(self, args)
+ def __init_command(self, args)
:
self.args = QStringList()
for arg in args:
self.args << QString(arg)
self.args = QStringList()
for arg in args:
self.args << QString(arg)
@@
-24,7
+25,7
@@
class SfiProcess(QObject):
self.exe = find_executable("sfi.py")
self.process = QProcess()
self.exe = find_executable("sfi.py")
self.process = QProcess()
- finished = pyqtSignal()
+
self.
finished = pyqtSignal()
self.connect(self.process, SIGNAL("finished(int, QProcess::ExitStatus)"),
self.finished)
self.connect(self.process, SIGNAL("finished(int, QProcess::ExitStatus)"),
self.finished)
@@
-57,7
+58,7
@@
class SfiProcess(QObject):
self.start()
def start(self):
self.start()
def start(self):
- self.process(self.exe, self.args)
+ self.process
.start
(self.exe, self.args)
def readOutput(self):
if self.process.state() == QProcess.NotRunning:
def readOutput(self):
if self.process.state() == QProcess.NotRunning: