diff options
author | Papoteur <papoteur@mageia.org> | 2018-12-12 08:47:26 +0100 |
---|---|---|
committer | Papoteur <papoteur@mageia.org> | 2018-12-12 08:47:26 +0100 |
commit | 67d4650d78c1270a02bcaae65a7005da080c48a8 (patch) | |
tree | 1f72bc1d0a60a86b0dd60205c8f9e9bb83a02961 /lib | |
parent | 71afbe1f02fc0a8120d4c26c3335000d78de457d (diff) | |
download | isodumper-67d4650d78c1270a02bcaae65a7005da080c48a8.tar isodumper-67d4650d78c1270a02bcaae65a7005da080c48a8.tar.gz isodumper-67d4650d78c1270a02bcaae65a7005da080c48a8.tar.bz2 isodumper-67d4650d78c1270a02bcaae65a7005da080c48a8.tar.xz isodumper-67d4650d78c1270a02bcaae65a7005da080c48a8.zip |
Add persistence dialog
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/isodumper.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/isodumper.py b/lib/isodumper.py index e499f8b..204450d 100755 --- a/lib/isodumper.py +++ b/lib/isodumper.py @@ -198,6 +198,7 @@ class IsoDumper(object): self.progress.setValue(0) self.progress.setDisabled() self.refreshbt.setEnabled() + self.persistencecb.setDisabled() def onProgress(self, frac): self.logger(_('Wrote: {}% '.format(frac))) @@ -364,6 +365,7 @@ class IsoDumper(object): self.writebt.setDisabled() self.progress.setDisabled() self.backup_select.setDisabled() + self.persistencecb.setDisabled() def wip_unsensitive(self): self.ima.setDisabled() @@ -372,6 +374,7 @@ class IsoDumper(object): self.backup_select.setDisabled() self.backupbt.setDisabled() self.refreshbt.setDisabled() + self.persistencecb.setDisabled() def close(self): self.write_logfile() @@ -487,6 +490,9 @@ NTFS or ext. You can specify a volume name and the format in a new dialog box.<B self.atelier.createHStretch(self.writebox) self.writebt = self.atelier.createPushButton(self.writebox, _("&Write to device" )) self.writebt.setDisabled() + self.persistencebox = self.atelier.createHBox(self.box) + self.persistencecb = self.atelier.createCheckBox(self.persistencebox, _("Add a persistent partition in the remaining space")) + self.persistencecb.setDisabled() self.backupbox = self.atelier.createHBox(self.box) self.atelier.createLabel(self.backupbox,_("Backup to:")) # add file picker for backup file name @@ -636,6 +642,7 @@ NTFS or ext. You can specify a volume name and the format in a new dialog box.<B self.dialog.recalcLayout() self.writebt.setEnabled() self.activate_devicelist() + self.persistencecb.setEnabled() if event.widget() == self.writebt: self.wip_unsensitive() self.do_write() |