|
@@ -69,7 +69,7 @@ class LineList(object):
|
|
|
def add_line(self, s, attr=0):
|
|
|
self.lines.append((s, attr))
|
|
|
|
|
|
- if len(self.lines) > self.height:
|
|
|
+ if len(self.lines) > self.height - 1:
|
|
|
self.lines = self.lines[1:]
|
|
|
|
|
|
self.redraw()
|
|
@@ -273,7 +273,7 @@ class Application(object):
|
|
|
return True
|
|
|
|
|
|
def on_flat_correct(self):
|
|
|
- self.log.highlight("Compute flat field correction, please wait ...")
|
|
|
+ self.log.highlight("Flat field correction ...")
|
|
|
info = self.read_info()
|
|
|
data = dict(path=self.config.destination, prefix=self.prefix, num=info['TOMO_N'], step=1)
|
|
|
|
|
@@ -356,8 +356,8 @@ class Application(object):
|
|
|
top_pane = screen.subwin(1, width, 0, 0)
|
|
|
bottom_pane = screen.subwin(height - 1, width, 1, 0)
|
|
|
|
|
|
- left_pane = bottom_pane.subwin(height - 1, width / 2, 1, 0)
|
|
|
- right_pane = bottom_pane.subwin(height - 1, width / 2, 1, width / 2)
|
|
|
+ left_pane = bottom_pane.subwin(height - 1, width / 3, 1, 0)
|
|
|
+ right_pane = bottom_pane.subwin(height - 1, 2 * width / 3, 1, width / 3)
|
|
|
|
|
|
status_bar = StatusBar(top_pane, colors)
|
|
|
status_bar.update('Cockpit')
|
|
@@ -367,7 +367,7 @@ class Application(object):
|
|
|
machine = StateMachine()
|
|
|
|
|
|
quit = Action('q', 'Quit', self.on_quit, machine.QUIT)
|
|
|
- sync = Action('s', 'Sync data', self.on_sync, machine.SYNC)
|
|
|
+ sync = Action('s', 'Sync', self.on_sync, machine.SYNC)
|
|
|
flatcorrect = Action('f', 'Flat correct', self.on_flat_correct, machine.FLATCORRECT)
|
|
|
clean = Action('c', 'Clean', self.on_clean, machine.CLEAN)
|
|
|
optimize = Action('o', 'Optimize', self.on_optimize, machine.OPTIMIZE)
|