Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/Desenho.py
diff options
context:
space:
mode:
authorGonzalo Odiard <godiard@sugarlabs.org>2010-10-21 20:31:30 (GMT)
committer Gonzalo Odiard <godiard@sugarlabs.org>2010-10-21 20:31:30 (GMT)
commitc8ddf32147fb582850f64e8da87cc3d4a2f4193d (patch)
treede12e3761b24b47846ee08d8a1d6d14288d751a8 /Desenho.py
parentb70f9f14b569660ae358f6e2d91aee17852f3052 (diff)
Changes made to save the last added text item. (OLPC #5917)
Condition added to save the text when added at last in the paint activity so that it does not disappear. Text disappeared when added at last in the paint activity. Co-authored-by: Anubhav Aggarwal<anubhav@seeta.in>, Ishan Bansal <ishan@seeta.in>
Diffstat (limited to 'Desenho.py')
-rw-r--r--Desenho.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Desenho.py b/Desenho.py
index 3be1910..17525e5 100644
--- a/Desenho.py
+++ b/Desenho.py
@@ -552,8 +552,8 @@ class Desenho:
"""
- if widget.estadoTexto == 0:
- widget.estadoTexto = 1
+ if not widget.text_in_progress:
+ widget.text_in_progress = True
#widget.janela.fixed.move(widget.janela.textview,
# int(event.x)+200, int(event.y)+100)
@@ -564,7 +564,7 @@ class Desenho:
widget.janela.textview.grab_focus()
else:
- widget.estadoTexto = 0
+ widget.text_in_progress = False
try:
# This works for a gtk.Entry