On 05/30/12 22:12, Larry G. Wapnitsky wrote:
OK. Got it working (sort of). Now I can compile, but nothing shows up. I'm also given "not a function:" errors when running the sample code as such:

from pyjamas import Window
from pyjamas.ui import RootPanel, Button

def greet(sender):
     Window.alert("Hello, AJAX!")

b = Button("Click me", greet)
RootPanel().add(b)

HELP!

Hi, Larry!

Looks like it must be:

from pyjamas.ui.Button import Button
from pyjamas.ui.RootPanel import RootPanel

Trying to run new code under pyjd helps to find this kind of mistakes a lot!

Seva

Reply via email to