Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/p5.py
diff options
context:
space:
mode:
authorerikb <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)
commit16da6678b2a05844ef30de7ee44c756c0c9466e1 (patch)
treeae403c94d08990a02131487ebf1a1e5562cd8f32 /p5.py
parentc1464f5c02fe0d80579a3e7b09dd95696a5b0d3d (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-xp5.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/p5.py b/p5.py
index a0f43b8..92af2b1 100755
--- a/p5.py
+++ b/p5.py
@@ -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