blob: 7c03cd20edbc6b91840b627b00ce3f3788896bda (
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
57
58
59
60
61
62
63
64
|
from gtk import *
from iw import *
from thread import *
import isys
import _balkan
class ConfirmPartitionWindow (InstallWindow):
def __init__ (self, ics):
InstallWindow.__init__ (self, ics)
self.todo = ics.getToDo ()
ics.setTitle ("Confirm Partitioning Selection")
ics.setHTML ("<HTML><BODY>Select a root partition"
"</BODY></HTML>")
ics.setNextEnabled (TRUE)
def getScreen (self):
return self.window
def getPrev (self):
return PartitionWindow
class PartitionWindow (InstallWindow):
def __init__ (self, ics):
InstallWindow.__init__ (self, ics)
self.todo = ics.getToDo ()
ics.setTitle ("Root Partition Selection")
ics.setHTML ("<HTML><BODY>Select a root partition"
"</BODY></HTML>")
ics.setNextEnabled (TRUE)
def getNext (self):
print "calling self.ddruid.next ()"
self.todo.ddruid.next ()
print "done calling self.ddruid.next ()"
win = self.todo.ddruid.getConfirm ()
if win:
print "confirm"
bin = GtkFrame (None, _obj = win)
bin.set_shadow_type (SHADOW_NONE)
window = ConfirmPartitionWindow
window.window = bin
return window
self.todo.addMount(rootpart, '/')
return None
def enableCallback (self, value):
self.ics.setNextEnabled (value)
def getScreen (self):
from gnomepyfsedit import fsedit
if not self.todo.ddruid:
self.todo.ddruid = fsedit(1, ['hda'], [])
self.todo.ddruid.setCallback (self.enableCallback, self)
self.bin = GtkFrame (None, _obj = self.todo.ddruid.getWindow ())
self.bin.set_shadow_type (SHADOW_NONE)
self.todo.ddruid.edit ()
return self.bin
|