On Tue, Oct 23, 2012 at 5:18 AM, kuttifunk <[email protected]> wrote: > Hi all, > > using pyjs-9ef2b7b 0.8.1~+alpha1 i got following: > > self.buttons = [] > .... > button = Button(bname,self.onClick,StyleName=bname) > self.buttons.append(button) > self.add(button) > > works as expected, whereas > > self.buttons = [] > .... > self.buttons.append(Button(bname,self.onClick,StyleName=bname)) > self.add(self.buttons[-1]) > > yields above error.
what error? > What am i possibly missing with python lists in pyjs? Lazy binding problem? what are you build options? please post complete code demonstrating your issue so we have something concrete to work from. (on a side note, i'd much rather enable --strict by default to avoid the simple problems people encounter when getting started... you should optimize AFTER the fact, not before) thanks, -- C Anthony --
