eric7/Network/IRC/IrcChannelWidget.py

branch
eric7
changeset 9153
506e35e424d5
parent 9152
8a68afaf1ba2
equal deleted inserted replaced
9152:8a68afaf1ba2 9153:506e35e424d5
1383 if fpath.exists(): 1383 if fpath.exists():
1384 res = EricMessageBox.yesNo( 1384 res = EricMessageBox.yesNo(
1385 self, 1385 self,
1386 self.tr("Save Messages"), 1386 self.tr("Save Messages"),
1387 self.tr("<p>The file <b>{0}</b> already exists." 1387 self.tr("<p>The file <b>{0}</b> already exists."
1388 " Overwrite it?</p>").format(str(fpath)), 1388 " Overwrite it?</p>").format(fpath),
1389 icon=EricMessageBox.Warning) 1389 icon=EricMessageBox.Warning)
1390 if not res: 1390 if not res:
1391 return 1391 return
1392 1392
1393 try: 1393 try:
1403 self, 1403 self,
1404 self.tr("Error saving Messages"), 1404 self.tr("Error saving Messages"),
1405 self.tr( 1405 self.tr(
1406 """<p>The messages contents could not be written""" 1406 """<p>The messages contents could not be written"""
1407 """ to <b>{0}</b></p><p>Reason: {1}</p>""") 1407 """ to <b>{0}</b></p><p>Reason: {1}</p>""")
1408 .format(str(fpath), str(err))) 1408 .format(fpath, str(err)))
1409 1409
1410 def __initMessagesMenu(self): 1410 def __initMessagesMenu(self):
1411 """ 1411 """
1412 Private slot to initialize the context menu of the messages pane. 1412 Private slot to initialize the context menu of the messages pane.
1413 """ 1413 """

eric ide

mercurial