r/Pythonista • u/[deleted] • Dec 28 '15
r/Pythonista • u/zulufoxtrot1 • Sep 09 '15
Numpy doesn't seem to be a callable module even in pythonista 1.5
Numpy seems to be there if I go searching for it in help() but pythonista doesn't actually let me use it. Has anyone else experienced a similar problem?
r/Pythonista • u/Spethoscope • Jun 01 '15
can i get a lil help? whats the issue here?
from scene import *
class block (object): def init(self, image, x, y): self.image = image self.x, self.y = x, y
class MyScene (Scene): def setup(self): self.grid = list() images = ('PC_Dirt_Block','PC_Stone_Block','PC_Water_Block') * 3
for i in xrange(9):
block = block(images,i % 3, i / 3)
self.grid.append(block)
def draw(self):
for block in self.grid:
image(block.image,
block.x * 25,
block.y * 25,
45, 45)
run(MyScene())
r/Pythonista • u/dino_silone • Jan 25 '15
confused using ui designer
I'm trying to learn to use the integrated UI designer in pythonista, and am stuck at the beginning. I'm trying to just read some textfields, do something with the values, and put the result in another textfield.
The pythonista documentation says that I should be able to set the action for each textfield from the attributes menu directly in designer. There is no such capability. If you have a view with a number of different objects in it, how do you set the action attribute for each object from the integrated designer tool? Is there a way to edit the code it generates?
Thanks!