diff options
Diffstat (limited to 'tawindow.py')
-rw-r--r-- | tawindow.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tawindow.py b/tawindow.py index 775c0c6..aa0bd4a 100644 --- a/tawindow.py +++ b/tawindow.py @@ -94,6 +94,9 @@ class TurtleArtWindow(): self.keypress = "" self.keyvalue = 0 self.dead_key = "" + self.mouse_flag = 0 + self.mouse_x = 0 + self.mouse_y = 0 self.area = self.window.window self.gc = self.area.new_gc() self.orientation = HORIZONTAL_PALETTE @@ -636,6 +639,9 @@ class TurtleArtWindow(): """ Button press """ self.window.grab_focus() x, y = xy(event) + self.mouse_flag = 1 + self.mouse_x = x + self.mouse_y = y self.button_press(event.get_state()>k.gdk.CONTROL_MASK, x, y) return True |