• 0942v8653

    Here are some of those apps: https://github.com/Pythonista-Tools/Pythonista-Tools/blob/master/Pythonista Apps in the Apple AppStore.md

    Pythonista-based apps are already more native than bottled-up web apps that run WebKit inside (of which there are many), so there's no real reason to worry about it being "acceptable".

    posted in Pythonista read more
  • 0942v8653

    At risk of derailing the thread…

    I think each app has its strong suits—Codea looks good for making games and simulations, but Pythonista is definitely better for scripting and interoperability, has an easily accessible filesystem, and most importantly runs on iPhone.

    posted in Pythonista read more
  • 0942v8653

    Unfortunately it's a bit more complicated than that. You'll need a $99/year Apple Developer license in order to submit apps or even test them on a device. More details are at https://developer.apple.com; if you sign up, you can download omz's Xcode template and copy your scripts over.

    The more popular option for sharing scripts is putting them on Github (https://github.com). The downsides to this are that they're harder to install and you need Pythonista to do it.

    posted in Pythonista read more
  • 0942v8653

    I'd also love to able to use a custom TTF/installed font in Editorial and Pythonista. FontInstaller.py is awesome, it's a shame I can't use it in my favorite apps.

    posted in Pythonista read more
  • 0942v8653

    dglessus: When I tried that (with the Mikey Shorts series), it bugged out and said "This item is not available in the US store."

    posted in Pythonista read more
  • 0942v8653

    Editorial has this feature.

    posted in Pythonista read more
  • 0942v8653

    Pygame isn't supported in Pythonista, right now anyway. It probably wouldn't be too difficult to write a wrapper of it using the scene module, but most Pygame games rely on mouse and keyboard, so it wouldn't be to much more work to make it use the scene module if you're already rewriting it for touch.

    posted in Pythonista read more
  • 0942v8653

    404 for me.

    posted in Pythonista read more
  • 0942v8653

    You could also do

    reload(__import__('x'))
    from x import y
    

    posted in Pythonista read more
  • 0942v8653

    Your url needs to start with http:// or safari-http:// to get it to open.

    You may also want to close the view first if you're using http:// (the built-in web browser).

    posted in Pythonista read more
  • 0942v8653

    reefboy1: what do you want to take screenshots of?

    posted in Pythonista read more
  • 0942v8653

    What do you mean? If you want to serve a website you can use a script like this:

    import SimpleHTTPServer
    import SocketServer
    import webbrowser
    
    handler = SimpleHTTPServer.SimpleHTTPRequestHandler
    httpd = SocketServer.TCPServer(("", 0), handler)
    
    port = httpd.server_address[1]
    
    webbrowser.open('http://localhost:' + str(port))
    
    httpd.serve_forever()
    

    and put your index.html file in the same directory.

    posted in Pythonista read more
  • 0942v8653

    Unfortunately that's not possible in the App Store. Pythonista has plenty of export options but Apple wants to make it as hard as possible to import any sort of code that can be executed.

    posted in Pythonista read more
  • 0942v8653

    You could also try a WebDAV server like this; I find it really nice to be able to connect natively with Finder (Command+K, http://something.local:8000) and copy and paste like that. I've also used it as a way to make bigger edits on my files by connecting and opening the file with Sublime Text or emacs.

    posted in Pythonista read more
  • 0942v8653

    With Workflow for iOS or Launch Center Pro you could make it come up so all you have to do is hit send.

    posted in Editorial read more
  • 0942v8653

    @wradcliffe: confirmed in 1.5.

    posted in Pythonista read more
  • 0942v8653

    Use the @ui.in_background decorator so it doesn't run in the main UI thread (in your code, time.sleep blocks the entire UI from updating for ten seconds).

    posted in Pythonista read more
  • 0942v8653

    On an iPhone it just comes straight from the bottom and takes up the width of the screen (in landscape it's centered horizontally).

    posted in Pythonista read more
  • 0942v8653

    I created a script that can make a spacer icon (an image that's just a cropped version of your wallpaper at the relevant location) to put on your home screen. It runs a Bottle server and opens a page in Safari where you can tap a position to use as the icon. Then you can tap the Share button and add the page to your home screen. It uses the zero-width joiner (&zwj) as an invisible space that Safari accepts as a bookmark name.

    Here it is on Github: 0942v8653/pythonista-homescreen-spacer

    Of course you can also make an icon to add a new spacer icon with my pythonista-homescreen-icon script.

    posted in Pythonista read more
  • 0942v8653

    I updated the script so that you only need to change those top four lines (the other numbers are calculated automatically). It should also support non-retina displays or iPhone 6+ if you can figure out those numbers at the top.

    posted in Pythonista read more
Internal error.

Oops! Looks like something went wrong!