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

Re: [pygame] new user



Well, can you post your code and the output then? That might make this
a little easier.

-Josh


On Tue, 14 Sep 2004 12:17:17 -0700, Ben Hitz <hitz@avigne.org> wrote:
> yes, the 2nd time. <grin>
> 
> Ben
> 
> 
> 
> Josh Close wrote:
> 
> > Did you "import sys"?
> >
> > -Josh
> >
> >
> > On Tue, 14 Sep 2004 11:13:31 -0700, Ben Hitz <hitz@avigne.org> wrote:
> >
> >>Thanks, but this doesn't work with python or PythonWin.
> >>
> >>Neither does:
> >>if event.type == QUIT:
> >>     break
> >>
> >>within the event loop.  However, it doesn't crash - just doesn't exit.
> >>
> >>Ben
> >>
> >>
> >>
> >>
> >>Josh Close wrote:
> >>
> >>
> >>>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
> >>>>
> >>>>
> >>>
> >>>
> >>
> >
> 
>