示例#1
0
 def _get_acceleration(self):
     return osx_motion_sensor.get_coord()
示例#2
0
 def _enable(self):
     try:
         osx_motion_sensor.get_coord()
     except:
         raise Exception('Could not enable motion sensor on this macbook!')