Got it working now (I think). The only issue remaining in the meantime is that I can't run pyjd on Debian...stupid hulahop
On Thursday, May 31, 2012 11:24:02 AM UTC-4, Kees Bos wrote: > > What's the error you get when you what Vsevolod Fedorov said? > > > On Thu, 2012-05-31 at 11:20 -0400, Larry G. Wapnitsky wrote: > > yep...tried both, no luck. > > On 5/31/2012 10:52 AM, Kees Bos wrote: > > > On Thu, 2012-05-31 at 16:46 +0200, Peter Bittner wrote: > > >> 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? > > > Nope. > > > > > > from pyjamas.ui import RootPanel, Button > > > > > > will perfectly import the modules RootPanel and Button. > > > > > > There's probably some room for improvement on showing the right error > > > when you use these models as a class (i.e. call them). > > > > > > > > > > > >> 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 > > >>> > > > > > > > > > > > > > >
