summaryrefslogtreecommitdiffstats
path: root/text.py
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>1999-05-04 16:40:06 +0000
committerErik Troan <ewt@redhat.com>1999-05-04 16:40:06 +0000
commit2453dbf26185b884cbe47716c84ce8859452b066 (patch)
treef5c9bc6a59009d3ec0c8afda391b0e9e1f5a0823 /text.py
parentdd9da1b73f090cf8a66c6354450d845c1a9dd288 (diff)
downloadanaconda-2453dbf26185b884cbe47716c84ce8859452b066.tar.gz
anaconda-2453dbf26185b884cbe47716c84ce8859452b066.tar.xz
anaconda-2453dbf26185b884cbe47716c84ce8859452b066.zip
integrated image stuff into todo
Diffstat (limited to 'text.py')
-rw-r--r--text.py32
1 files changed, 20 insertions, 12 deletions
diff --git a/text.py b/text.py
index 019948a11..b86dda6b8 100644
--- a/text.py
+++ b/text.py
@@ -28,7 +28,7 @@ class InstallProgressWindow:
def __del__(self):
self.screen.popWindow()
- screen.refresh()
+ self.screen.refresh()
def __init__(self, screen):
self.screen = screen
@@ -42,8 +42,8 @@ class InstallProgressWindow:
screen.refresh()
class PartitionWindow:
- def run(self, screen, rootPath):
- if (rootPath): return -2
+ def run(self, screen, todo):
+ if (todo.runLive): return -2
device = 'hda';
@@ -63,14 +63,18 @@ class PartitionWindow:
if rc[0] == 'back':
return -1
+ todo.addMount(rc[1], '/')
+
return 0
-class InstallInterface:
+class WaitWindow:
- def packageProgessWindow(self):
- return InstallProgressWindow(self.screen)
+ def pop(self):
+ self.screen.popWindow()
+ self.screen.refresh()
- def waitWindow(self, title, text):
+ def __init__(self, screen, title, text):
+ self.screen = screen
width = 40
if (len(text) < width): width = len(text)
@@ -81,9 +85,13 @@ class InstallInterface:
g.draw()
self.screen.refresh()
- def popWaitWindow(self, arg):
- self.screen.popWindow()
- self.screen.refresh()
+class InstallInterface:
+
+ def waitWindow(self, title, text):
+ return WaitWindow(self.screen, title, text)
+
+ def packageProgessWindow(self):
+ return InstallProgressWindow(self.screen)
def __init__(self):
self.screen = SnackScreen()
@@ -91,10 +99,10 @@ class InstallInterface:
def __del__(self):
self.screen.finish()
- def run(self, hdlist, rootPath):
+ def run(self, todo):
steps = [
["Welcome", WelcomeWindow, (self.screen,)],
- ["Partition", PartitionWindow, (self.screen, rootPath)]
+ ["Partition", PartitionWindow, (self.screen, todo)]
]
step = 0