UI/EmailDialog.py

branch
Py2 comp.
changeset 3060
5883ce99ee12
parent 3058
0a02c433f52d
parent 3039
8dd0165d805d
child 3145
a9de05d4a22f
equal deleted inserted replaced
3058:0a02c433f52d 3060:5883ce99ee12
308 res = E5MessageBox.retryAbort( 308 res = E5MessageBox.retryAbort(
309 self, 309 self,
310 self.trUtf8("Send bug report"), 310 self.trUtf8("Send bug report"),
311 self.trUtf8( 311 self.trUtf8(
312 """<p>Authentication failed.<br>Reason: {0}</p>""") 312 """<p>Authentication failed.<br>Reason: {0}</p>""")
313 .format(errorStr), 313 .format(errorStr),
314 E5MessageBox.Critical) 314 E5MessageBox.Critical)
315 if res: 315 if res:
316 return self.__sendmail(msg) 316 return self.__sendmail(msg)
317 else: 317 else:
318 return False 318 return False
334 res = E5MessageBox.retryAbort( 334 res = E5MessageBox.retryAbort(
335 self, 335 self,
336 self.trUtf8("Send bug report"), 336 self.trUtf8("Send bug report"),
337 self.trUtf8( 337 self.trUtf8(
338 """<p>Message could not be sent.<br>Reason: {0}</p>""") 338 """<p>Message could not be sent.<br>Reason: {0}</p>""")
339 .format(errorStr), 339 .format(errorStr),
340 E5MessageBox.Critical) 340 E5MessageBox.Critical)
341 if res: 341 if res:
342 return self.__sendmail(msg) 342 return self.__sendmail(msg)
343 else: 343 else:
344 return False 344 return False
389 Private slot to handle the textChanged signal of the subject edit. 389 Private slot to handle the textChanged signal of the subject edit.
390 390
391 @param txt changed text (string) 391 @param txt changed text (string)
392 """ 392 """
393 self.sendButton.setEnabled( 393 self.sendButton.setEnabled(
394 self.subject.text() != "" and \ 394 self.subject.text() != "" and
395 self.message.toPlainText() != "") 395 self.message.toPlainText() != "")
396 396
397 def on_message_textChanged(self): 397 def on_message_textChanged(self):
398 """ 398 """
399 Private slot to handle the textChanged signal of the message edit. 399 Private slot to handle the textChanged signal of the message edit.
400 """ 400 """
401 self.sendButton.setEnabled( 401 self.sendButton.setEnabled(
402 self.subject.text() != "" and \ 402 self.subject.text() != "" and
403 self.message.toPlainText() != "") 403 self.message.toPlainText() != "")

eric ide

mercurial