• omz

    @cvp Well, not quite. You can also launch these shortcuts using Spotlight search, and the Shortcuts Today widget, in case you don't want to use Siri.

    posted in Pythonista read more
  • omz

    @mithrendal I see thanks. I'll look into it tomorrow, but I think you might be able to move the main_view creation into the global scope (i.e. out of the main function) to make it work, but it's getting pretty late here, and my iPad is busy, so I can't really test this theory right now. I definitely had a working example (just not very pretty) when I posted the last beta.

    posted in Pythonista read more
  • omz

    Now that there is a Shortcuts module in the Pythonista beta, is there a way to run a shortcut from Pythonista and have it executed without seeing the Shortcuts app open on the screen?

    I don't think that's possible at all. (In case you're wondering: Yes, there's obviously a private framework that does this, but I'm almost certain it would require special, Apple-only entitlements for the app.)

    posted in Pythonista read more
  • omz

    @JonB That's really interesting, but I can't get it to work. file just ignores my custom ~/.magic file (that works when I pass it with the -m flag).

    @dgelessus The #LyX approach seems to be working on Mojave, though I haven't yet tested with the entire library. Thanks!

    posted in Pythonista read more
  • omz

    It looks like my workaround for High Sierra has stopped working on Mojave... Replacing the file utility that Xcode uses doesn't seem entirely trivial, due to System Integrity Protection.

    I still have a Mac with High Sierra to upload builds, but I think I'll have to change my approach pretty soon, and there isn't really much of a point releasing the Py3 template as it is, because it's probably broken for everyone on Mojave…

    If I don't find a better way, I might just package the standard library as a zip file, and unzip it on first launch, but that would require more storage space and also slow down the first launch.

    posted in Pythonista read more
  • omz

    @castro Not yet, sorry, I'm currently working on other things, but it's on my todo list for 3.3.

    posted in Pythonista read more
  • omz

    There isn't a "standardized" way to do this, mostly because there isn't a one-to-one mapping between UIKit views and classes in the ui module.

    I guess you could just walk the view hierarchy until you find a view of the type (e.g. UISwitch) you're interested in though.

    posted in Pythonista read more
  • omz

    @sashk In general, you tap on the (?) button in the console, or on the "Documentation" button in new tabs to get to the documentation. You can then search for shortcuts (or other module names) there.

    posted in Pythonista read more
  • omz

    Looks very nice! 👍 I think you could make this work on other screen sizes relatively easily, by setting the flex attribute for each of the view appropriately, though the timer display might require some manual work in layout.

    posted in General Discussion read more
  • omz

    I apologize for this bug, this is in no way meant to force anyone to upgrade to 3.6, but I'd seriously recommend that you get on board with Python 3 quite soon, as it'll ensure that your code will continue to run without problems in the future.

    I don't think that I'll remove Python 2.7 support from Pythonista in the near future, but a lot of new features require Python 3 already.

    posted in Pythonista read more

Internal error.

Oops! Looks like something went wrong!