blob: c4712ac325e19d69eda09e3f9253c407694b2514 (
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
|
from iw import *
from gtk import *
class UnresolvedDependenciesWindow (InstallWindow):
def __init__ (self, ics):
InstallWindow.__init__ (self, ics)
ics.setTitle ("Unresolved Dependencies")
ics.setNextEnabled (1)
print "hello world"
self.dependCB = None
def getNext (self):
if self.dependCB and self.dependCB.get_active ():
self.todo.selectDeps (self.deps)
return None
def getScreen (self):
self.deps = self.todo.verifyDeps ()
if not self.deps:
return None
sw = GtkScrolledWindow ()
sw.set_border_width (5)
sw.set_policy (POLICY_AUTOMATIC, POLICY_AUTOMATIC)
list = GtkCList (2, ("Package", "Requirement"))
list.freeze ()
for (name, suggest) in self.deps:
list.append ((name, suggest))
list.thaw ()
sw.add (list)
self.dependCB = GtkCheckButton ("Install packages to satisfy dependencies")
self.dependCB.set_active (TRUE)
align = GtkAlignment (0.5, 0.5)
align.add (self.dependCB)
box = GtkVBox (FALSE, 5)
box.pack_start (sw, TRUE)
box.pack_start (align, FALSE)
return box
|