From b686bde920ca2e103391662499817174b40545f8 Mon Sep 17 00:00:00 2001 From: Nikos Skalkotos Date: Wed, 21 Nov 2012 10:26:31 +0200 Subject: [PATCH] Add "Running System" button in media selection This can be used to create an image out of a live system. This functionality is not yet implemented. --- image_creator/dialog_main.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/image_creator/dialog_main.py b/image_creator/dialog_main.py index f9dd260..4071018 100644 --- a/image_creator/dialog_main.py +++ b/image_creator/dialog_main.py @@ -141,14 +141,16 @@ def select_file(d, media): else: break - (code, media) = d.fselect(root, 10, 50, - title="Please select input media") + (code, media) = d.fselect(root, 10, 60, extra_button=1, + title="Please select an input media.", extra_label="Running System") if code in (d.DIALOG_CANCEL, d.DIALOG_ESC): if confirm_exit(d, "You canceled the media selection dialog box."): sys.exit(0) else: media = None continue + elif code == d.DIALOG_EXTRA: + media = '/' return media -- 1.7.10.4