[wxpython-users] Full screen application
FT
chester_lab at fltg.net
Mon May 5 06:29:20 PDT 2008
Hi!
Or get a keyboard and plug it in and keep it away from the lap top so
the lap top keyboard is not used...or get a wireless keyboard and do it that
way. Many different options, which includes plugging in an external screen
as well, so close sitting is not required...
Bruce
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.
More information about the wxpython-users
mailing list