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

In ui how to implement gestures

I can see how to subclass View and I see how to turn on multi-touch. In my simple example I see the touch events. What I don't understand is how to process only some multi-touch events (say for a swipe in the top enclosing view) but leave the rest for the ...

Started by zencuke (in Questions) — 5 replies, latest 1 hour ago


Pythonista 1.6 Beta

So, with Apple's new TestFlight, I can finally have a lot more beta testers, and won't have to worry about device limits so much. If you'd like to play with the next version of Pythonista before it hits the App Store, please send me an email with your App...

Started by omz (in General) — 75 replies, latest 4 hours ago


Switching to SceneView zooms in Scene?

I used the code below to change a scene into a Scene View (launched by a button in a UI Menu), and it seems that the game scene is zoomed in. It also cuts off the scene and does not fill the entire screen. w, h = ui.get_screen_size() root_view = ui.View(...

Started by techteej (in Questions) — 22 replies, latest 19 hours ago


Module grabber

I was curious as to what some of the modules (as in, import {module}) actually look like. So I made this script to pull them from the app's site-packages folder. https://gist.github.com/79be00ce58370583b65f I'm sure it can be improved – all I ask is tha...

Started by misha_turnbull (in Share Code) — 2 replies, latest 1 day ago


Newb to Python and Pythonista

when I create a script named 'mymodule' with class named 'myclass' in the Pythonista editor I can import that module from the console, instantiate the the class and test from the console. However when I make changes in the editor, and repeat that procedure...

Started by Kithara (in Questions) — 2 replies, latest 1 day ago


Handle double tap in TextView?

Is it possible to handle double tap event in a TextView? Or somehow let the TextView pass the event to its parent CustomView?

Started by ywangd (in Questions) — 2 replies, latest 1 day ago


Crossword/Codeword grid query

Hi, I'm not used to coding with Python so using Pythonista to help learn the ways on my mobile device for convenience. I'm trying to rewrite a codeword solver I wrote in Visual Basic for Excel. I used the spreadsheet grid for the user interface but not sur...

Started by GaryGadget (in General) — 33 replies, latest 1 day ago


Possible to script the Interactive Prompt?

Hi, It does not seem to be possible to script the Interactive Prompt, e.g. clear the input, set the content, position the cursor? Would it be possible to add these functions as part of "console" module in future release? These features would be very use...

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


Jono's Pythonista Scripts (Fast Image Sharing, Intuitive File Downloading and more)

Hey everyone, ever since I bought Pythonista I've been getting more and more into learning Python, generally by creating scripts to fix any little problems or inconveniences I come across in my day-to-day digital life. So far I've made scripts which enable...

Started by HeyItsJono (in Share Code) — 7 replies, latest 3 days ago


xcode equivalent of site-lib directory?

I'm running xcode versions of my code but the template shows using only one file Script.py. I've been cutting and pasting everything into that one file but that is an error prone process. I'd rather use the same files I (actually symbolic link to dropbox s...

Started by zencuke (in Questions)


General bug report thread

Changing the name of any folder will always move it into the root Script Library folder, even if it was previously located elsewhere. Fortunately this does not cause data loss, all files will still be in the folder after this happens, so you can move the f...

Started by dgelessus (in General) — 47 replies, latest 3 days ago


Cell borders

I can alter border widths and colors of the cells I create. How can I access those properties on the autogen cells that fill out the rest of the tableview?

Started by Dann (in Questions) — 6 replies, latest 3 days ago


Pretty please CoreMidi for 1.6

Developing musical applications in pythonista. Want to play more notes that just the 2 piano octaves without having to have a "note" waveform library.

Started by polymerchm (in General) — 5 replies, latest 4 days ago


How long will a pythonista script run for before shutting down?

I'm new to both python and pythonista and I'm wondering how long a script will run before it shuts down? Will a script shut down even when actively being used or only when run in the background.

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


What would be an equivalent python setup on a mac

Ok, complete newby wannabe coder here, and I've made something in pythonista I quite enjoy, but I just got a Macbook Pro and would like to find an equivalent setup for it. Where should I invest my time? Xcode, Pycharm, or what? I really love how smooth it ...

Started by sunrizersounds (in General) — 2 replies, latest 5 days ago


Remove Back Button

I added a leftbuttonitems to a view, but the back button is still there. Is there a way to remove the back button?

Started by bmccardle (in Questions)


Regex oddity

When trying to use the re module in Pythonista - I get some weird behavior. Specifically the re.sub method doesn't work as documented. Here's my code with sample text. This has been tested in multiple python regex "testers" (e.g. http://regex101.com/r/yP7b...

Started by hyshai (in General) — 3 replies, latest 6 days ago


Swampy from Think Python

I'm learning Python on my iPad using Pythonista by following along with the Think Python book. It calls for importing Swampy and Tkinter. Anyone done this before? Or is it even possible? Thanks http://www.greenteapress.com/thinkpython/swampy/install.html

Started by smisuta (in Questions) — 1 reply 6 days ago


matplotlib pylab questions ...

Can matplotlib and pylab be used in a view or scene view? If yes - can the animation capabilities be accessed? I have been trying examples from http://matplotlib.org/examples/index.html and non of the animation ones seem to work, but most others work fine...

Started by wradcliffe (in Questions) — 2 replies, latest 7 days ago


NavigationView on screen

I didn't see anything in the documentation. I have a NavigationView with a TableView. If I push a new TableView, how can I tell when the view on screen changes? More clarification: I have a custom refresh button that disappears when I push a new view, how...

Started by Dann (in Questions) — 2 replies, latest 7 days ago