forked from CRImier/pyLCI
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #85 from ZeroPhone/staging
Contexts, Canvas, new apps, Input device capabilities, UniversalInput, prettier UI, tests, safer shell scripts
- Loading branch information
Showing
131 changed files
with
5,514 additions
and
983 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
from __future__ import print_function | ||
|
||
menu_name = "Menu arrow testing" | ||
|
||
from ui import Menu | ||
|
||
#Some globals for us | ||
i = None #Input device | ||
o = None #Output device | ||
|
||
def callback(): | ||
contents = [["Arrow test", lambda: print("Enter"), lambda: print("Right")]] | ||
Menu(contents, i, o, "Menu arrow test menu").activate() | ||
|
||
def init_app(input, output): | ||
global i, o | ||
i = input; o = output | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,17 @@ | ||
menu_name = "Python sandbox" | ||
|
||
from ui import Printer | ||
|
||
#Some globals for us | ||
i = None | ||
o = None | ||
|
||
def callback(): | ||
import code | ||
code.interact(local=dict(globals(), **locals())) | ||
context = None | ||
|
||
def init_app(input, output): | ||
global callback, i, o | ||
global i, o | ||
i = input; o = output | ||
|
||
def set_context(new_context): | ||
global context | ||
context = new_context | ||
|
||
def callback(): | ||
import code as __code__ | ||
__code__.interact(local=dict(globals(), **locals())) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.