Exemple #1
0
 def _build_userinterface(self):
     name = self.get("userinterfacetype", "streaming")
     if name.startswith("stream"):
         import CLI
         return CLI.get_terminal_ui(env=self)
     elif name == "fullscreen":
         import cursesio
         return cursesio.get_curses_ui(env=self)
     elif name == "gtk":
         import gstratatest
         return gstratatest.get_ui(env=self)
     elif name == "production":
         import strataui
         return strataui.get_fancy_ui(env=self)
     elif name == "terse":
         import strataui
         return strataui.get_terse_ui(env=self)
     elif name == "tersestream":
         import strataui
         return strataui.get_tersestream_ui(env=self)
     else:
         raise ValueError, "Invalid user interface type specificed in 'userinterfacetype'."
Exemple #2
0
 def __init__(self, ui=None):
     self._ui = ui or cursesio.get_curses_ui()
Exemple #3
0
def get_terse_ui(inputsize=7, env=None):
    return cursesio.get_curses_ui(cursesio.CursesIO, TerseUserInterface, inputsize, env)