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

Re: [pygame] Re: pygame and run once



for sure ... it's the classical way

it seems me that there was a "pygame mechanism" to do the same things ...
i believe i red that before on an internet page ....


On Wed, 13 Oct 2004 19:34:31 +1000, Glen Wheeler <adsl5lcq@tpg.com.au> wrote:
> 
>   Well, you could simply try to open a file when starting the program, and
> if it is already open, quit, and if not, start up as per usual.
> 
>   If you want to start switchign window focus then that is more suited to
> platform specific programming (or, if you are so inclined, a GUI library).
> 
>   HTH,
>   Glen
> 
> 
> 
> ----- Original Message -----
> From: "manatlan" <manatlan@gmail.com>
> To: <pygame-users@seul.org>
> Sent: Wednesday, October 13, 2004 6:06 PM
> Subject: [pygame] Re: pygame and run once
> 
> > nobody has got a simple idea to run once a "pygame app" ?
> >
> >
> > On Mon, 11 Oct 2004 16:07:52 +0200, manatlan <manatlan@gmail.com> wrote:
> >> It seems there is a "pygame way" to allow a pygame script to be runned
> >> once.
> >> i believe that i'd seen that one day. but i'm not able to find it
> >> again...
> >>
> >> i'm on a linux box ...
> >>
> >> i would like to have :
> >> - when i first launch my script : it start
> >> - when i launch the script again, it give back the focus to the last
> >> instance, and close it
> >>
> >> i'm pretty sure that i've read it somewhere ...
> >>
> >
> >
> 
>