PyQT, QProcess.readyReadStdout() problem

Discussion in 'Python' started by aljosa, Jul 1, 2005.

  1. aljosa

    aljosa Guest

    part of code:
    >>>

    try:
    self.isdnlog = QProcess(self)
    self.isdnlog.addArgument("/usr/bin/tail")
    self.isdnlog.addArgument("-f")
    self.isdnlog.addArgument("/home/aljosa/qt/isdn.log")
    [...]
    QObject.connect(self.isdnlog, SIGNAL("readyReadStdout()"),
    self.onPhoneCall)
    self.isdnlog.start()
    <<<

    problem is that isdnlog logs 2 or more lines per call, and QProcess
    moves one line per call. is there something like
    QProcess.readLastLine()?

    Aljosa
     
    aljosa, Jul 1, 2005
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Lupe
    Replies:
    3
    Views:
    328
    Lawrence Oluyede
    Aug 27, 2003
  2. ulysses
    Replies:
    4
    Views:
    818
    Werner Schiendl
    Oct 22, 2003
  3. Bulba!

    PyQt installation problem

    Bulba!, Dec 29, 2004, in forum: Python
    Replies:
    0
    Views:
    391
    Bulba!
    Dec 29, 2004
  4. Jorge Godoy
    Replies:
    1
    Views:
    289
    Jorge Godoy
    Aug 10, 2005
  5. Edgar Fuentes

    Help on PyQt4 QProcess

    Edgar Fuentes, Aug 19, 2011, in forum: Python
    Replies:
    6
    Views:
    1,946
    Edgar Fuentes
    Aug 22, 2011
Loading...

Share This Page