Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/Desenho.py
diff options
context:
space:
mode:
authorAlexandre Antonino Gonçalves Martinazzo <alexandremartinazzo@gmail.com>2007-08-24 18:02:18 (GMT)
committer Alexandre Antonino Gonçalves Martinazzo <alexandremartinazzo@gmail.com>2007-08-24 18:02:18 (GMT)
commit023e8784a6b67399ee4f383e9310b9677df7f1ef (patch)
tree83807d8fb66cce6f5f454a53655e690e2442a6f1 /Desenho.py
parent2242ea0a5b437842276cba36b1e30a7668d5b661 (diff)
Bug #2147 fixed.
description: Text boxes get stuck in canvas on Oficina.
Diffstat (limited to 'Desenho.py')
-rw-r--r--Desenho.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/Desenho.py b/Desenho.py
index cdc43c9..efc6dd8 100644
--- a/Desenho.py
+++ b/Desenho.py
@@ -518,13 +518,16 @@ class Desenho:
event -- GdkEvent
"""
+ #print self.d.estadoTexto
if self.d.estadoTexto == 0:
self.d.estadoTexto = 1
- print event.x
+
self.d.janela._fixed.move(self.d.janela._textview, int(event.x)+200, int(event.y)+100)
# Area size has changed...
#self.d.janela._fixed.move(self.d.janela._textview, int(event.x), int(event.y))
self.d.janela._textview.show()
+ self.d.janela._textview.grab_focus()
+
else:
self.d.estadoTexto = 0
texto = self.d.janela._textview.get_text()
@@ -538,7 +541,8 @@ class Desenho:
self.d.enableUndo(widget)
widget.queue_draw()
-
+
+ #print self.d.estadoTexto
def selection(self, widget, coords, temp, fill):
"""Make a selection.