Ah, good one! Yeah, that's what pyjd is good for.
Actually, why doesn't pyjsbuild spot such problems? Shouldn't that result in a compile error, really? I recall that bothered me too in the past. Peter 2012/5/31 Vsevolod Fedorov <[email protected]>: > 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 >
