예제 #1
0
def duck(stdscr):
  client = qUAck(filename = 'quackrc')	
  stdscr.addstr(client.get_menu_text())
  stdscr.refresh()

  menu_continue = True

  while menu_continue:
    c = stdscr.getch()

    if c == ord('l') or c == ord('L'):
      stdscr.addstr("\nList of folders")
      stdscr.addstr("\n"+client.get_menu_text())
    elif c == ord('q') or c == ord('Q'):
      menu_continue = False
    else:
      stdscr.addstr("\n"+client.unrecognised_command)
      stdscr.addstr("\n"+client.get_menu_text())

    stdscr.refresh()
예제 #2
0
파일: run.py 프로젝트: pwaring/quackjson
from quack import qUAck

client = qUAck(filename = 'qUAckrc')