diff options
author | erikb <erikb@574bc980-5f2d-0410-acbc-c8f9f0eb14e0> | 2007-11-02 06:55:43 (GMT) |
---|---|---|
committer | erikb <erikb@574bc980-5f2d-0410-acbc-c8f9f0eb14e0> | 2007-11-02 06:55:43 (GMT) |
commit | 16da6678b2a05844ef30de7ee44c756c0c9466e1 (patch) | |
tree | ae403c94d08990a02131487ebf1a1e5562cd8f32 /p5.py | |
parent | c1464f5c02fe0d80579a3e7b09dd95696a5b0d3d (diff) |
cool countdown...
git-svn-id: http://mediamods.com/public-svn/camera-activity/Record.activity@842 574bc980-5f2d-0410-acbc-c8f9f0eb14e0
Diffstat (limited to 'p5.py')
-rwxr-xr-x | p5.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -24,6 +24,8 @@ import gobject import cairo import math +#Sometimes a gtk.Image is a useful alternative to a drawing area. You can put a gtk.gdk.Pixmap in the gtk.Image and draw to the gtk.gdk.Pixmap, calling the gtk.Widget.queue_draw() method on the gtk.Image when you want to refresh to the screen. + class P5(gtk.DrawingArea): def __init__(self): super(P5, self).__init__() @@ -36,8 +38,6 @@ class P5(gtk.DrawingArea): # ok, we have to listen to mouse events here too self.add_events(gdk.BUTTON_PRESS_MASK | gdk.BUTTON_RELEASE_MASK | gdk.POINTER_MOTION_MASK) - #jedi says, this is useful, our very own d&d model - #how one talks to the sugar taskframe, no one knows. self._dragging = False self._mouseX = 0 self._mouseY = 0 |