[PyKDE] My thinking still wrong?
Tina Isaksen
tina at bestemselv.com
Tue Feb 28 09:12:53 GMT 2006
So I have been playing with Qprocess and have again run into a problem.
I have:
from qt import *
## snipped away most of the code ##
upgradeProcess = QProcess("apt-get")
upgradeProcess = addArgument("upgrade")
upgradeProcess.start()
while upgradeProcess.canReadLineStdout():
self.mainTextWindow.append(upgradeProcess.readLineSrdout())
qApp.processEvents()
But I get this error: "The debugged program raised the exception
unhandled NameError
"global name 'addArgument' is not defined"
I get the same with 'setArguments()'
As usual I have placed the entire code and all related files at
http://www.bestemselv.com/admin_priv/tinaptpkg.tar.bz2
should it be needed...
Thanks
Tina
More information about the PyQt
mailing list