• sam rod

    a néxt script is for move a copy.

    from PIL import Image
    import appex
    import ui
    
    def main():
        if not appex.is_running_extension():
            print('This script is intended to be/ run from the sharing extension.')
            return
        img = appex.get_image()
        path=appex.get_file_path()
        if not img:
            print('No input image')
            return
        if not img.mode.startswith('RGB'):
            img = img.convert('RGB')
        #print(path) use to know if the image has a direccion, do not
        #print(img)
        #print(str(img.format).lower()) is format, in case a .PNG appears
        #b=img.tobytes() a try
        img.save('hulk.'+str(img.format).lower()) # is sace in join to the script
        img.show() # just to simplified
      
    if __name__ == '__main__':
        main()
    

    next u can upload the file to Google and remove it

    posted in Pythonista read more
  • sam rod

    in this Example

    l = re.findall(r"i[a-z]", s)
    

    just select the lowercase ascii

    posted in Pythonista read more
  • sam rod

    no working we can Feature some like buttons but no UIView.present

    posted in Pythonista read more
  • sam rod

    it works

    posted in Pythonista read more
  • sam rod

    be sure of use Python 3 and implement the next code

    import namefile
    

    is we are using a file called paranimo.py
    It is write like this

    import paronimo
    

    look is not the type used

    posted in Pythonista read more
  • sam rod

    .????. Is posible or is not?

    posted in Pythonista read more
  • sam rod

    Thank u & u

    posted in Pythonista read more

Internal error.

Oops! Looks like something went wrong!