Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #62585
| References | <abcd1234abc123ab12a0000025741000010000001052@gmail.com> |
|---|---|
| Date | 2013-12-23 14:33 +1100 |
| Subject | Re: Airplane mode control using Python? |
| From | Chris Angelico <rosuav@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.4527.1387769595.18130.python-list@python.org> (permalink) |
On Mon, Dec 23, 2013 at 2:20 PM, Kevin Peterson <qh.resu01@gmail.com> wrote:
> 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()'.
Python code is sensitive to changes in whitespace. The above is
actually a syntax error, because lines have been merged and indented
incorrectly. You seem to be posting from Google Groups, which may be
why it's messed up; I recommend switching to something else, like
Mozilla Thunderbird, or subscribing instead to the mailing list (with
all the same content):
https://mail.python.org/mailman/listinfo/python-list
ChrisA
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
Re: Airplane mode control using Python? Chris Angelico <rosuav@gmail.com> - 2013-12-23 14:33 +1100
Re: Airplane mode control using Python? rurpy@yahoo.com - 2013-12-22 20:52 -0800
Re: Airplane mode control using Python? Chris Angelico <rosuav@gmail.com> - 2013-12-23 16:37 +1100
Re: Airplane mode control using Python? rurpy@yahoo.com - 2013-12-22 22:59 -0800
Re: Airplane mode control using Python? Chris Angelico <rosuav@gmail.com> - 2013-12-23 19:46 +1100
Re: Airplane mode control using Python? rurpy@yahoo.com - 2013-12-24 17:37 -0800
Re: Airplane mode control using Python? Chris Angelico <rosuav@gmail.com> - 2013-12-25 21:56 +1100
Re: Airplane mode control using Python? rurpy@yahoo.com - 2013-12-25 14:16 -0800
Re: Airplane mode control using Python? Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-12-23 09:18 +0000
Re: Airplane mode control using Python? rurpy@yahoo.com - 2013-12-22 22:09 -0800
Re: Airplane mode control using Python? Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-12-23 10:39 +0000
Re: Airplane mode control using Python? Chris Angelico <rosuav@gmail.com> - 2013-12-24 03:12 +1100
Re: Airplane mode control using Python? Kevin Peterson <qh.resu01@gmail.com> - 2013-12-23 11:08 +0530
Re: Airplane mode control using Python? Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-12-23 06:34 +0000
Google Groups + this list Ned Batchelder <ned@nedbatchelder.com> - 2013-12-23 06:48 -0500
Re: Google Groups + this list rurpy@yahoo.com - 2013-12-24 17:44 -0800
Re: Google Groups + this list Ned Batchelder <ned@nedbatchelder.com> - 2013-12-25 23:11 -0500
Re: Google Groups + this list rurpy@yahoo.com - 2013-12-26 12:11 -0800
Re: Google Groups + this list Chris Angelico <rosuav@gmail.com> - 2013-12-26 15:17 +1100
Re: Google Groups + this list rurpy@yahoo.com - 2013-12-25 21:13 -0800
Re: Google Groups + this list Chris Angelico <rosuav@gmail.com> - 2013-12-26 23:41 +1100
Re: Google Groups + this list rurpy@yahoo.com - 2013-12-26 12:04 -0800
Re: Google Groups + this list Dave Angel <davea@davea.name> - 2013-12-27 07:31 -0500
Re: Google Groups + this list Rustom Mody <rustompmody@gmail.com> - 2013-12-26 10:04 +0530
Re: Google Groups + this list Ned Batchelder <ned@nedbatchelder.com> - 2013-12-26 08:20 -0500
Re: Google Groups + this list Chris Angelico <rosuav@gmail.com> - 2013-12-24 03:22 +1100
Re: Google Groups + this list rurpy@yahoo.com - 2013-12-24 17:47 -0800
Re: Google Groups + this list Ned Batchelder <ned@nedbatchelder.com> - 2013-12-25 07:19 -0500
Re: Google Groups + this list Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-12-26 01:26 +1100
Re: Google Groups + this list rurpy@yahoo.com - 2013-12-25 14:09 -0800
Re: Google Groups + this list Joel Goldstick <joel.goldstick@gmail.com> - 2013-12-25 07:25 -0500
csiph-web