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-11-01 17:10:18 (GMT)
committer Alexandre Antonino Gonçalves Martinazzo <alexandremartinazzo@gmail.com>2007-11-01 17:10:18 (GMT)
commitd054f38ee5fd70b6cc4b2bf79c81736ac0b1e101 (patch)
tree69e3d6b0fc87bf67afe3b9efa19fa1b1cd86c0a2 /Desenho.py
parent34060597f57ef164e5f177afa8e79b9565c00805 (diff)
Changes from André:
Bug #3709 fixed; Right click only works with 'selection' and 'free polygon' Fixed bug with free polygon Bug #3703 fixed; 'Crtl+A' select all and 'Crtl+D' deselect, without buttons for now Bug #3702 fixed; 'Erase' delete selection, 'return' confirm the selection
Diffstat (limited to 'Desenho.py')
-rw-r--r--Desenho.py13
1 files changed, 11 insertions, 2 deletions
diff --git a/Desenho.py b/Desenho.py
index cbaca21..c3a5bb8 100644
--- a/Desenho.py
+++ b/Desenho.py
@@ -190,7 +190,7 @@ class Desenho:
widget.queue_draw()
- def square(self, widget, coords, temp, fill):
+ def square(self, widget, event, coords, temp, fill):
"""Draw a square.
@param self -- Desenho.Desenho instance
@@ -713,7 +713,7 @@ class Desenho:
widget.pixmap.draw_line(widget.gc_line,widget.oldx,widget.oldy, coords[0], coords[1])
widget.enableUndo(widget)
widget.last = coords
- widget.polygon_start = False
+ widget.polygon_start = False
else:
if param == "motion":
# print "press"
@@ -740,6 +740,15 @@ class Desenho:
widget.polygon_start = True
widget.undo_times -= 1#destroy the undo screen of polygon start
widget.enableUndo(widget)
+ elif param == "bug":
+ tp = tuple(widget.points)
+ if fill == True:
+ pixmap.draw_polygon(widget.gc, True, tp)
+ pixmap.draw_polygon(widget.gc_line, False, tp)
+ widget.last = []
+ widget.polygon_start = True
+ widget.undo_times -= 1#destroy the undo screen of polygon start
+ widget.enableUndo(widget)
widget.queue_draw()
def adjust(self, widget, coords, locked=False):