11 import io |
11 import io |
12 |
12 |
13 from PyQt4.QtCore import QProcess, QProcessEnvironment, QObject, QByteArray, \ |
13 from PyQt4.QtCore import QProcess, QProcessEnvironment, QObject, QByteArray, \ |
14 QCoreApplication, QThread |
14 QCoreApplication, QThread |
15 from PyQt4.QtGui import QDialog |
15 from PyQt4.QtGui import QDialog |
16 |
|
17 from .HgClientPromptDialog import HgClientPromptDialog |
|
18 |
16 |
19 import Preferences |
17 import Preferences |
20 |
18 |
21 |
19 |
22 class HgClient(QObject): |
20 class HgClient(QObject): |
279 Private method to prompt the user for some input. |
277 Private method to prompt the user for some input. |
280 |
278 |
281 @param size maximum length of the requested input (integer) |
279 @param size maximum length of the requested input (integer) |
282 @param message message sent by the server (string) |
280 @param message message sent by the server (string) |
283 """ |
281 """ |
|
282 from .HgClientPromptDialog import HgClientPromptDialog |
284 input = "" |
283 input = "" |
285 dlg = HgClientPromptDialog(size, message) |
284 dlg = HgClientPromptDialog(size, message) |
286 if dlg.exec_() == QDialog.Accepted: |
285 if dlg.exec_() == QDialog.Accepted: |
287 input = dlg.getInput() + '\n' |
286 input = dlg.getInput() + '\n' |
288 return input |
287 return input |