• nasadave

    Thanks for adding the follow up. I needed that.

    posted in Pythonista read more
  • nasadave

    I'll look into both.

    posted in Pythonista read more
  • nasadave

    Before I go too far down the learning curve, I am wondering if requests is the right module to do what I'm trying to do.

    I'd like to pass a file (initially a text file, eventually a photo with metadata) generated thru Pythonista on iPad to a file server on a Linux machine. Is requests the right approach? And are there any examples of doing what I'm trying to do that might be out there?

    I have the file creation software up and running but I don't have anything that I can do with it just yet.

    Thanks!

    posted in Pythonista read more
  • nasadave

    Ok, so I suppose I have the option of running the Linux server as a file server or an HTML server since I'll be controlling the host. That being said, would you still recommend against requests? Another approach? Basically I want to use the iPad to create a file, pass it to the Linux, and have a different program on the Linux manipulate the file.

    posted in Pythonista read more
  • nasadave

    Nothing, huh? No way to do this?

    posted in Pythonista read more
  • nasadave

    I'm using the following to take a photo on an iPad:

    myimage = photos.capture_image()

    But that always accesses the iSight camera (the one on the back of the iPad). For the purposes of my program I'd like to access the other camera every time. I realize that the user can click the camera swap button, but I'd rather skip that step since the intent of the program is to take a photo of the user every time.

    Suggestions?

    posted in Pythonista read more
  • nasadave

    Using the same method recommended to change text in a label (previous post), I am now trying to change an image based on a photo taken by the camera. The program tries, but returns a blank image to the UI. The image is definitely being taken, because I can display it to the console - just not in the ImageView image on the UI.

    Here's the code:

    v=ui.load_view('MyUI')

    v.present('sheet')

    @ui.in_background

    def getimage():

    …myimage=photos.capture_image()

    …imageview1=v['imageview1']

    …myimage = myimage.resize((50,50),Image.BILINEAR)

    …imageview.image=ui.Image(myImage)

    getimage()

    posted in Pythonista read more
  • nasadave

    But thanks for your response… I will eventually need to know how to make a PIL conversion too!

    posted in Pythonista read more
  • nasadave

    Oops, yes, you're correct. I had added this line in the def after posting the first time:

    myimage = photos.get____image(raw____data=True)

    posted in Pythonista read more
  • nasadave

    Figured it out. Needed to modify the last line in the def to:

    imageview1.image=ui.Image.from_data(myimage)

    That worked.

    posted in Pythonista read more

Internal error.

Oops! Looks like something went wrong!