Forum Archive
These pages contain a static archive of the old community forum for
Pythonista (and Editorial) between 2012 and 2022. The Pythonista forum is now hosted on GitHub:
→ Join the Discussion!
Dec 02, 2014 - 18:10
misha_turnbull
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...
Dec 02, 2014 - 07:37
Dann239
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 vie...
Dec 02, 2014 - 03:34
TutorialDoctor
The code below pushes a TextView made in the UI designer to a navigation view. It works, except for the fact that when I navigate backwards ...
Dec 02, 2014 - 02:23
pacco
[I use Pythonista on my iPad exclusively with an ext. BT keyboard. As such, the fewer times I have to take my fingers away from the keyboard...
Dec 02, 2014 - 02:20
pruppert222
Is there some way that I can set up a local site on my Mac that can show a specific folder on my Mac. I'd like to be able to navigate this f...
Dec 01, 2014 - 23:14
Bortels
I know I can hit "+" to get a drop down with the built-in images and sounds - but is there some built-in way to enumerate that list without ...
Dec 01, 2014 - 14:54
fred
Hi,
I'm trying to modify the [Docverter](http://www.editorial-workflows.com/workflow/5608504794546176/Yrcflwk7t5I) workflow so that it in...
Dec 01, 2014 - 07:06
TutorialDoctor
I've made some headway on figuring out how the Scene, Scenview, and ui (touch, draw, layout) classes are working, and I have them working to...
I realize that Pythonista does not (cannot) support Tkinter but I wondered (perhaps naively) whether it was possible to write a Pythonista s...
Nov 28, 2014 - 05:21
JonB
Has anyone gotten a custom view which is not the main view to work in the ui builder? I'm running 1.5 on ios 7.
There is a custom view w...
Nov 27, 2014 - 06:15
TutorialDoctor
Is it possible to create a "Set Document Name" Action via python?
Nov 26, 2014 - 18:49
TutorialDoctor
How would I print the lexical class of each match in the 2nd for loop (for match in matches) where it says `lex`? It shows `OtherWord` every...
Hi All,
I have a pile of files stored in the local area on my iPad which I'd like to move to dropbox or iCloud. Anyone know a way to shif...
Nov 25, 2014 - 16:20
TutorialDoctor
Ole just posted a workflow that imports the html2text module, which isn't documented anywhere. Also, in the Pythonista forum there wasn't do...
Nov 25, 2014 - 03:12
TutorialDoctor
How would I position a UI view relative to the center of the screen, no matter the orientation?
Do I use the size_to_fit() function?
ui...
Nov 24, 2014 - 18:03
ltddev
How do I set the action attribute in the UI designer to a object handler method rather than a function? I see how to set the action attribut...
Nov 24, 2014 - 08:42
macnfly
Hi,
The export function to xcode is not working at the moment.
Will it be back in the next update ?
In the meantime.
Is there a workfl...
Nov 23, 2014 - 21:32
zencuke
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...
Nov 23, 2014 - 15:48
Kithara
when I create a script named 'mymodule' with class named 'myclass' in the Pythonista editor I can import that module from the console, insta...
Nov 22, 2014 - 04:12
techteej
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...
Nov 21, 2014 - 21:38
TutorialDoctor
I am trying to load an image from the camera roll as the background of a button.
<pre>
from PIL import Image
import ui
import photos
...
Nov 21, 2014 - 12:58
ywangd
Is it possible to handle double tap event in a TextView? Or somehow let the TextView pass the event to its parent CustomView?
Nov 21, 2014 - 07:39
GaryGadget
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...
Nov 20, 2014 - 23:04
gianx213
Hi,
Can somebody kindly tell me if there's an easy way to switch from a document to the builtin browser only using keyboard?
Thanks in ...
Nov 20, 2014 - 14:21
ywangd
Hi,
It does not seem to be possible to script the Interactive Prompt, e.g. clear the input, set the content, position the cursor?
Woul...
Nov 20, 2014 - 12:50
AlexKudrenko
Hi. I'm trying to write a script to resize the image to 1200 pixels wide.
Everything seems to be working fine apart from the fact that all ...
Nov 20, 2014 - 00:48
rmjh
I have had this issue since installing iOS 7. When switching away from (multi-tasking, four finger swipe, exit to home screen) and then back...
Nov 20, 2014 - 00:40
TutorialDoctor
I'm trying to keep it simple.
I have a simple script
<pre>import ui
view = ui.load_view()
view.present('sheet')
</pre>
In the UI...
Nov 19, 2014 - 22:21
HeyItsJono
Hey everyone, ever since I bought Pythonista I've been getting more and more into learning Python, generally by creating scripts to fix any ...
Nov 19, 2014 - 21:04
zencuke
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 th...
Nov 19, 2014 - 18:50
TutorialDoctor
I am starting a list of must have workflows, add to it if you will.
# Must Have workflows:
Backup and restore workflows to and from Dr...
Nov 19, 2014 - 17:55
TutorialDoctor
# Post your tutorial workflows here:
[Python Examples](http://www.editorial-workflows.com/workflow/5898713587253248/eZ7XRZqHdVE) (Workflo...
Nov 19, 2014 - 05:51
Dann239
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...
Nov 18, 2014 - 05:43
minnepicker
I have a workflow that calls on drafts to run an action contained in a variable and also uses data that has been placed on the clipboard. Af...
Nov 17, 2014 - 23:01
Dormane
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 a...
Nov 17, 2014 - 15:03
sunrizersounds
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 f...
Nov 17, 2014 - 15:01
sunrizersounds
I have this but as a very basic coder I wonder if I could use this to make a static site generator for my own sites. Can you create folders ...
Nov 17, 2014 - 13:32
bmccardle
I added a left_button_items to a view, but the back button is still there. Is there a way to remove the back button?
Nov 16, 2014 - 18:22
userista
When trying to use the `re` module in Pythonista - I get some weird behavior. Specifically the `re.sub` method doesn't work as documented. H...
As you might imagine, I'm quite busy updating [Editorial](http://editorial-app.com) for iOS 7. I still have a lot of work ahead of me, and I...
Nov 16, 2014 - 05:35
smisuta
I'm learning Python on my iPad using Pythonista by following along with the Think Python book. It calls for importing Swampy and Tkinter. An...
Nov 15, 2014 - 18:33
wradcliffe
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 ...
Nov 14, 2014 - 23:37
wradcliffe
I am writing code for a generic property list sheet. I am wondering how users are finding out how to use the existing widgets. I have looked...
Nov 13, 2014 - 07:57
[deleted]
Here my EditView class project. A JavaScript based WYSIWYG editor hosted in a web view.
- it can receive from a subclass (eg the supplie...
Nov 12, 2014 - 02:04
JadedTuna
Just noticed module `getpass` has no function `getuser`. How do I get current user's name then? Is that even possible?
Nov 12, 2014 - 00:33
mcburton
Hey Editorialists!
I'm new to the forum, but have been loving Editorial since it was released. I'm posting because I am curious to know i...
Nov 11, 2014 - 18:16
zencuke
It is mentioned in the release notes but not the documentation.
Nov 11, 2014 - 17:12
aminatelli
Hi all, new user here—
Is there a way to create an equivalent to Byword's CMD-E Edit mode feature?
In Byword, I can enter markdown pre...
Nov 11, 2014 - 15:07
ryanj
I'm playing with sending notes to Drafts via x-callbacks, and have found a problem with &'s.
If I have a '&' in my note, using the x-call...
Nov 11, 2014 - 02:16
AlexKudrenko
Hi, I'm trying to create a workflow that will append a clipboard (generated in Drafts 4) to the existing file and then return back to Drafts...