can u help me Out?
Hey guys, I'm new to pythonista and I need your help. I want to create a kind of calculator. I have tried it so many times, but my result has never been accepted.
In the blue circle you should specify the number.
In the yellow circle is the price of the product.
In the red circle is the "Ok" button, which calculates the number of specified products.
In the green circle then the result, so the price stand.
It would be nice if you could help me, because as a beginner I really despair of it. it would be nice if you could explain your steps.
[link text](Sieh dir den Tweet von @Someuse79137145 an: https://twitter.com/Someuse79137145/status/1101238789593284609?s=09
@some-user You, like me, will need to wait a little bit because my iPad is busy with my granddaughter who is playing Fortnite on it and I'll never dare to interrupt her 😂
@some-user Just an idea: I can't test without iPad (see above 😥), but did you try 3,33 and 3.33 because, in function of your keyboard language, one is taken as a string, thus refused, the other one as a number, thus accepted
@cvp Omg, I'm so stupid. Thank you for your help. I would never have done it without you. Maybe I will contact you again if I do not get something in the script. Thank you.
@some-user In this forum, there is no stupid because you use Pythonista 😂 Be sure, we all do some errors...
@cvp okay one more question. How do I add this to my homescreen now? If I want to do that, I'll be redirected to Safari. Then it says I should add this to my homescreen. But that looks like that
@some-user I suppose you use the standard version of app, not the beta. I don't have any more this version thus I can't test the shortcut creation of this version but what you get is really not normal. It seems like the Safari page is an url, not a data...
what happens when you click on your icon?
@cvp it opens the app and runs the Script
@some-user ok, that's normal but not the icon it-self
Spotted your pointer to the GitHub humberry UI Tutorial, excitedly skipped over to GitHub
As I really do want to “get” using pyui’s....
Aargh! New Brick Walls!
It may sound simple but how do I get a GitHub resident PYUI file to my iPad.
You cannot imagine what I have tried so far, including forking the Tutorial!
There are a few ways to get a github repo onto your iPad.
install https://github.com/ywangd/stash, which if you read the readme comes with its own simple install script
Then you have a git command, which can clone a repo. You need to run stash using py2.7 for this to work.
on a recent device, you can install the Working Copy app, which let's you clone repos, and has integration with pythonista.
every GitHub repo has a zip download address, you can use wget in stash, or requests or urllib to download, then unzip it.
pythonista tools has various tools, of various pedigree:
Some may not work at all in current pythonista versions...
@adrius42 there is a more manual workaround to copying pyui files from GitHub into Pythonista:
- Go to the .pyui file’s webpage on GitHub
- Click the Raw button near the upper right of that page.
- Select all the text and tap Copy
- Go back to Pythonista and create a new script
- Paste the text into that script
- Rename the script to change its file extension from .py to .pyui
Example: next number of items