diff options
author | Aleksey Lim <alsroot@member.fsf.org> | 2009-03-15 15:21:32 (GMT) |
---|---|---|
committer | Aleksey Lim <alsroot@member.fsf.org> | 2009-03-15 15:21:32 (GMT) |
commit | 830d9bd6fb5a48f6bffea0e1138250bcc9dfb028 (patch) | |
tree | 93b41db982236958fd896182df16464022e3cfe1 /colors.py | |
parent | 54bc48dad5f38cb1b2bda1d62dc1a43fdd280712 (diff) |
Pass non-utf8 strings to C library
Diffstat (limited to 'colors.py')
-rwxr-xr-x | colors.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1359,7 +1359,7 @@ class Colors(activity.Activity, ExportedGObject): # Load and play intro movie. It was created on a DS at 60hz, so we need to speed it up drastically to # make it watchable. self.easel.clear() - self.easel.load(activity.get_bundle_path() + "/data/intro.drw") + self.easel.load(str(activity.get_bundle_path() + "/data/intro.drw")) self.easel.set_playback_speed(8) self.easel.start_playback() self.start_update_timer() @@ -1754,7 +1754,7 @@ class Colors(activity.Activity, ExportedGObject): def on_sample (self, button): self.set_mode(Colors.MODE_PLAYBACK) self.easel.clear() - self.easel.load(button.filename) + self.easel.load(str(button.filename)) self.easel.set_playback_speed(8) self.flush_entire_canvas() self.toolbox.set_current_toolbar(2) # Switch to 'watch' toolbar. @@ -1774,7 +1774,7 @@ class Colors(activity.Activity, ExportedGObject): log.debug("Loading from journal %s", file_path) self.set_mode(Colors.MODE_CANVAS) self.easel.clear() - self.easel.load(file_path.encode()) + self.easel.load(str(file_path.encode())) self.easel.start_playback() self.easel.finish_playback() self.playbackpos.set_value(100) |