Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #51572 > unrolled thread

Share Code: Laptop Lid State

Started byDevyn Collier Johnson <devyncjohnson@gmail.com>
First post2013-07-30 10:06 -0400
Last post2013-07-30 10:06 -0400
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python


Contents

  Share Code: Laptop Lid State Devyn Collier Johnson <devyncjohnson@gmail.com> - 2013-07-30 10:06 -0400

#51572 — Share Code: Laptop Lid State

FromDevyn Collier Johnson <devyncjohnson@gmail.com>
Date2013-07-30 10:06 -0400
SubjectShare Code: Laptop Lid State
Message-ID<mailman.5317.1375199680.3114.python-list@python.org>

[Multipart message — attachments visible in raw view] — view raw

Aloha everyone!

    I attached a script that I thought I could share with everyone for 
your help. This Python3 script only works on Unix systems. It prints the 
current state of the lid. This can be used to make a script that 
performs some action when the lid is closed or open. The script is 
licensed under LGPLv3 and I will soon upload it to my Launchpad account. 
Enjoy!

Mahalo,

DevynCJohnson@Gmail.com

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web