E5Gui/E5ToolBarDialog.py

branch
Py2 comp.
changeset 3058
0a02c433f52d
parent 3057
10516539f238
parent 3020
542e97d4ecb3
child 3060
5883ce99ee12
--- a/E5Gui/E5ToolBarDialog.py	Fri Oct 18 23:00:41 2013 +0200
+++ b/E5Gui/E5ToolBarDialog.py	Fri Nov 01 15:48:48 2013 +0100
@@ -141,11 +141,13 @@
         if ok and name:
             if self.toolbarComboBox.findText(name) != -1:
                 # toolbar with this name already exists
-                E5MessageBox.critical(self,
-                self.trUtf8("New Toolbar"),
-                self.trUtf8(
-                    """A toolbar with the name <b>{0}</b> already exists.""")
-                    .format(name))
+                E5MessageBox.critical(
+                    self,
+                    self.trUtf8("New Toolbar"),
+                    self.trUtf8(
+                        """A toolbar with the name <b>{0}</b> already"""
+                        """ exists.""")
+                        .format(name))
                 return
             
             tbItem = E5ToolBarItem(None, [], False)
@@ -164,7 +166,8 @@
         Private slot to remove a custom toolbar.
         """
         name = self.toolbarComboBox.currentText()
-        res = E5MessageBox.yesNo(self,
+        res = E5MessageBox.yesNo(
+            self,
             self.trUtf8("Remove Toolbar"),
             self.trUtf8(
                 """Should the toolbar <b>{0}</b> really be removed?""")
@@ -199,11 +202,13 @@
                 return
             if self.toolbarComboBox.findText(newName) != -1:
                 # toolbar with this name already exists
-                E5MessageBox.critical(self,
-                self.trUtf8("Rename Toolbar"),
-                self.trUtf8(
-                    """A toolbar with the name <b>{0}</b> already exists.""")
-                    .format(newName))
+                E5MessageBox.critical(
+                    self,
+                    self.trUtf8("Rename Toolbar"),
+                    self.trUtf8(
+                        """A toolbar with the name <b>{0}</b> already"""
+                        """ exists.""")
+                        .format(newName))
                 return
             index = self.toolbarComboBox.currentIndex()
             self.toolbarComboBox.setItemText(index, newName)

eric ide

mercurial