diff options
author | Paul Bolle <pebolle@tiscali.nl> | 2010-07-30 10:56:01 +0200 |
---|---|---|
committer | John (J5) Palmieri <johnp@redhat.com> | 2010-07-30 08:08:47 -0400 |
commit | faa7d4eece7ddb698725098970c2478a3b45c4d5 (patch) | |
tree | 1c5c76aeaa528c973aa3696631af059164aea13a /examples | |
parent | c9da5782e6c633d9af43ee85075e9ee65db09780 (diff) | |
download | gobject-introspection-faa7d4eece7ddb698725098970c2478a3b45c4d5.tar.gz |
Make an example and a demo work out of the box
cairo-demo.py and gtk-demo.py need the two (kind of) magic lines
regarding pygtk to work out of the box. So add those.
Signed-off-by: Paul Bolle <pebolle@tiscali.nl>
https://bugzilla.gnome.org/show_bug.cgi?id=625638
Diffstat (limited to 'examples')
-rwxr-xr-x | examples/cairo-demo.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/cairo-demo.py b/examples/cairo-demo.py index 1c60ea6c..72a05333 100755 --- a/examples/cairo-demo.py +++ b/examples/cairo-demo.py @@ -1,6 +1,8 @@ #!/usr/bin/env python """Based on cairo-demo/X11/cairo-demo.c """ +import pygtk +pygtk.require('2.0') import cairo from gi.repository import Gdk, Gtk |