On Sun, Sep 23, 2012 at 2:36 PM, Zack <[email protected]> wrote: > Hey there, I posted this on Stackoverflow as well, but noticed that the > activity in the pyglet section there is pretty low, so I figured it would > be better to post it here. > > The question is nicely formatted on stackoverflow, so I'll just link it: > http://stackoverflow.com/questions/12555681/how-do-i-make-text-in-pyglets-scrollabletextlayout-scroll-upwards-rather-than > > > Basically, my question is how do I make text scroll upwards rather than > downwards in a ScrollableTextLayout? I thought the property I needed to set > was .view_y, but I've tried many different positive and negative values, > but received no change in behavior. So, I'm not sure if (a) that's even > what that property is for, or (b), it is, and I'm just using it > incorrectly. > > Thanks for the help! >
You're welcome. :-) I gave a nice, long, nicely formatted answer on StackOverflow. The short version is to add the following line to your update() method: self.layout.view_y = -self.layout.content_height ~ Nathan -- You received this message because you are subscribed to the Google Groups "pyglet-users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/pyglet-users?hl=en.
