Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/minimypaint.py
diff options
context:
space:
mode:
authorManuel Quiñones <manuq@laptop.org>2012-04-07 00:11:38 (GMT)
committer Manuel Quiñones <manuq@laptop.org>2012-04-07 00:11:38 (GMT)
commitfbfd7abe290b7f7a113d57519e2e5f8a710bf097 (patch)
tree304c6b692e5f14e70eb9f6946fdfc196b61f2bb3 /minimypaint.py
parentce6dfb10ffdf0117ea15c66b9bee519a81eec255 (diff)
Generalize brush settings
Signed-off-by: Manuel Quiñones <manuq@laptop.org>
Diffstat (limited to 'minimypaint.py')
-rw-r--r--minimypaint.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/minimypaint.py b/minimypaint.py
index 8014c91..a6f5d01 100644
--- a/minimypaint.py
+++ b/minimypaint.py
@@ -58,6 +58,7 @@ class MiniMyPaintActivity(activity.Activity):
state = json.loads(self.metadata['state'])
logging.debug("read_file")
logging.debug(state)
+ self._drawing.set_stroke_color(state['color'])
self._drawing.update_settings(state['settings'])
self._drawing.set_brush(state['brush'])
@@ -67,6 +68,7 @@ class MiniMyPaintActivity(activity.Activity):
self._drawing.save_ora(file_path)
state = {}
+ state['color'] = self._drawing.get_stroke_color()
state['settings'] = self._drawing.get_settings()
state['brush'] = self._drawing.brush_name
self.metadata['state'] = json.dumps(state)