diff options
author | Aleksey Lim <alsroot@member.fsf.org> | 2009-02-24 14:30:41 (GMT) |
---|---|---|
committer | Aleksey Lim <alsroot@member.fsf.org> | 2009-03-02 06:27:10 (GMT) |
commit | 361eca31504fcac8163f1285f785b86333b6a668 (patch) | |
tree | 1f51fdf857b07988d4ff9a46f9f424b72d109a81 | |
parent | f9e35fbfe668fabc0e319cacd63f6ba74c4a7c50 (diff) |
Convert loaded theme-index to int
-rw-r--r-- | sugaractivity.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sugaractivity.py b/sugaractivity.py index 713365d..fe03eb2 100644 --- a/sugaractivity.py +++ b/sugaractivity.py @@ -60,7 +60,7 @@ class sugaractivity( activity.Activity, Infoslicer_GUI ): sourcetitle = lines[0]
workingtitle = lines[1]
workingtheme = lines[2]
- currentindex = lines[3]
+ currentindex = int(lines[3])
print "file read"
print "sourcetitle: %s, workingtitle: %s, workingtheme: %s, currentindex: %s" % (sourcetitle, workingtitle, workingtheme, currentindex)
@@ -128,4 +128,4 @@ class sugaractivity( activity.Activity, Infoslicer_GUI ): def can_close(self):
self.do_quit_event()
- return True + return True
|