[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] new user
On Mon, 13 Sep 2004 22:46:57 -0700, Ben Hitz <hitz@avigne.org> wrote:
> Hey there.
>
> two quick questions:
>
> I seem to have pygame working fine, except that I have trouble quitting
> trivial Hello World apps from IDLE or pythonw (win). I am running
> python2.3.4 on Window XP.
for event in pygame.event.get():
if event.type == QUIT:
sys.exit()
This will allow for you to click the 'x' to close the window.
-Josh
>
> I have no problem if I just run the scripts directly
>
> Next question: Anyone have a "slider" widget? In my game, much of the
> player input I plan to do with a few sliders (like a scroll bar, but
> sets a specific scalar value)
>
> Thanks,
>
> Ben
>
>