[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] PGU and Text Boxes



You could also blit to a surface and then move the source rect of the surface up or down corresponding to the position of the scroll bar and blit it in a frame .  If you want the items to be selectable, perhaps via mouse, you could generate an index by checking for collisions of mouse_pos() against an area determined by an offset of surface position.

On 5/10/06, Phil Hassey <philhassey@xxxxxxxxx> wrote:
Hi,

I think you can do this by adding and removing rows from Tables within a ScrollBox.

Hope that helps!
Phil


David < dvkeeney@xxxxxxxxx> wrote:
Kris:
 
Have you looked at Ocemp GUI?  It does include a vertically scrolling box
for text lines.
 
If you do choose to implement such a vertically scrolling box for PGU, I, for one,  would appreciate
your sharing it with us. 
 
David

 
On 5/10/06, Kris Schnee <kschnee@xxxxxxxxxx > wrote:
I'm overwhelmed with too many variations on game and other ideas right
now, but one recurring theme is that I need a good interface. My
homebrew one is ugly.

I tried using PGU, but found that something important was missing. I
have, and need, a box that contains a vertically-scrollable block of
variable text. That is, it displays lines of text (some of which are
actually longer than one line) that can be added to or cleared as
necessary without replacing the whole widget, and another widget can
scroll up or down through the set of lines because it can hold more than
it displays at once.

Could PGU have such a widget after all?

Kris




--
dkeeney@xxxxxxxxxxxxxxxx
Pitcher's Duel -> pitchersduel.python-hosting.com


New Yahoo! Messenger with Voice. Call regular phones from your PC and save big.




--
Andrew Ulysses Baker
"failrate"