eric6/Preferences/ToolGroupConfigurationDialog.py

changeset 8143
2c730d5fd177
parent 7923
91e843545d9a
child 8218
7c09585bd960
equal deleted inserted replaced
8141:27f636beebad 8143:2c730d5fd177
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.MatchExactly))): 66 groupName, Qt.MatchFlags(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.MatchExactly))): 96 groupName, Qt.MatchFlags(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