Thank you, that was exactly the starting point I needed! I managed to get it working, now I just need to position everything and make it look good.
Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
Latest posts made by Rosanne
-
RE: Breathing exercise animation
-
Breathing exercise animation
I wanted to try and make a small app to help with breathing exercises. I haven't done anything with animation/ui yet, so I was wondering if anyone could help me with a starting point. I want the animation to do the following:
- Have a circle expand for x seconds
- Pauze for y seconds
- Have the circle contract in z seconds
- Pauze for a seconds
- Repeat for b minutes
Ultimately it would be nice to have all the settings and duration configurable in the ui, but changing the values directly in the script is no problem.
I thought the analog clock example would be a good starting point, but when I understood that one and tried to figure out how to use that approach for this use case, I got the feeling that the updating step would become more complex than necessary.
What would be a good starting point for this?
-
RE: Looking for People Willing to Write Tutorials
Just a stupid question, but shouldn't the background picture be an iPad instead of a MacBook ;) ?
The layout looks great. -
Access extra dates in contacts
In the ios contacts, you can add extra dates, for things like anniveraries. I'd like to use them to add birthdays of children, since they really don't need their own contact entry. The problem is that these dates don't end up in the birthday calendar, so I thought I'd use pythonista to construct such a calendar. Now, maybe I overlooked it, but I couldn't find a way to get to those extra dates, did I miss something?
If it's not possible to access them, I'll put the dates in the notes field and parse them, but that wouldn't be as elegant.
-
RE: Matplotlib plot format, x**2 as x^2
Also, think about e^x or e^-x or e^4 (without the brackets). For that you definitely need regular expressions.
import re formula = re.sub(r'e\^(-?[x0-9.]+?)', 'exp(\1)', formula)
Something like that, haven't tested it, but should give you a start if you want to do something with re.
-
RE: Matplotlib plot format, x**2 as x^2
I guess you'd have to use regular expressions to preprocess the user input before you plot. You have to be careful how you do it though, because e^ should become exp and not e**.
A quick and dirty solution would be to print a line to tell the user to use ** instead of ^ etc.
-
Stash, pip and pylint
I just installed stash (very cool!) and wanted to use pip to install pylint. It seemed to work, but when I tried to run it I got an error saying it needed astroid. When I tried to pip install that I got a 'Failed import test. Check for dependencies' error. From comments on the forum it seemed as it would be trivial to install pylint, am I doing something wrong?
-
RE: Stash, pip and pylint
I did that for a couple of other modules, but forgot it for six 😕. I uninstalled with pip, but that doesn't change the error message. Useful link!
-
RE: Stash, pip and pylint
I added some traceback to the pip code and found out that the problem is that setuptools doesn't have a find_packages function. I don't understand exactly how this part of the code works, so now I'm stuck. There are people that managed to install pylint, any ideas?