"""
self.screen = snack.SnackScreen()
+ # Setup root text
+ self.draw_root_text("%(PRETTY_NAME)s" % self.bricklayer.os)
+
# Setup helpline
self.push_helpline(
_("<Tab>/<Alt-Tab> between elements | <Space> selects | <F12> next screen")
self.screen.finish()
self.screen = None
+ def draw_root_text(self, text, top=0, left=0):
+ if not self.screen:
+ raise RuntimeError()
+
+ # Center the text
+ text = text.center(self.screen.width)
+
+ # Draw the text
+ self.screen.drawRootText(top, left, text)
+
def push_helpline(self, helpline):
"""
Sets the helpline, but centers it first