Fix a pep8 error
[snf-image-creator] / image_creator / dialog_main.py
index db08968..52d63cb 100644 (file)
@@ -33,9 +33,6 @@
 # interpreted as representing official policies, either expressed
 # or implied, of GRNET S.A.
 
 # interpreted as representing official policies, either expressed
 # or implied, of GRNET S.A.
 
-import gevent.monkey  # Monkey-patch everything for gevent early on
-gevent.monkey.patch_all()
-
 import dialog
 import sys
 import os
 import dialog
 import sys
 import os
@@ -144,14 +141,17 @@ def select_file(d, media):
             else:
                 break
 
             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
         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
 
 
     return media