aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPapoteur <papoteur@mageialinux-online.org>2016-04-10 15:48:41 +0200
committerPapoteur <papoteur@mageialinux-online.org>2016-04-10 15:48:41 +0200
commitce5dfa1ce10278c42edb419dbf980344e4de3295 (patch)
tree4e66187f9301bdcbb3481fd7705aa580fc726360
parentaf34a6c34c14596ea224bc91d8e81d956ce4cd14 (diff)
downloadisodumper-ce5dfa1ce10278c42edb419dbf980344e4de3295.tar
isodumper-ce5dfa1ce10278c42edb419dbf980344e4de3295.tar.gz
isodumper-ce5dfa1ce10278c42edb419dbf980344e4de3295.tar.bz2
isodumper-ce5dfa1ce10278c42edb419dbf980344e4de3295.tar.xz
isodumper-ce5dfa1ce10278c42edb419dbf980344e4de3295.zip
Better formatting for dialog windows
-rw-r--r--lib/isodumper.py29
1 files changed, 21 insertions, 8 deletions
diff --git a/lib/isodumper.py b/lib/isodumper.py
index 147c584..4951ae9 100644
--- a/lib/isodumper.py
+++ b/lib/isodumper.py
@@ -570,17 +570,30 @@ class IsoDumper(object):
def help_dialog(self):
info = Info(_("IsoDumper"),True,_("Mageia IsoDumper<BR />\
----------------<BR />\
-This GUI program is primarily for safely writing a bootable ISO image to a USB flash drive, <BR />an operation devious & potentially hazardous when done by hand. As a bonus, it can also back up the entire previous<BR />contents of the flash drive onto the hard disc, and restore the flash drive to its previous state subsequently.<BR /> It gives also a feature for formatting the USB device.<BR />\
+This GUI program is primarily for safely writing a bootable ISO image to a USB flash drive, \
+an operation devious & potentially hazardous when done by hand. As a bonus, it can also back up the\
+entire previous<BR />contents of the flash drive onto the hard disc, and restore the flash drive \
+to its previous state subsequently.<BR />\
+It gives also a feature for formatting the USB device.<BR />\
<BR />\
-IsoDumper can be launched either from the menus, or a user or root console with the command 'isodumper'.<BR />For normal users, the root password is solicited; this is necessary for the program's operation. <BR />The flash drive can be inserted beforehand or once the program is started. In the latter case, a dialogue will say <BR />that there is no flash drive inserted, and allow a 'retry' to find it once it is. <BR />(You may have to close any automatically opened File Manager window).<BR />\
+IsoDumper can be launched either from the menus, or a user or root console with the command 'isodumper'.<BR />\
+For normal users, the root password is solicited; this is necessary for the program's operation. <BR />\
+The flash drive can be inserted beforehand or once the program is started. In the latter case, a \
+dialogue will say that there is no flash drive inserted, and allow a 'retry' to find it once it is. <BR />\
+(You may have to close any automatically opened File Manager window).<BR />\
<BR />\
The fields of the main window are as follows:<BR />\
- Device to work on: the device of the USB flash drive, a drop-down list to choose from.<BR />\
- Write Image: to choose the source ISO image *.iso (or flash drive backup file *.img) to write out.<BR />\
-- Write to device: This button launches the operation - with a prior warning dialogue. <BR />The operation is shown in the progress bar beneath.<BR />\
-- Backup to: define the name and placement of the backup image file. The current flash <BR />drive will be backed up to a disc file. Note that the entire flash drive is preserved, regardless of its actual contents;<BR /> ensure that you have the necessary free disc space (the same size as the USB device). <BR />This backup file can be used later to restore the flash drive by selecting it as the source *.img file to write out.<BR />\
+- Write to device: This button launches the operation - with a prior warning dialogue. <BR />\
+The operation is shown in the progress bar beneath.<BR />\
+- Backup to: define the name and placement of the backup image file. The current flash drive \
+will be backed up to a disc file. Note that the entire flash drive is preserved, regardless of its \
+actual contents; ensure that you have the necessary free disc space (the same size as the USB device). \
+This backup file can be used later to restore the flash drive by selecting it as the source *.img file to write out.<BR />\
- Backup the device: launch the backup operation.<BR />\
-- Format the device: create an unique partition on the entire volume in the specified format in FAT, <BR />NTFS or ext. You can specify a volume name and the format in a new dialog box.<BR />"))
+- Format the device: create an unique partition on the entire volume in the specified format in FAT, \
+NTFS or ext. You can specify a volume name and the format in a new dialog box.<BR />"))
if self.ask_OK(info) :
return
@@ -756,7 +769,7 @@ The fields of the main window are as follows:<BR />\
dlg.setTitle(info.title)
dlg.setText(info.text, info.richtext)
dlg.setButtonLabel("OK", yui.YMGAMessageBox.B_ONE)
- dlg.setMinSize(50, 10);
+ dlg.setMinSize(60, 10);
return dlg.show() == yui.YMGAMessageBox.B_ONE
def ask_YesOrNo(self, info):
@@ -767,7 +780,7 @@ The fields of the main window are as follows:<BR />\
dlg.setText(info.text, info.richtext)
dlg.setButtonLabel("Yes", yui.YMGAMessageBox.B_ONE)
dlg.setButtonLabel("No", yui.YMGAMessageBox.B_TWO)
- dlg.setMinSize(50, 8);
+ dlg.setMinSize(60, 8);
return dlg.show() == yui.YMGAMessageBox.B_ONE
def aboutDialog(self):
@@ -785,7 +798,7 @@ The fields of the main window are as follows:<BR />\
dlg.setText(_("Warning\nNo target devices were found.\nYou need to plug in a USB Key to which the image can be written."))
dlg.setButtonLabel(_("&Refresh"), yui.YMGAMessageBox.B_ONE)
dlg.setButtonLabel(_("Cancel"), yui.YMGAMessageBox.B_TWO)
- dlg.setMinSize(50, 8);
+ dlg.setMinSize(60, 8);
return dlg.show() == yui.YMGAMessageBox.B_ONE
def handleevent(self):