Derick wrote: > So, none of the widgets are responding to mouse clicks? You're not > able to click the button, check the check box, move the slider, or > select an item from the list box? Did the button, check box, or any of > the radio buttons darken a bit when the mouse cursor is over them? > This should also be happening. > > I just tried downloading it again, and didn't have any problems > running it. Which version of Python and Pyglet are you using? As I > mentioned in the readme file, I've been developing against Python > 2.5.2 and Pyglet 1.1.2. I'm guessing the Python version doesn't matter > much. From the sounds of it, the differences from Pyglet 1.1.2 to > 1.1.3 are mostly bug fixes and the like, so I'm not sure that's the > problem, either. >
I too experienced the same problem. I haven't looked into it yet (and won't be able to for several days), but here's a hint: If I click near the top of the window, well above the listbox, I can get the listbox to respond with a changing of the highlighted line. Moving slight up/down can select about the lower half of the lines in the listbox. So it appears the mouse y-position map is off. The x-position map might be OK, but it's hard to tell. Hope that helps somewhat. Gary Herron > On Apr 26, 1:39 pm, Steve <[email protected]> wrote: > >> I just tried demo.py. Mouse clicks don't appear to do anything. >> >> On Apr 26, 2:03 pm, Derick <[email protected]> wrote: >> >> >>> I've been working on a GUI lately, and its gotten into fairly workable >>> state, so I figured I would upload it. Its still in pretty rough >>> shape, but the following widgets are available: >>> >>> - Label >>> - Static Image >>> - Button >>> - Check Box >>> - Radio Button >>> - Edit Box >>> - Slider >>> - Scroll Bar >>> - List Box >>> - Progress Bar >>> >>> Check Box is really more of a 'multi-state box'; it allows a user- >>> defined number of states, and each time its clicked, the current state >>> is incremented. When the current state reaches the maximum number of >>> states, it rolls back to 0. Its defaulted to 2 states, which is >>> essentially a normal check box. >>> >>> List Boxes can have multiple columns, and a header bar (with a button >>> for each column, which doesn't do anything currently). You can also >>> theoretically use any widget type as an element in the list. I have >>> written implementations for what I figure to be the most common - >>> basic text, check box, and image. >>> >>> Its intended to be API-agnostic, but I've written a basic pyglet >>> implementation for it. Performance isn't really that great yet, as the >>> focus has been more on functionality. >>> >>> Here's a link to the download:http://code.google.com/p/pygag/ >>> >>> Included are also a couple demos. One creates the widgets >>> programmatically, while the other loads layout information from an >>> external file. >>> > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
