• Sparky

    I am trying figure out how to persist my data using pythonista on my ipad. All i can find in the documentation seems to be general python ruuning on a computer.

    posted in Pythonista read more
  • Sparky

    I am new to pythonista. I am trying to draw an image on ui. Can someone take a look at this program and help me.
    Thanks

    coding: utf-8

    import ui
    from scene import *
    import Image,ImageDraw,sys
    import ui

    v=ui.load_view("imageviewtest")

    image1= Image.new("RGBA", (512, 512), "#000")

    draw = ImageDraw.Draw(image1, image1.mode)

    draw.rectangle([(1,1),(100,100)],outline=10,fill=10)

    del draw

    image1.show()

    Name=load_pil_image(image1)

    im=ui.Image()

    v["image"].load_from_url(Name)

    if ui.get_screen_size()[1] >= 768:

        v.present('popover')
    

    else:
    v.present(orientations=['portrait'])

        pass

    posted in Pythonista read more

Internal error.

Oops! Looks like something went wrong!