7 Module implementing a dialog to show the output of the hg annotate command. |
7 Module implementing a dialog to show the output of the hg annotate command. |
8 """ |
8 """ |
9 |
9 |
10 import os |
10 import os |
11 |
11 |
12 from PyQt4.QtCore import pyqtSlot, QProcess, QTimer, Qt |
12 from PyQt4.QtCore import pyqtSlot, QProcess, QTimer, Qt, QCoreApplication |
13 from PyQt4.QtGui import QDialog, QDialogButtonBox, QFont, QHeaderView, \ |
13 from PyQt4.QtGui import QDialog, QDialogButtonBox, QFont, QHeaderView, \ |
14 QTreeWidgetItem, QLineEdit |
14 QTreeWidgetItem, QLineEdit |
15 |
15 |
16 from E5Gui import E5MessageBox |
16 from E5Gui import E5MessageBox |
17 |
17 |
56 else: |
56 else: |
57 self.process = QProcess() |
57 self.process = QProcess() |
58 self.process.finished.connect(self.__procFinished) |
58 self.process.finished.connect(self.__procFinished) |
59 self.process.readyReadStandardOutput.connect(self.__readStdout) |
59 self.process.readyReadStandardOutput.connect(self.__readStdout) |
60 self.process.readyReadStandardError.connect(self.__readStderr) |
60 self.process.readyReadStandardError.connect(self.__readStderr) |
|
61 |
|
62 self.show() |
|
63 QCoreApplication.processEvents() |
61 |
64 |
62 def closeEvent(self, e): |
65 def closeEvent(self, e): |
63 """ |
66 """ |
64 Private slot implementing a close event handler. |
67 Private slot implementing a close event handler. |
65 |
68 |