diff options
author | Papoteur <papoteur@mageialinux-online.org> | 2015-10-09 16:24:40 +0200 |
---|---|---|
committer | Papoteur <papoteur@mageialinux-online.org> | 2015-10-09 16:24:40 +0200 |
commit | 417e27214b07ca592f95ce5ca6a5b162d6f403d7 (patch) | |
tree | 81b808ae68055fb405c5e80a9c1afa9d40b7b0b5 /lib/isodumper.py | |
parent | ebb2d8e4f763dfaac8b2c13ca0fce5880ed4f3d8 (diff) | |
download | isodumper-417e27214b07ca592f95ce5ca6a5b162d6f403d7.tar isodumper-417e27214b07ca592f95ce5ca6a5b162d6f403d7.tar.gz isodumper-417e27214b07ca592f95ce5ca6a5b162d6f403d7.tar.bz2 isodumper-417e27214b07ca592f95ce5ca6a5b162d6f403d7.tar.xz isodumper-417e27214b07ca592f95ce5ca6a5b162d6f403d7.zip |
Manage the device name, void at start.
Diffstat (limited to 'lib/isodumper.py')
-rw-r--r-- | lib/isodumper.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/isodumper.py b/lib/isodumper.py index 23a84d2..cf45c83 100644 --- a/lib/isodumper.py +++ b/lib/isodumper.py @@ -182,6 +182,7 @@ class IsoDumper(object): else: return False break + self.devicelist.addItem("",False) if len(self.list)>0: for name, path, size in self.list: # convert in Mbytes @@ -303,7 +304,6 @@ class IsoDumper(object): def do_write(self): -# write_button = self.wTree.get_widget("write_button") self.writebt.setDisabled() self.devicelist.setDisabled() self.formatbt.setDisabled() @@ -312,8 +312,8 @@ class IsoDumper(object): self.progress.setEnabled() source = self.img_name target = self.dev.split('(')[1].split(')')[0] - self.logger(_('Image: ')+source) - self.logger(_('Target Device: ')+self.dev) +# self.logger(_('Image: ')+source) +# self.logger(_('Target Device: ')+self.dev) b = os.path.getsize(source) if b > (self.deviceSize): message = _('The device is too small to contain the ISO file.') @@ -797,14 +797,17 @@ The fields of the main window are as follows:\n\ self.activate_devicelist() if event.widget() == self.writebt: + self.device_selected() self.do_write() if event.widget() == self.backupbt: + self.device_selected() self.backup_go() if event.widget() == self.backup_select: self.backup_img_name=yui.YUI.app().askForSaveFileName('file:///home/'+self.user,"*.img","Backup to:") if self.backup_img_name != '': self.backup_choosed() if event.widget() == self.formatbt: + self.device_selected() code,format_type,name = self.ask_format() if code: self.do_format(format_type,name) |