
NDKQ‘  c               @   s  d  Z  d Z d Z d d l m Z d d l Ty e j d  rQ d d l m Z n\ e j d  rs d d l	 m Z n: e j d	  r d d l
 m Z n e d
 j d e    Wnf e k
 rZ zF d d l Z e j d j d e e  d e   d d l m Z WYd d Z [ Xn Xd S(   u¦  
Provides crossplatform checking of current power source, battery warning level and battery time remaining estimate.
Allows you to add observer for power notifications if platform supports it.

Usage:
    from power import PowerManagement, PowerManagementObserver # Automatically imports platform-specific implementation

    class Observer(PowerManagementObserver):
        def on_power_sources_change(self, power_management):
            print "Power sources did change."

        def on_time_remaining_change(self, power_management):
            print "Time remaining did change."

    # class Observer(object):
    #     ...
    # PowerManagementObserver.register(Observer)
u   kulakov.ilya@gmail.comu   1.1i    (   u   platform(   u   *u   darwin(   u   PowerManagementu   win32u   linuxu   {platform} is not supported.u   platformNu[   Unable to load PowerManagement for {platform}. No-op PowerManagement class is used: {error}u   error(   u   PowerManagementNoop(   u   __doc__u
   __author__u   __version__u   sysu   platformu   power.commonu
   startswithu   power.darwinu   PowerManagementu   power.win32u   power.linuxu   RuntimeErroru   formatu   eu   warningsu   warnu   stru   PowerManagementNoop(    (    (    u2   /usr/lib/python3.3/site-packages/power/__init__.pyu   <module>   s    
%