View Single Post
fpp's Avatar
Posts: 2,853 | Thanked: 968 times | Joined on Nov 2005
#24
Originally Posted by qwerty12 View Post
Hmm, I'm having trouble getting flipclock to use the new paths. Anyone know what the correct way to do:
cfr2 = str("/usr/share/flipclock/")+(orario[3])+".png"
is in python?
The most usual and "pythonic" idiom would be :

cfr2 = "/usr/share/flipclock/%d.png" % orario[3]
PS: great job BTW ciroip and Faheem - I love it !
 

The Following 3 Users Say Thank You to fpp For This Useful Post: