Fixed OSX import errors - now running
This commit is contained in:
parent
20b0db12e3
commit
8190f8010b
|
|
@ -149,6 +149,7 @@ elif sys.platform=="linux-armv6l":
|
|||
print str(sys.platform)
|
||||
elif sys.platform=="darwin":
|
||||
import pickle
|
||||
import misc_funcs
|
||||
import GUI # Using PyGUI. Experimental.
|
||||
from GUI import Window as OSXWindow, Button as OSXButton, Image as OSXImage
|
||||
from GUI import Frame as OSXFrame, Color as OSXColor, Grid as OSXGrid
|
||||
|
|
@ -635,11 +636,13 @@ class Canvas(Widget):
|
|||
obj.x = x
|
||||
obj.y = y
|
||||
self.objs.append(obj)
|
||||
if SYSTEM=="html":
|
||||
jscommunicate("cchildren["+str(self.tid)+"]="+str(self.objs))
|
||||
def delete(self, obj):
|
||||
self.objs.remove(obj)
|
||||
del obj
|
||||
self.draw()
|
||||
if SYSTEM=="html":
|
||||
jscommunicate("cchildren["+str(self.tid)+"]="+str(self.objs))
|
||||
|
||||
class TextView(Widget):
|
||||
|
|
|
|||
Loading…
Reference in New Issue