[wxpython-users] Re: Full screen application

Grant Edwards grante at visi.com
Mon May 5 07:51:16 PDT 2008


On 2008-05-05, Paul Scott <pscott at uwc.ac.za> wrote:

> As a start, I have given myself a project to create a game for
> my 2 year old son (who likes "pressing buttons on daddy's
> puta"). Basically, I am catching key events and displaying a
> relevant photo on screen (like he presses 'a' and gets a pic
> of an apple etc). One thing, though, is that he can still mess
> up my panels on my Gnome desktop with the mouse.

FWIW, PyGame is probably a better choice:  http://www.pygame.org/

> What I would like to do, is to get the application to run
> fullscreen

I think that's the default for PyGame. :)

> so that the desktop and panels are all hidden. Also, I don't
> suppose there is a way to disable the on/off switch on my
> laptop eh? ;)

Sure.  The power switch generates an ACPI event, and you should
be able to configure acpid to do whatever you want with it.
[The main board probably does a hardware power-off if you hold
it down for 5 seconds or so -- I doubt there's anything you can
do to disable that.]

-- 
Grant Edwards                   grante             Yow! The entire CHINESE
                                  at               WOMEN'S VOLLEYBALL TEAM all
                               visi.com            share ONE personality --
                                                   and have since BIRTH!!



More information about the wxpython-users mailing list