• jimwims

    Thank you! This solved the problem. The orientations parameter does appear to be necessary.

    posted in Pythonista read more
  • jimwims

    I am writing a script for my iPhone using the ui module. I want the view to display in only the portrait orientation and not auto-rotate. I have been using the script in the "Getting Started" documentation to figure out how to do that. From the description of the present() method, I thought changing the last line in that script from "view.present('screen')" to either "view.present('portrait')" or "view.present('full_screen', 'portrait')" would work. Neither did the trick. Any suggestions on how to do this would be appreciated.

    Jim

    posted in Pythonista read more
  • jimwims

    @cvp Great!! Thanks for your help.

    Jim

    posted in Pythonista read more
  • jimwims

    I have written a few simple scripts in Pythonista (original) which I use frequently on my IPhone 5s running iOS 9.3.2.. I have just upgraded to Pythonista 3 and want to set the default version to 2.7. The documentation says this can be done in the settings. I assume this refers to the Apple settings app, but Python 3 does not show up there. (Pythonista did.) I have also tried using the shebang method described in the documentation by adding "#1 python2" (but no quotes) as the first line to the scripts. When I try to running the scrips, I get formatting error messages. Do anyone have any suggestions of where I may have gone astray? (All is not lost -- the scripts do run using the tap and hold the run button and select 2.7 method.)

    Jim

    posted in Pythonista read more
  • jimwims

    My thoughts exactly. Can't wait to see the application progress. Thanks very much.

    posted in Pythonista read more
  • jimwims

    I wrote a script in version 1.1 which used "orientation = PORTRAIT" to run a scene locked in portrait mode. This no longer works when I run the script in 1.2. What am I doing wrong?

    posted in Pythonista read more
  • jimwims

    Success! Thanks for your patience.

    posted in Pythonista read more
  • jimwims

    I have a script which uses photos.get_image multiple times with the index numbers hard coded into the script. A problem is that when lower numbered photos are subsequently deleted from the camera roll, the index numbers for the photos I want are changed so I have to change the script. Is there a way around this?

    Tnx, Jim

    posted in Pythonista read more
  • jimwims

    Yes. I did that. But I can't display them using image(). I tried using load_pll_image to load the saved photo followed by image(...) to display it, but get an error message that only RGBA is supported by load_pll_ image. Tnx.

    posted in Pythonista read more
  • jimwims

    Thanks for this, but I'm not sure I understand. My goal is to avoid using photos.get_Image() and its use of the camera roll index number.

    posted in Pythonista read more

Internal error.

Oops! Looks like something went wrong!