--- a/ProjectDjango/DjangoMigrationSelectionDialog.py Sun Feb 16 14:38:21 2020 +0100 +++ b/ProjectDjango/DjangoMigrationSelectionDialog.py Wed Apr 08 19:58:27 2020 +0200 @@ -24,7 +24,8 @@ """ Class implementing a dialog to select an application and migration. """ - def __init__(self, migrations, migrationRequired=False, parent=None): + def __init__(self, migrations, migrationRequired=False, suffix="", + parent=None): """ Constructor @@ -33,6 +34,8 @@ @param migrationRequired flag indicating that a migration must be selected @type bool + @param suffix icon suffix + @type str @param parent reference to the parent widget @type QWidget """ @@ -40,7 +43,8 @@ self.setupUi(self) self.__appliedIcon = QIcon(os.path.join( - os.path.dirname(__file__), "icons", "applied.png")) + os.path.dirname(__file__), "icons", "applied-{0}".format(suffix) + )) self.__migrationRequired = migrationRequired