eric7/Preferences/ToolGroupConfigurationDialog.py

branch
eric7
changeset 8324
83084f088655
parent 8318
962bce857696
child 8356
68ec9c3d4de5
equal deleted inserted replaced
8323:3bb9b7d997db 8324:83084f088655
61 self.tr("Add tool group entry"), 61 self.tr("Add tool group entry"),
62 self.tr("You have to give a name for the group to add.")) 62 self.tr("You have to give a name for the group to add."))
63 return 63 return
64 64
65 if len(self.groupsList.findItems( 65 if len(self.groupsList.findItems(
66 groupName, Qt.MatchFlags(Qt.MatchFlag.MatchExactly))): 66 groupName, Qt.MatchFlag.MatchExactly)):
67 E5MessageBox.critical( 67 E5MessageBox.critical(
68 self, 68 self,
69 self.tr("Add tool group entry"), 69 self.tr("Add tool group entry"),
70 self.tr("An entry for the group name {0} already exists.") 70 self.tr("An entry for the group name {0} already exists.")
71 .format(groupName)) 71 .format(groupName))
91 self.tr("Add tool group entry"), 91 self.tr("Add tool group entry"),
92 self.tr("You have to give a name for the group to add.")) 92 self.tr("You have to give a name for the group to add."))
93 return 93 return
94 94
95 if len(self.groupsList.findItems( 95 if len(self.groupsList.findItems(
96 groupName, Qt.MatchFlags(Qt.MatchFlag.MatchExactly))): 96 groupName, Qt.MatchFlag.MatchExactly)):
97 E5MessageBox.critical( 97 E5MessageBox.critical(
98 self, 98 self,
99 self.tr("Add tool group entry"), 99 self.tr("Add tool group entry"),
100 self.tr("An entry for the group name {0} already exists.") 100 self.tr("An entry for the group name {0} already exists.")
101 .format(groupName)) 101 .format(groupName))

eric ide

mercurial