[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyQt] QProcess Persistence
From: Phil Thompson <phil () riverbankcomputing ! com>
Date: 2011-10-27 17:28:09
Message-ID: 2b18b0cfa843caf69a52a7479088f00b () localhost
[Download RAW message or body]
On Thu, 27 Oct 2011 21:00:45 +0800, Dominic Drane
<dom@reality-debug.co.uk>
wrote:
> I'm having problems with QProcess, I'd like to rlogin into a machine at
the
> start of the process and then write commands into stdin but as soon as I
> call the following (I'm on a linux box):
>
> from PyQt4 import QtGui, QtCore
>
> class TestWindow(QtGui.QDialog):
>
> def __init__(self):
>
> QtGui.QDialog.__init__(self)
>
> proc = QtCore.QProcess()
>
> proc.start("rlogin membrane")
>
> proc.write("ooffice")
>
> win = TestWindow()
> win.show()
>
> The process.write() method doesn't appear to be called. Any ideas?
>
> Thanks
Make sure you keep a reference to the QProcess instance.
Phil
_______________________________________________
PyQt mailing list PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic