diff options
author | Daniel Francis <francis@sugarlabs.org> | 2012-07-14 19:34:58 (GMT) |
---|---|---|
committer | Daniel Francis <francis@sugarlabs.org> | 2012-07-14 19:34:58 (GMT) |
commit | 8408680efcdf4a3cf6596ac9c83121d393e38692 (patch) | |
tree | 1ffea6b155422148d06291ad3a355251ed3a9172 /activity.py | |
parent | 85331825e41efd15f54d9d78bf684dc734ad4ebf (diff) |
Connecting shift press with motion cursor
Diffstat (limited to 'activity.py')
-rw-r--r-- | activity.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/activity.py b/activity.py index 0d2cff7..4fb2b80 100644 --- a/activity.py +++ b/activity.py @@ -67,6 +67,8 @@ class GraphPlotter(activity.Activity): self.stop = StopButton(self) self.profile_color = profile.get_color() self.graph = Graph() + self.connect('key-press-event', self.graph._key_press_event) + self.connect('key-release-event', self.graph._key_release_event) self.graph.connect('update-x-y', self._update_coordinates) self.graph.reload_functions([('sin(x)', gtk.gdk.color_parse(self.profile_color.get_fill_color()))]) |