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


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

Re: Airplane mode control using Python?

Started byMichael Torrie <torriem@gmail.com>
First post2013-12-22 20:41 -0700
Last post2013-12-22 20:41 -0700
Articles 1 — 1 participant

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

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Airplane mode control using Python? Michael Torrie <torriem@gmail.com> - 2013-12-22 20:41 -0700

#62586 — Re: Airplane mode control using Python?

FromMichael Torrie <torriem@gmail.com>
Date2013-12-22 20:41 -0700
SubjectRe: Airplane mode control using Python?
Message-ID<mailman.4528.1387770099.18130.python-list@python.org>
On 12/22/2013 08:20 PM, Kevin Peterson wrote:
> Hi, 
> 
> I am trying to control Aeroplane mode on Android using Python code.
> I am running QPyPlus python. When I execute this code(that is widespread
> in the net),
> 
>     #!/usr/bin/python 
>     import android droid = android.Android()
>     # go to airplane mode
>      droid.toggleAirplaneMode()
>      
>     droid.makeToast('exiting')
> 
> I get the error 'no such attribute Android()'. 

Is that really how your code is formatted? The import line is an error.

try:

import android


droid = android.Android()

[toc] | [standalone]


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


csiph-web