Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

testcurses.py

import sl4a
import curses

droid = sl4a.Android()

win=curses.initscr()
result="No result"
try:
win.box()
w,h=win.getmaxyx()
win.addstr(2,2,"Curses Test %sx%s" % (w,h))
win.addstr(10,10,"Hit a key")
win.getch()
finally:
curses.endwin()
print("Result=",result)


This post first appeared on Ricky's Python Notes, please read the originial post: here

Share the post

testcurses.py

×

Subscribe to Ricky's Python Notes

Get updates delivered right to your inbox!

Thank you for your subscription

×