From ce5dfa1ce10278c42edb419dbf980344e4de3295 Mon Sep 17 00:00:00 2001 From: Papoteur Date: Sun, 10 Apr 2016 15:48:41 +0200 Subject: Better formatting for dialog windows --- lib/isodumper.py | 29 +++++++++++++++++++++-------- 1 file changed, 21 insertions(+), 8 deletions(-) (limited to 'lib') 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
\ ----------------
\ -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
contents of the flash drive onto the hard disc, and restore the flash drive to its previous state subsequently.
It gives also a feature for formatting the USB device.
\ +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
contents of the flash drive onto the hard disc, and restore the flash drive \ +to its previous state subsequently.
\ +It gives also a feature for formatting the USB device.
\
\ -IsoDumper can be launched either from the menus, or a user or root console with the command 'isodumper'.
For normal users, the root password is solicited; this is necessary for the program's operation.
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.
(You may have to close any automatically opened File Manager window).
\ +IsoDumper can be launched either from the menus, or a user or root console with the command 'isodumper'.
\ +For normal users, the root password is solicited; this is necessary for the program's operation.
\ +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.
\ +(You may have to close any automatically opened File Manager window).
\
\ The fields of the main window are as follows:
\ - Device to work on: the device of the USB flash drive, a drop-down list to choose from.
\ - Write Image: to choose the source ISO image *.iso (or flash drive backup file *.img) to write out.
\ -- Write to device: This button launches the operation - with a prior warning dialogue.
The operation is shown in the progress bar beneath.
\ -- 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.
\ +- Write to device: This button launches the operation - with a prior warning dialogue.
\ +The operation is shown in the progress bar beneath.
\ +- 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.
\ - Backup the device: launch the backup operation.
\ -- 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.
")) +- 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.
")) if self.ask_OK(info) : return @@ -756,7 +769,7 @@ The fields of the main window are as follows:
\ 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:
\ 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:
\ 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): -- cgit v1.2.1