src/eric7/EricWidgets/EricToolBarDialog.py

branch
eric7
changeset 9573
9960d19d66b5
parent 9500
5771348ded12
child 9653
e67609152c5e
equal deleted inserted replaced
9572:3b46c662a004 9573:9960d19d66b5
158 # toolbar with this name already exists 158 # toolbar with this name already exists
159 EricMessageBox.critical( 159 EricMessageBox.critical(
160 self, 160 self,
161 self.tr("New Toolbar"), 161 self.tr("New Toolbar"),
162 self.tr( 162 self.tr(
163 """A toolbar with the name <b>{0}</b> already""" """ exists.""" 163 """A toolbar with the name <b>{0}</b> already exists."""
164 ).format(name), 164 ).format(name),
165 ) 165 )
166 return 166 return
167 167
168 tbItem = EricToolBarItem( 168 tbItem = EricToolBarItem(
226 # toolbar with this name already exists 226 # toolbar with this name already exists
227 EricMessageBox.critical( 227 EricMessageBox.critical(
228 self, 228 self,
229 self.tr("Rename Toolbar"), 229 self.tr("Rename Toolbar"),
230 self.tr( 230 self.tr(
231 """A toolbar with the name <b>{0}</b> already""" """ exists.""" 231 """A toolbar with the name <b>{0}</b> already exists."""
232 ).format(newName), 232 ).format(newName),
233 ) 233 )
234 return 234 return
235 index = self.toolbarComboBox.currentIndex() 235 index = self.toolbarComboBox.currentIndex()
236 self.toolbarComboBox.setItemText(index, newName) 236 self.toolbarComboBox.setItemText(index, newName)

eric ide

mercurial