src/eric7/UI/Browser.py

branch
eric7
changeset 11218
43dfc40728d2
parent 11090
f5f5f5803935
equal deleted inserted replaced
11217:856628e8a303 11218:43dfc40728d2
1168 1168
1169 @param fn filename to be deleted 1169 @param fn filename to be deleted
1170 @type str 1170 @type str
1171 """ 1171 """
1172 dlg = DeleteFilesConfirmationDialog( 1172 dlg = DeleteFilesConfirmationDialog(
1173 self.parent(), 1173 self,
1174 self.tr("Delete File"), 1174 self.tr("Delete File"),
1175 self.tr("Do you really want to delete this file?"), 1175 self.tr("Do you really want to delete this file?"),
1176 [fn], 1176 [fn],
1177 ) 1177 )
1178 if dlg.exec() == QDialog.DialogCode.Accepted: 1178 if dlg.exec() == QDialog.DialogCode.Accepted:
1197 1197
1198 @param dn directory name to be removed from the project 1198 @param dn directory name to be removed from the project
1199 @type str 1199 @type str
1200 """ 1200 """
1201 dlg = DeleteFilesConfirmationDialog( 1201 dlg = DeleteFilesConfirmationDialog(
1202 self.parent(), 1202 self,
1203 self.tr("Delete Directory"), 1203 self.tr("Delete Directory"),
1204 self.tr("Do you really want to delete this directory?"), 1204 self.tr("Do you really want to delete this directory?"),
1205 [dn], 1205 [dn],
1206 ) 1206 )
1207 if dlg.exec() == QDialog.DialogCode.Accepted: 1207 if dlg.exec() == QDialog.DialogCode.Accepted:
1231 fileNames = [] 1231 fileNames = []
1232 for itm in self.getSelectedItems(): 1232 for itm in self.getSelectedItems():
1233 fileNames.append(itm.fileName()) 1233 fileNames.append(itm.fileName())
1234 1234
1235 dlg = DeleteFilesConfirmationDialog( 1235 dlg = DeleteFilesConfirmationDialog(
1236 self.parent(), 1236 self,
1237 self.tr("Delete Files"), 1237 self.tr("Delete Files"),
1238 self.tr("Do you really want to delete these files?"), 1238 self.tr("Do you really want to delete these files?"),
1239 sorted(fileNames), 1239 sorted(fileNames),
1240 ) 1240 )
1241 if dlg.exec() == QDialog.DialogCode.Accepted: 1241 if dlg.exec() == QDialog.DialogCode.Accepted:

eric ide

mercurial