omz:software Forums

Pythonista

If you want to participate in the discussion, you have to sign up or log in.

Categories: General, Share Code, Questions RSS (All Posts)

All Discussions

Python Objective-C Bridge

Hi First of all, great product! I'm pretty sure I can call back into Objective-C by writing a statically compiled python library with the functions I want in it (I can see examples of this in places like scene.py and canvas.py (e.g. import _canvas)). BTW...

Started by snaggled (in Questions) — 1 reply 1 hour ago


Python benchmarking

I thought it might be interesting to benchmark everything in my home that ran python, and compare the different speeds. I used the pystone benchmark that can be found here Here are my results: Ipod touch 5 with A5 processor at 800MHz Pythonista 1.4: 50...

Started by nope (in General) — 15 replies, latest 1 hour ago


ImageView Bug

I've discovered a very irritating hang-up bug. The following code demonstrates it: import ui v = ui.View() im = ui.ImageView() im.load_from_url('http://upload.wikimedia.org/wikipedia/commons/d/db/Patern_test.jpg') im.flex = 'LRTBWH' v.add_subview(im) v....

Started by henryiii (in General) — 1 reply 2 hours ago


Accelerometer error dependant on phone position?

I was just playing around with the ipod touch 5 accelerometer using pythonista's motion module. I wrote this little script to see how much the error was: http://pastebin.com/fr7tuuKJ Apparently the error is highly dependent on the position the phone is in ...

Started by nope (in General) — 3 replies, latest 6 hours ago


Help wanted.

Another attempt at getting some help with Cloud Jump 2.

Started by techteej (in General) — 1 reply 19 hours ago


Atomic operations?

This is more of a general Python question, but maybe someone can help me - what exactly does it mean when an operation is "atomic"? Looking over various websites it appears to be assumed basic Python jargon, yet I can't find a definition anywhere. There is...

Started by dgelessus (in Questions) — 2 replies, latest 23 hours ago


pcista - Pythonista modules ported to PC project is back!

Hey guys! Haven't been on the forums for a long time. I also haven't been working on this project for like a month... ew... Well, now I am back with some nice updates :) I've fully rewritten the code, and now it has almost no global variables, also suppo...

Started by ShadowSlayer (in General)


Pythonista Webbrowser

I started making a webbrowser with the ui module. It's not much now, but it works. https://github.com/SebastianJarsve/Pythonista-Webbrowser

Started by Sebastian (in Share Code) — 5 replies, latest 1 day ago


Recording

Is there any way I could make a script to record from the microphone?

Started by techteej (in Questions) — 12 replies, latest 1 day ago


Started by techteej (in Questions)


Flashcard script

Find here a script for creating and viewing a set of flashcards using ui. As soon as I figure out how (help, help), I'll upload the views. Thanks to omz for an incredible programming environment for iOS.

Started by polymerchm (in Share Code) — 9 replies, latest 2 days ago


Github

I am struggling with downloading scripts from github that are not gists. How does one do that without going through things like goodreader and then cutting/pasting, but brings them directly into pythonista. The "New from Gist" tool only works for GISTs ...

Started by polymerchm (in General) — 10 replies, latest 2 days ago


Apply a style to all your ui.Views

I've come up with a way to create one .pyui file that all other .pyui files use to set thier style. This is a very early design, please feel free to add to it or offer suggestions. This would allow you to have several designs and switch between them at run...

Started by briarfox (in General) — 3 replies, latest 2 days ago


github and shellista

No offense to the author, but the implementation git within shellista seems pretty shaky, at least in my hands. What are most folks using?

Started by polymerchm (in Questions) — 3 replies, latest 2 days ago


Dropbox File Picker

I thought now that there's no Open in... anymore, I'd build a little UI/script to get files from Dropbox into Pythonista more easily: → Dropbox File Picker.py (GitHub) It's pretty basic – once you've completed the setup (you need to configure some things...

Started by omz (in Share Code) — 19 replies, latest 2 days ago


Changing a variable with UI switches

How would I go about changing a variable with UI switches? I am learning from everyone's help on here. Thanks in advance.

Started by techteej (in Questions) — 11 replies, latest 3 days ago


Hi, I'm trying to build and package a script and its .pyui file into a standalone .ipa file in Xcode. I have Apple developer provisioning...

Hi, I'm trying to build and package a script and its .pyui file into a standalone .ipa file in Xcode. I have Apple developer provisioning profile and have successfully been using the Pythonista v1.5 template to create standalone apps where any UI code is d...

Started by ltddev (in General) — 22 replies, latest 3 days ago


Manipulating Long Ints

I'm brand new to Python (and, by extension Pythonista). In fact, I'm new to coding with an iOS device altogether, so bear with me: I'm trying to perform operations (like sqrt) on long integers (100 to 200 digits). I get an error saying that the long int...

Started by mgd (in General) — 7 replies, latest 4 days ago


Dynamic View Name error

I'm trying to use the page name as a sort of dynamic label, sending information to the user in a convenient way. I can get this to work using just the custom view but it doesn't seem to work when the view is being presented via the navigation view. Here's...

Started by Omega0 (in Questions) — 5 replies, latest 5 days ago


Get current screen or orientation width?

In the new ui module, is there a way to get screen width? Or, to change popover location to a different corner? For instance, by default popover goes to top right... How would I go about moving it to the bottom right, and have it stay there across orient...

Started by JonB (in Questions) — 7 replies, latest 5 days ago