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!
Aug 11, 2015 - 13:42
Pythonistapro777
In the game, when you draw the colour is white but I need help with making it so when I tap the re button the draw colour is red and if I cl...
Now because of the limitations on iOS we unfortunately can not define a cleanup function (```
sys.exitfunc```). To accomodate for that, I've...
Aug 11, 2015 - 10:00
rhythmart
I have downloaded a Google static map through their API using:
data = urllib.urlopen(my_url).read()
buffer = StringIO(data)
image = Image.o...
Aug 11, 2015 - 09:29
xan273
hello , I am trying to create some old school effects with pythonista (plasma,fire etc) but i cant draw pixel by pixel using the scene libra...
Aug 10, 2015 - 19:58
JonB
Running a script from the editor which has an unclosed triple quotes string results in a crash. I was using triple quotes to comment out...
A nice online resource of Python worst practices http://docs.quantifiedcode.com/python-anti-patterns They also have a free automated tool ...
Aug 10, 2015 - 16:17
ywangd
@omz Following code raises an `AttributeError` in Pythonista:
```python
import ctypes
print ctypes.pythonapi.PyThreadState_SetAsyncExc
```
I...
I'm looking at how to use NSNotificationCenter (which is needed for things like external gamecontrollers) and I have no idea how to make it ...
Aug 10, 2015 - 14:16
Pythonistapro777
Still in the early process of my game. However, I want it so the coin sound effect doesn't start playing (when it intersects) until the FIRS...
Aug 10, 2015 - 12:08
Cethric
I know there are already ports of the OpenGLES framework however I plan to make a binding which is specifically for the Pythonista 1.6+ buil...
Aug 10, 2015 - 06:47
ywangd
The following code does not work
```
e = ObjCClass('EAAccessoryManager')
```
The error message is `ValueError: no Objective-C class named '...
Aug 10, 2015 - 05:29
AtomBombed
Ok, so I have been told that if I want to access the text value of a TextView or TextField inside of the UI module, I need to do the followi...
Aug 10, 2015 - 04:09
JonB
Got live video preview working using `objc_utils`. [LiveCameraView](https://github.com/jsbain/objc_hacks/blob/master/live_camera_view.py) l...
Aug 09, 2015 - 19:03
Pythonistapro777
My little brother pointed out that in the restart scene I should display their score and he Hughes score on the device. So I did. But there'...
Aug 09, 2015 - 14:39
filippocld
Sorry for the stupid question but i don't know how to present a view controller using objc_util.
Can someone help me?
Thanks in Advance,
Fil...
Aug 09, 2015 - 13:51
Pythonistapro777
Can console.input_alert() be used in scene?
Aug 09, 2015 - 08:00
Pythonistapro777
So, I'm almost finished with my moon count game, similar to the carnival game where you guess the the number of balls in a jar.
However I n...
Aug 09, 2015 - 07:06
Pythonistapro777
@ccc I'm going to start a new project on a game called LineRun. It's on the AppStore so, if you want you can check it out, if not - I'll exp...
Aug 08, 2015 - 21:49
apselon
How can I set a variable height for each Tableview row, depending on the size of the text in that row?
Aug 08, 2015 - 20:45
techteej
The dialog module is a great addition that we saw in the very early 1.6 betas. @omz are there any improvements planned for this? Specificall...
Aug 08, 2015 - 19:42
techteej
My first full project after being out of the Python world for a little while, [Home-Hub](https://github.com/tjferry14/Home-Hub). It's basica...
Aug 08, 2015 - 19:20
Webmaster4o
It is often useful when porting to this forum to include images. But to properly do this in markdown, you need to upload the image to the we...
Aug 08, 2015 - 17:25
Webmaster4o
I'm reading through [this blog post](http://zulko.github.io/blog/2014/09/20/vector-animations-with-python/), which is about creating cool ve...
Aug 08, 2015 - 15:29
Webmaster4o
It'd be great if the move file dialog got the same collapsing file navigator as the create file dialog. Creating a file:
 with one tap/workflow?
So f...
Aug 07, 2015 - 21:15
techteej
```
self.var = str(dialogs.list_dialog(title='Select a file type', items=[".txt", ".py"], multiple=False))
print self.var
```
Returns none ...
Aug 07, 2015 - 18:55
JonB
In trying to grab screenshots from a video, I believe I need to define `CGImage`, and `CGImageRef`.
Howevever, `ObjCClass('CGImage')` doesnt...
Aug 07, 2015 - 15:29
Pythonistapro777
Almost done with the game, I just need help with when self.player makes contacts with self.obstacle, self.dead = True. I tried intersects() ...
Aug 07, 2015 - 08:17
Pythonistapro777
I'm in the finishing stages of making my gravity guy game. However I need help with the obstacles. When the game is run you will see 3 block...
Aug 07, 2015 - 08:05
Pythonistapro777
I'm in the finishing stages of making my gravity guy game. However I need help with the obstacles. When the game is run you will see 3 block...
Aug 07, 2015 - 06:00
techteej
Just a quick post, but I would like to introduce you to the [new Pythonista Tools website](http://pythonista-tools.github.io/Pythonista-Tool...
Has anyone played with [MicroPython](https://github.com/micropython/micropython/wiki) and the [PyBoard](https://micropython.org/store)?
Mic...
Aug 06, 2015 - 18:37
Webmaster4o
It took me a full 5 minutes of wondering how reputation is given before I found the upvote button. Maybe this should be more obvious somehow...
Aug 06, 2015 - 16:20
ywangd
Given a text font and size (e.g. `'DejaVuSansMono', 12`), and the bounds of a TextView (e.g. `400, 100`), how can I reliably calculate the e...
Aug 06, 2015 - 15:26
LittleHouse75
Is there a way to navigate a Fountain document?
In markdown mode, you can tap on the name of the document at the top of the screen to see t...
Aug 06, 2015 - 13:02
Phuket2
This code was for the old forum. It still appears to work. One difference being that it appears to be a paged system here, so for long posts...
Please note that the syntax for posting code blocks is slightly different in the new forum. The old one used to accept both Markdown and HTM...
Aug 06, 2015 - 06:42
Wylde
The latest version of SQLite is 3.8 something. It supports recursive CTEs.
The SQLite in pythonista is 3.7. Is it possible to update it?
...
Aug 06, 2015 - 06:04
Pythonistapro777
So, I found this game on the forum and it gave me an idea to make a gravity guy game. @Webmaster4o helped my modify the already made game so...
Aug 06, 2015 - 06:03
AtomBombed
I keep trying to make programs that involve the UI module. But every time I use the UI module, I always end up needing to access what the us...
Aug 06, 2015 - 04:07
Pythonistapro777
I'm making a gravity guy game. Will be completed tomorrow, I hope. :)
Please help with the error that pops up when the code is run.
Th...
Aug 06, 2015 - 03:04
reefboy1
Hello pythonista forums, the biggest newbie is back! Is it possible to pull a video from the camera roll and put it on the screen in video f...
Aug 06, 2015 - 02:58
AtomBombed
When I have a UI file to go with a program I am making, I usually try to implement the use of console functions like consol.alert(). But I c...
Aug 06, 2015 - 02:40
Pythonistapro777
Is there a way that instaed of pressing and holding to fly, I can tap and it will fly and tap again to fall.
Thanks in advance!
Here's...
Aug 06, 2015 - 01:42
cook
I have a UI with a buttonitem like this:
play_b = ui.ButtonItem(title='play',action=playmp3,enabled=True)
And then it calls to thi...
Aug 06, 2015 - 01:20
Edit
First of all thank you for this amazing app! It is just wonderful and I could go on using it as is but wanted to offer a correction to the F...
Aug 06, 2015 - 00:23
[deleted]
Here is our work for capturing media (@techteej and @tony) from 2 other threads and @techteej's Speech project, tidied up, wrapped in a clas...
Aug 05, 2015 - 22:29
Edit
First of all thank you for this amazing app! It is just wonderful and I could go on using it as is but wanted to offer a correction to the F...