src/eric7/CondaInterface/Conda.py

branch
eric7
changeset 9482
a2bc06a54d9d
parent 9473
3f23dbf37dbe
child 9576
be9f8e7e42e0
equal deleted inserted replaced
9481:0b936ff1bbb9 9482:a2bc06a54d9d
487 @rtype bool 487 @rtype bool
488 @exception RuntimeError raised to indicate an error in parameters 488 @exception RuntimeError raised to indicate an error in parameters
489 489
490 Note: only one of name or prefix must be given. 490 Note: only one of name or prefix must be given.
491 """ 491 """
492 from eric7.UI.DeleteFilesConfirmationDialog import DeleteFilesConfirmationDialog
493
492 if name and prefix: 494 if name and prefix:
493 raise RuntimeError("Only one of 'name' or 'prefix' must be given.") 495 raise RuntimeError("Only one of 'name' or 'prefix' must be given.")
494 496
495 if not name and not prefix: 497 if not name and not prefix:
496 raise RuntimeError("One of 'name' or 'prefix' must be given.") 498 raise RuntimeError("One of 'name' or 'prefix' must be given.")
497 499
498 if packages: 500 if packages:
499 from eric7.UI.DeleteFilesConfirmationDialog import (
500 DeleteFilesConfirmationDialog,
501 )
502
503 dlg = DeleteFilesConfirmationDialog( 501 dlg = DeleteFilesConfirmationDialog(
504 self.parent(), 502 self.parent(),
505 self.tr("Uninstall Packages"), 503 self.tr("Uninstall Packages"),
506 self.tr( 504 self.tr(
507 "Do you really want to uninstall these packages and" 505 "Do you really want to uninstall these packages and"

eric ide

mercurial