summaryrefslogtreecommitdiff
path: root/examples/pango
diff options
context:
space:
mode:
authorDieter Verfaillie <dieterv@optionexplicit.be>2011-02-15 17:31:16 +0100
committerDieter Verfaillie <dieterv@optionexplicit.be>2011-02-17 12:38:12 +0100
commitd82023765f874731214cfe9fcd53edb8734d234b (patch)
tree70a162c19499fb128c0f584c335cff6ddb5360bb /examples/pango
parent0b535a9dbf5aa9c4095401d79f80e99c285a2313 (diff)
downloadpygtk-d82023765f874731214cfe9fcd53edb8734d234b.tar.gz
Add 'import pygtk; pygtk.require('2.0') statements where needed
Diffstat (limited to 'examples/pango')
-rwxr-xr-xexamples/pango/pangocairo-simple.py4
-rwxr-xr-xexamples/pango/utf8-demo.py2
2 files changed, 5 insertions, 1 deletions
diff --git a/examples/pango/pangocairo-simple.py b/examples/pango/pangocairo-simple.py
index 8cf6d46f..15d464cd 100755
--- a/examples/pango/pangocairo-simple.py
+++ b/examples/pango/pangocairo-simple.py
@@ -1,8 +1,10 @@
#! /usr/bin/env python
import sys
import math
-import pango
import cairo
+import pygtk
+pygtk.require('2.0')
+import pango
import pangocairo
RADIUS = 150
diff --git a/examples/pango/utf8-demo.py b/examples/pango/utf8-demo.py
index 3b960e2b..2d430a3e 100755
--- a/examples/pango/utf8-demo.py
+++ b/examples/pango/utf8-demo.py
@@ -2,6 +2,8 @@
# -*- coding: utf-8 -*-
#
# order is important here (for now)
+import pygtk
+pygtk.require('2.0')
import gtk
# string taken from pango examples directory and converted from utf8