blob: 80a4333550acca980b94e9ffe1f7a3f54517a965 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
from iw import *
from gtk import *
import gettext
cat = gettext.Catalog ("anaconda-text", "/usr/share/locale")
_ = cat.gettext
class BootdiskWindow (InstallWindow):
def __init__ (self, ics):
InstallWindow.__init__ (self, ics)
ics.setTitle ("Bootdisk Creation")
ics.setPrevEnabled (0)
ics.setNextEnabled (1)
BootdiskWindow.initial = 1
self.bootdisk = None
def getNext (self):
if self.bootdisk and self.bootdisk.get_active (): return None
threads_leave ()
try:
self.todo.makeBootdisk ()
except:
threads_enter ()
BootdiskWindow.initial = 0
return BootdiskWindow
threads_enter ()
return None
def getScreen (self):
if not self.todo.bootdisk: return None
box = GtkVBox (FALSE, 5)
label = None
if BootdiskWindow.initial:
label = GtkLabel (_("Insert a blank floppy in the first floppy drive. "
"All data on this disk will be erased during creation "
"of the boot disk."))
else:
label = GtkLabel (_("An error occured while making the boot disk. "
"Please make sure that there is a formatted floppy "
"in the first floppy drive."))
label.set_line_wrap (TRUE)
box.pack_start (label, FALSE)
self.bootdisk = GtkCheckButton ("Skip boot disk creation")
self.bootdisk.set_active (FALSE)
box.pack_start (GtkHSeparator (), FALSE, padding=3)
box.pack_start (self.bootdisk, FALSE)
return box
|