Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/Desenho.py
diff options
context:
space:
mode:
Diffstat (limited to 'Desenho.py')
-rw-r--r--Desenho.py22
1 files changed, 11 insertions, 11 deletions
diff --git a/Desenho.py b/Desenho.py
index c2f2018..e7ad7e1 100644
--- a/Desenho.py
+++ b/Desenho.py
@@ -158,17 +158,17 @@ class Desenho:
"""
colormap = widget.get_colormap()
- rainbow_colors = [
- colormap.alloc_color('#ff0000', True, True), # vermelho
- colormap.alloc_color('#ff8000', True, True), # laranja
- colormap.alloc_color('#ffff00', True, True), # amarelo
+ rainbow_colors = [
+ colormap.alloc_color('#ff0000', True, True), # vermelho
+ colormap.alloc_color('#ff8000', True, True), # laranja
+ colormap.alloc_color('#ffff00', True, True), # amarelo
colormap.alloc_color('#80ff00', True, True), # verde lima
- colormap.alloc_color('#00ff00', True, True), # verde
+ colormap.alloc_color('#00ff00', True, True), # verde
colormap.alloc_color('#00ff80', True, True), # verde agua
colormap.alloc_color('#00ffff', True, True), # azul claro
colormap.alloc_color('#007fff', True, True), # quase azul
- colormap.alloc_color('#0000ff', True, True), # azul
- colormap.alloc_color('#8000ff', True, True), # anil
+ colormap.alloc_color('#0000ff', True, True), # azul
+ colormap.alloc_color('#8000ff', True, True), # anil
colormap.alloc_color('#ff00ff', True, True), # rosa violeta
colormap.alloc_color('#ff0080', True, True), # violeta
]
@@ -525,9 +525,9 @@ class Desenho:
if widget.estadoTexto == 0:
widget.estadoTexto = 1
- widget.janela.fixed.move(widget.janela.textview, int(event.x)+200, int(event.y)+100)
+ #widget.janela.fixed.move(widget.janela.textview, int(event.x)+200, int(event.y)+100)
# Area size has changed...
- #widget.janela.fixed.move(widget.janela.textview, int(event.x), int(event.y))
+ widget.janela.fixed.move(widget.janela.textview, int(event.x), int(event.y))
widget.janela.textview.show()
widget.janela.textview.grab_focus()
@@ -686,7 +686,7 @@ class Desenho:
try: self.resize_pixbuf
except:
- self.resize_pixbuf = gtk.gdk.Pixbuf(gtk.gdk.COLORSPACE_RGB, False, 8, w, h)
+ self.resize_pixbuf = gtk.gdk.Pixbuf(gtk.gdk.COLORSPACE_RGB, False, 8, w, h)
self.resize_pixbuf.get_from_drawable(widget.pixmap, gtk.gdk.colormap_get_system(), x0, y0, 0, 0, int(w), int(h))
x0,y0 = self.coords
@@ -702,7 +702,7 @@ class Desenho:
widget.pixmap_temp.draw_drawable(widget.gc, widget.pixmap_sel,0,0,0,0, width, height)
- #to draw the selection black and white line rectangle
+ #to draw the selection black and white line rectangle
widget.pixmap_sel.draw_rectangle(widget.gc_selection, False ,x0- delta_x -1, y0- delta_y-1,int(width_percent*w+1), int(height_percent*h+1))
widget.pixmap_sel.draw_rectangle(widget.gc_selection1, False ,x0- delta_x -2, y0- delta_y-2,int(width_percent*w +1), int(height_percent*h +1))