• mikael

    @cvp, no, because I needed the ability to access the photo albums, so I rolled my own, here: https://github.com/mikaelho/onedriver/

    posted in Pythonista read more
  • mikael

    @cvp, no worries, I have everything for OneDrive, just thinking that it might be at times useful to have a OneDrive file picker in Pythonista.

    posted in Pythonista read more
  • mikael

    @cvp, nice! I guess this could be a good basis to create something similar for OneDrive.

    posted in Pythonista read more
  • mikael

    @RocketBlaster05, look at decimal.Decimal, it handles decimal (duh) numbers sanely.

    posted in Pythonista read more
  • mikael

    @JonB, in these modern times we can use all unicode alphabetic characters in variables, so I could have e.g. päiviä (days) as a variable name.

    posted in Pythonista read more
  • mikael

    @RocketBlaster05, you do not use global to declare something as global. push2 is global because it has been defined in the global scope.

    You only use global within the function to declare that you want to change the value of the global variable.

    posted in Pythonista read more
  • mikael

    @RocketBlaster05, from the docs:

    scene.run(scene, orientation=DEFAULT_ORIENTATION, frame_interval=1, anti_alias=False, show_fps=False, multi_touch=True)

    Runs the given Scene object. By default, the scene runs in the current device orientation, set the parameter to PORTRAIT or LANDSCAPE to force a specific orientation (and to disallow auto-rotation). Important: The orientation parameter has no effect on iPads starting with iOS 10 because it is technically not possible to lock the orientation in an app that supports split-screen multitasking.

    posted in Pythonista read more
  • mikael

    @halloleooo, from what I read, share extensions should have a 120 MB memory limit, not sure how much Pythonista takes.

    posted in Pythonista read more
  • mikael

    @alexsunnyx123, there is no keyboard shortcut in the product. People have used their own scripts to add a shortcut in the past. An example of commenting the current line by code is in the Pythonista docs, and I think you can add a shortcut for an external keyboard, but do not have the code handy.

    posted in Pythonista read more
  • mikael

    @halloleooo, you could explicitly write lines to a file at different points of your script, starting with a version that does nothing much, before adding the image handling.

    pathlib.Path.write_text is a convenient one-liner for this.

    posted in Pythonista read more

Internal error.

Oops! Looks like something went wrong!