Preferences/ToolConfigurationDialog.py

branch
Py2 comp.
changeset 3060
5883ce99ee12
parent 3058
0a02c433f52d
parent 3038
7fe9a53280bd
child 3145
a9de05d4a22f
equal deleted inserted replaced
3058:0a02c433f52d 3060:5883ce99ee12
129 if len(self.toolsList.findItems( 129 if len(self.toolsList.findItems(
130 menutext, Qt.MatchFlags(Qt.MatchExactly))): 130 menutext, Qt.MatchFlags(Qt.MatchExactly))):
131 E5MessageBox.critical( 131 E5MessageBox.critical(
132 self, 132 self,
133 self.trUtf8("Add tool entry"), 133 self.trUtf8("Add tool entry"),
134 self.trUtf8("An entry for the menu text {0} already exists.")\ 134 self.trUtf8("An entry for the menu text {0} already exists.")
135 .format(menutext)) 135 .format(menutext))
136 return 136 return
137 137
138 self.toolsList.addItem(menutext) 138 self.toolsList.addItem(menutext)
139 tool = { 139 tool = {
140 'menutext': menutext, 140 'menutext': menutext,

eric ide

mercurial