"Nick Hird" <nrh...@gmail.com> wrote
I am running Windows XP.
On Wed, Oct 28, 2009 at 4:15 PM, Nick Hird <nrh...@gmail.com> wrote:
Is there a way in python to tell if the power source for a laptop is
ac or battery?
Search Microsoft Developer site (MSDN) for
GetSystemPowerStatus
which is the function that tests for battery or AC among other things.
HTH,
Alan G
_______________________________________________
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor