5 |
5 |
6 """ |
6 """ |
7 Module implementing a dialog used by the queue management functions. |
7 Module implementing a dialog used by the queue management functions. |
8 """ |
8 """ |
9 |
9 |
10 from PyQt4.QtCore import pyqtSlot, QProcess |
10 from PyQt4.QtCore import pyqtSlot, QProcess, QCoreApplication |
11 from PyQt4.QtGui import QDialog, QDialogButtonBox, QAbstractItemView, QListWidgetItem, \ |
11 from PyQt4.QtGui import QDialog, QDialogButtonBox, QAbstractItemView, QListWidgetItem, \ |
12 QAbstractButton |
12 QAbstractButton |
13 |
13 |
14 from .Ui_HgQueuesQueueManagementDialog import Ui_HgQueuesQueueManagementDialog |
14 from .Ui_HgQueuesQueueManagementDialog import Ui_HgQueuesQueueManagementDialog |
15 |
15 |
68 self.buttonBox.removeButton(self.buttonBox.button(QDialogButtonBox.Close)) |
68 self.buttonBox.removeButton(self.buttonBox.button(QDialogButtonBox.Close)) |
69 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(False) |
69 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(False) |
70 self.refreshButton = None |
70 self.refreshButton = None |
71 |
71 |
72 self.setWindowTitle(title) |
72 self.setWindowTitle(title) |
|
73 |
|
74 self.show() |
|
75 QCoreApplication.processEvents() |
73 |
76 |
74 self.refresh() |
77 self.refresh() |
75 |
78 |
76 def __getQueuesList(self): |
79 def __getQueuesList(self): |
77 """ |
80 """ |