eric7/Network/IRC/IrcNetworkWidget.py

branch
eric7
changeset 9153
506e35e424d5
parent 9152
8a68afaf1ba2
equal deleted inserted replaced
9152:8a68afaf1ba2 9153:506e35e424d5
442 if fpath.exists(): 442 if fpath.exists():
443 res = EricMessageBox.yesNo( 443 res = EricMessageBox.yesNo(
444 self, 444 self,
445 self.tr("Save Messages"), 445 self.tr("Save Messages"),
446 self.tr("<p>The file <b>{0}</b> already exists." 446 self.tr("<p>The file <b>{0}</b> already exists."
447 " Overwrite it?</p>").format(str(fpath)), 447 " Overwrite it?</p>").format(fpath),
448 icon=EricMessageBox.Warning) 448 icon=EricMessageBox.Warning)
449 if not res: 449 if not res:
450 return 450 return
451 451
452 try: 452 try:
462 self, 462 self,
463 self.tr("Error saving Messages"), 463 self.tr("Error saving Messages"),
464 self.tr( 464 self.tr(
465 """<p>The messages contents could not be written""" 465 """<p>The messages contents could not be written"""
466 """ to <b>{0}</b></p><p>Reason: {1}</p>""") 466 """ to <b>{0}</b></p><p>Reason: {1}</p>""")
467 .format(str(fpath), str(err))) 467 .format(fpath, str(err)))
468 468
469 def __initMessagesMenu(self): 469 def __initMessagesMenu(self):
470 """ 470 """
471 Private slot to initialize the context menu of the messages pane. 471 Private slot to initialize the context menu of the messages pane.
472 """ 472 """

eric ide

mercurial