WebBrowser/WebBrowserTabWidget.py

branch
maintenance
changeset 6646
51eefa621de4
parent 6645
ad476851d7e0
child 6656
273a2130adbe
equal deleted inserted replaced
6603:77189681b787 6646:51eefa621de4
1 # -*- coding: utf-8 -*- 1 # -*- coding: utf-8 -*-
2 2
3 # Copyright (c) 2010 - 2018 Detlev Offenbach <detlev@die-offenbachs.de> 3 # Copyright (c) 2010 - 2019 Detlev Offenbach <detlev@die-offenbachs.de>
4 # 4 #
5 5
6 """ 6 """
7 Module implementing the central widget showing the web pages. 7 Module implementing the central widget showing the web pages.
8 """ 8 """
1020 self.tr("Are you sure you want to close the window?"), 1020 self.tr("Are you sure you want to close the window?"),
1021 self.tr("""Are you sure you want to close the window?\n""" 1021 self.tr("""Are you sure you want to close the window?\n"""
1022 """You have %n tab(s) open.""", "", self.count()), 1022 """You have %n tab(s) open.""", "", self.count()),
1023 modal=True, 1023 modal=True,
1024 parent=self) 1024 parent=self)
1025 if self.__mainWindow.fromEric: 1025 quitButton = mb.addButton(
1026 quitButton = mb.addButton( 1026 self.tr("&Quit"), E5MessageBox.AcceptRole)
1027 self.tr("&Close"), E5MessageBox.AcceptRole) 1027 quitButton.setIcon(UI.PixmapCache.getIcon("exit.png"))
1028 quitButton.setIcon(UI.PixmapCache.getIcon("close.png"))
1029 else:
1030 quitButton = mb.addButton(
1031 self.tr("&Quit"), E5MessageBox.AcceptRole)
1032 quitButton.setIcon(UI.PixmapCache.getIcon("exit.png"))
1033 closeTabButton = mb.addButton( 1028 closeTabButton = mb.addButton(
1034 self.tr("C&lose Current Tab"), E5MessageBox.AcceptRole) 1029 self.tr("C&lose Current Tab"), E5MessageBox.AcceptRole)
1035 closeTabButton.setIcon(UI.PixmapCache.getIcon("tabClose.png")) 1030 closeTabButton.setIcon(UI.PixmapCache.getIcon("tabClose.png"))
1036 mb.addButton(E5MessageBox.Cancel) 1031 mb.addButton(E5MessageBox.Cancel)
1037 mb.exec_() 1032 mb.exec_()

eric ide

mercurial