[PyQt] Run external command and show stdout in QListView (real time)

Alfredo Junior junixrj at yahoo.com
Thu Sep 11 15:46:02 BST 2014


I'm trying to execute a external command and get the stdout and show in real time in a QListView
My example code: http://dpaste.com/352EX9M
  
          
dpaste: 352EX9M
#!/usr/bin/env python
#-*- coding: utf-8 -*- import os, sys
from PyQt4 import QtCore, QtGui, uic # MainWindow
class Init(QtGui.QMainWindow): def __init__(self): super(Init, self).__init__() self.window = uic.loadUi(os.path.join(os.getcwd(), "ui/main.ui"), sel...  
View on dpaste.com Preview by Yahoo  
  
It is "working", but not in real time
Some tip?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20140911/80d00ec5/attachment.html>


More information about the PyQt mailing list