[wxpython-users] Full screen application
Andrea Gavana
andrea.gavana at gmail.com
Mon May 5 05:59:34 PDT 2008
Hi Paul,
On Mon, May 5, 2008 at 1:15 PM, chris botos wrote:
> On Mon, May 5, 2008 at 12:48 AM, Paul Scott <pscott at uwc.ac.za> wrote:
> >
> >
> > What I would like to do, is to get the application to run fullscreen 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? ;)
> >
>
> Hi Paul,
>
> Try: frame.ShowFullScreen(True, wx.ALL) instead of Show().
> I can't help with the power button.
For the power button question, you might try to find a way using
pywin32 (Mark Hammond's win32all), and you might follow one of these 2
paths:
1) Tweak the registry, in something like:
HKEY_CURRENT_USER\Control Panel\PowerCfg\GlobalPowerPolicy
Or:
HKEY_CURRENT_USER\Control Panel\PowerCfg\PowerPolicies
2) Find a way to access the Control Panel using pywin32, and
specifically the "Power Options" => "Advanced" => "When I press the
power button of my pc". This allows you to specify what to do when the
power button on your laptop is pressed (i.e., Do Nothing).
I don't know precisely how to do all those things in pywin32, but you
might ask to the pywin32 mailing list.
HTH.
Andrea.
"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/
More information about the wxpython-users
mailing list