我在 debian 上安装了睡衣
http://pyjs.org/getting_started.html
但是我的程序找不到模块,可能是什么问题,我已经使用 apt-get 正确安装了睡衣
krisdigitx-virtual-machine ~ # python jamas.py
Traceback (most recent call last):
File "jamas.py", line 3, in <module>
from pyjamas import Window
ImportError: No module named pyjamas
krisdigitx-virtual-machine ~ #
#!/usr/bin/env python
from pyjs import Window
from pyjs.ui import RootPanel, Button
from pyjs.ui import HTML
def greet(sender):
Window.alert("Hello Krishna!")
b = Button("click me", greet)
Rootpanel().add(b)
经过一番研究:
我必须做pyjsbuild jamas.py
才能获取输出目录,但是它给了我一个新错误
jamas TypeError: jamas.RootPanel().add is not a function