Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/Util/Trackpad.py
diff options
context:
space:
mode:
authorOli <olpc@localhost.localdomain>2007-02-28 01:47:09 (GMT)
committer Oli <olpc@localhost.localdomain>2007-02-28 01:47:09 (GMT)
commitad0a0e5f5cb7584dc6e3295883a6e4a060d763b4 (patch)
tree41ea0605675eb1fb75819c8e8c8a7cd1753bad2b /Util/Trackpad.py
parentefde4e823dc4418763514e0634fc3c1393ba36d8 (diff)
synthLabParametersWindow and track volumes
Diffstat (limited to 'Util/Trackpad.py')
-rw-r--r--Util/Trackpad.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/Util/Trackpad.py b/Util/Trackpad.py
index 5854e00..3aaf549 100644
--- a/Util/Trackpad.py
+++ b/Util/Trackpad.py
@@ -4,14 +4,15 @@ pygtk.require( '2.0' )
import gtk
import gobject
+from Util.CSoundClient import new_csound_client
import Config
KEY_MAP_PIANO = Config.KEY_MAP_PIANO
class Trackpad:
- def __init__(self, win, client):
+ def __init__(self, win):
self.win = win
- self.csnd = client
+ self.csnd = new_csound_client()
win.add_events(gtk.gdk.POINTER_MOTION_MASK)
win.add_events(gtk.gdk.BUTTON_PRESS_MASK)
win.add_events(gtk.gdk.BUTTON_RELEASE_MASK)
@@ -62,6 +63,7 @@ class Trackpad:
self.current_x = X
self.current_y = Y
if self.buttonPressed:
+ print self.final_x, self.final_y
self.final_x = X - self.first_x
self.final_y = Y - self.first_y
self.csnd.setTrackpadX(self.final_x)