View Single Post
Win7Mac's Avatar
Community Council | Posts: 664 | Thanked: 1,648 times | Joined on Apr 2012 @ Hamburg
#502
Originally Posted by coderus View Post
its sh-bang.
Thanks, so it is always required, right?

Originally Posted by slarti View Post
You wrote the command in shell, not in the python interpreter. If you add import sys to where import dbus is and run the modified script with:
Code:
python myscript.py
it will tell you where the problem is.
Ah, ok. Included import sys and it works in terminal and BB now.
So the syntax errors can be ignored?

I'll settle for your edited script if I can't resolve this multi-line fields issue, many thanks for that.

Originally Posted by thp View Post
Yes, {{color}} only goes to the end of the current line for now. What you could do is set the global color to blue, and then prefix every line that you don't want to have in blue with the desired color. At least this works as long as you don't have any other multi-line fields (for scripts, you can modify them to output the color prefix on every line).
That works, with mentioned limitations.
I tried to place {{color}} and add special characters in several places in upcoming_alarms.py without success, where does it belong?

Here's a screenshot, so you get a better idea what I'm trying to achieve:
Attached Images
 
__________________
Nokia 5110 > 3310 > 6230 > N70 > N9 BLACK 64GB
Hildon Foundation Board member
Maemo Community e.V. co-creator, founder and director since Q4/2016
Current Maemo Community Council member
 

The Following User Says Thank You to Win7Mac For This Useful Post: