From 38ac88f05eac497dcde4e4902a981cbb5a302285 Mon Sep 17 00:00:00 2001 From: Skyler Date: Wed, 4 Jan 2012 21:16:52 -0500 Subject: [PATCH 1/2] Not sure how necessary other GUI systems are. --- README | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README b/README index 775233c..7508a3c 100644 --- a/README +++ b/README @@ -1,7 +1,7 @@ Lightningbeam is currently under heavy development. Things may change often. Please note you need a patched version of PyGUI to run in PyGUI mode. -And it doesn't really run in any other mode yet. To be fixed. +And it doesn't really run in any other mode yet. To be fixed. (maybe?) To run: python lightningbeam From 69bacfdcb25d4849b56692b1a957ccd2462d3131 Mon Sep 17 00:00:00 2001 From: Skyler Date: Wed, 4 Jan 2012 22:48:11 -0500 Subject: [PATCH 2/2] Fixed Linux code --- svlgui.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/svlgui.py b/svlgui.py index d57aa2a..3eb0bb2 100644 --- a/svlgui.py +++ b/svlgui.py @@ -130,8 +130,8 @@ if sys.platform=="linux2": SYSTEM="html" ids = {} jsdefs = [] - jsfunctions = "" - sep = "/"''' + jsfunctions = ""''' + sep = "/" elif sys.platform=="win32": import pickle import GUI # Using PyGUI. Experimental. @@ -614,10 +614,13 @@ class Canvas(Widget): 63235:"right_arrow",63234:"left_arrow",13:"enter",9:"tab", 63236:"F1",63237:"F2",63238:"F3",63239:"F4",63240:"F5", 63241:"F6",63242:"F7",63243:"F8",} - if ord(event.unichars) in keydict: - key = keydict[ord(event.unichars)] + if not event.unichars=='': + if ord(event.unichars) in keydict: + key = keydict[ord(event.unichars)] + else: + key = event.unichars else: - key = event.unichars + key = event.key.upper() for i in self.objs: i._onKeyDown(key) self.invalidate_rect([0,0,self.extent[0],self.extent[1]])