I use github to move projects from pythonista to and from my raspberry pi.
It is easiest to simple install stash and then git push or pull from pythonista. Alternatively you can scp from stash and move files directly to or from the raspberry pi.
When managing the pi I use the Termius app to ssh and manage files via bash, but you can also ssh directly from stash.
It would seem that stash is what you need. Plus using git allows for version control between pythonista and your pi.
Please know that I am no expert, but I hope this helps.
FYI: Stash is on GitHub with an easy one line installer.
Love that @olemoritz quietly added a turtle.py module.
Unfortunately turtle.shape() is still on the todo list.
If someone with more skill then me can help me turn the current triangle shape into a little turtle shape it would be magic to my students who are learning python3 on pythonista.
I am guessing the curent turtle shape is drawin in the
pen_tip = ui.path
Would it be as simple as painstakingly drawing a ui.path outline of a turtle shape to change the default triangle?
Is there any reason I am getting ‘Repository/branch not found’ when running selfupdate?
Pythonista 3.2 (320000)
iOS 11.3.1 (64-bit iPad5,3)
stash.py: 2018-01-01 12:59:22
@Tito I think Learn Python the Hard Way is actually a great learning tool. If you bought Zed’s course then you have a great community there to ask questions as well.
Plus learning to work in Bash will help later if you want to try some physical computing later with a raspberry pi (lots of fun).
If you want to mimic Bash a bit in Pythonista there is always Stash.
@abcabc thanks a lot. One of the amazing thing about these forums is that people (like you) help out with great examples and no snark. I am really grateful. And hopefully when I have greased my wheeels a bit more I will also be to help others out.
So thanks again for pointing out my mistake.
The polygon you included also really helps understand the syntax better!
So I am playing around with the Game Module and I have enjoyed swapping out coins for snowflakes and then slowed them down for a beautiful snowy day, but I want to do this with a ShapeNode and can't seem to figure it out..
class Coin (SpriteNode): def __init__(self, **kwargs): SpriteNode.__init__(self, 'emj:Snowflake', **kwargs)
If anyone can point me in the right direction to use a circle (ui.Path.oval) instead of a texture.
It tried this
class Ball(ShapeNode): def __init__(self, **kwargs): circle = ui.Path.oval (0, 0, 20, 20) theball = ShapeNode(circle,'red', stroke_color='clear', shadow=None) ShapeNode.__init__(self, theball, *kwargs)
And it tells me the ShapeNode object has no attribute bounds.
Thanks in advance to anyone who can help.