Exemplo n.º 1
0
 def show_exception(self, e):
     log.exception("Exception processing user command")
     L = 5
     T = 2
     W = 70
     H = 20
     self.dialog_box(L, T, W, H)
     v = Viewer(L + 1, T + 1, W - 2, H - 2)
     import traceback
     v.set_lines([
         "Exception occured processing the command. Press Esc to continue.",
         "Recommended action is saving database, quitting and comparing",
         "database files with backup copies for possibility of data loss",
         "or corruption. The exception was also logged to scratchabit.log.",
         "Please report way to reproduce it to",
         "https://github.com/pfalcon/ScratchABit/issues",
         "",
     ] + traceback.format_exc().splitlines())
     v.loop()
     self.redraw()
Exemplo n.º 2
0
 def show_exception(self, e):
     log.exception("Exception processing user command")
     L = 5
     T = 2
     W = 70
     H = 20
     self.dialog_box(L, T, W, H)
     v = Viewer(L + 1, T + 1, W - 2, H - 2)
     import traceback
     v.set_lines([
         "Exception occurred processing the command. Press Esc to continue.",
         "Recommended action is saving database, quitting and comparing",
         "database files with backup copies for possibility of data loss",
         "or corruption. The exception was also logged to scratchabit.log.",
         "Please report way to reproduce it to",
         "https://github.com/pfalcon/ScratchABit/issues",
         "",
     ] + traceback.format_exc().splitlines())
     v.loop()
     self.redraw()
Exemplo n.º 3
0
def help(screen):
    screen.dialog_box(L, T, W, H)
    v = Viewer(L + 1, T + 1, W - 2, H - 2)
    v.set_lines((HELP + cpu_help).splitlines())
    v.loop()
Exemplo n.º 4
0
def help(screen):
    screen.dialog_box(L, T, W, H)
    v = Viewer(L + 1, T + 1, W - 2, H - 2)
    v.set_lines((HELP + cpu_help).splitlines())
    v.loop()