diff options
author | Nat <natcl@hotmail.com> | 2007-07-30 06:07:07 (GMT) |
---|---|---|
committer | Nat <natcl@hotmail.com> | 2007-07-30 06:07:07 (GMT) |
commit | 8e215d8edf583179340f044f5624a887fa64297c (patch) | |
tree | ec5b7cd95cbe5563d150543ded68c4ea50b04406 /SynthLab | |
parent | 4453b344e54ca29b804fee687e2721fb44ed1142 (diff) |
Small fix
Diffstat (limited to 'SynthLab')
-rw-r--r-- | SynthLab/SynthLabWindow.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/SynthLab/SynthLabWindow.py b/SynthLab/SynthLabWindow.py index d9c7377..78c8240 100644 --- a/SynthLab/SynthLabWindow.py +++ b/SynthLab/SynthLabWindow.py @@ -522,6 +522,11 @@ class SynthLabWindow(SubActivity): self.highlightWire( None ) self.highlightGate( None ) + + if event.button == 1 or event.button == 3: + for i in range(self.objectCount): + if self.bounds[i][0] < event.x < self.bounds[i][2] and self.bounds[i][1] < event.y < self.bounds[i][3]: + self.select( i ) if self.action == "drag-object": self.doneAction() @@ -541,11 +546,6 @@ class SynthLabWindow(SubActivity): self.highlightWire( None ) self.highlightGate( None ) - - if event.button == 1: - for i in range(self.objectCount): - if self.bounds[i][0] < event.x < self.bounds[i][2] and self.bounds[i][1] < event.y < self.bounds[i][3]: - self.select( i ) if event.button == 1: for i in range(self.objectCount): |