diff options
author | Alexandre Antonino Gonçalves Martinazzo <alexandremartinazzo@gmail.com> | 2007-09-10 21:23:51 (GMT) |
---|---|---|
committer | Alexandre Antonino Gonçalves Martinazzo <alexandremartinazzo@gmail.com> | 2007-09-10 21:23:51 (GMT) |
commit | f3a3965e9b1baac7e30c0e55eb851fc2b30aa836 (patch) | |
tree | c677771f4904e867b6c26e54f913c85f7eb8608e /Desenho.py | |
parent | f11a11c581f8e79308704ec8799eedada02f64a3 (diff) |
Squashed commit of the following:
commit e1108821e698adc06a10ed18e9d4caec35c811d2
Author: Alexandre Antonino Gonçalves Martinazzo <alexandremartinazzo@gmail.com>
Date: Mon Sep 10 18:17:35 2007 -0300
Bug #3172 fixed. Paint now start with 'Pencil' tool selected
Minor changes in Area, new tool structure is comming.
Diffstat (limited to 'Desenho.py')
-rw-r--r-- | Desenho.py | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -520,6 +520,8 @@ class Desenho: event -- GdkEvent """ + + #print self.d.estadoTexto if self.d.estadoTexto == 0: self.d.estadoTexto = 1 @@ -536,28 +538,27 @@ class Desenho: try: # This works for a gtk.Entry text = self.d.janela._textview.get_text() - except: + except AttributeError: # This works for a gtk.TextView buf = self.d.janela._textview.get_buffer() start, end = buf.get_bounds() text = buf.get_text(start, end) layout = self.d.create_pango_layout(text) - layout.set_font_description(self.d.font) + #layout.set_font_description(self.d.font) self.d.pixmap.draw_layout(self.d.gc, self.d.oldx, self.d.oldy, layout) self.d.pixmap_temp.draw_layout(self.d.gc, self.d.oldx, self.d.oldy, layout) self.d.janela._textview.hide() try: self.d.janela._textview.set_text('') - except: + except AttributeError: buf.set_text('') self.d.enableUndo(widget) widget.queue_draw() - #print self.d.estadoTexto def selection(self, widget, coords, temp, fill): """Make a selection. |