Preferences/ToolConfigurationDialog.py

changeset 3034
7ce719013078
parent 3025
67064c71df21
child 3038
7fe9a53280bd
equal deleted inserted replaced
3033:58fe260e7469 3034:7ce719013078
127 if len(self.toolsList.findItems( 127 if len(self.toolsList.findItems(
128 menutext, Qt.MatchFlags(Qt.MatchExactly))): 128 menutext, Qt.MatchFlags(Qt.MatchExactly))):
129 E5MessageBox.critical( 129 E5MessageBox.critical(
130 self, 130 self,
131 self.trUtf8("Add tool entry"), 131 self.trUtf8("Add tool entry"),
132 self.trUtf8("An entry for the menu text {0} already exists.")\ 132 self.trUtf8("An entry for the menu text {0} already exists.")
133 .format(menutext)) 133 .format(menutext))
134 return 134 return
135 135
136 self.toolsList.addItem(menutext) 136 self.toolsList.addItem(menutext)
137 tool = { 137 tool = {

eric ide

mercurial