diff options
author | Dieter Verfaillie <dieterv@optionexplicit.be> | 2011-02-15 17:31:16 +0100 |
---|---|---|
committer | Dieter Verfaillie <dieterv@optionexplicit.be> | 2011-02-17 12:38:12 +0100 |
commit | d82023765f874731214cfe9fcd53edb8734d234b (patch) | |
tree | 70a162c19499fb128c0f584c335cff6ddb5360bb /examples/pango | |
parent | 0b535a9dbf5aa9c4095401d79f80e99c285a2313 (diff) | |
download | pygtk-d82023765f874731214cfe9fcd53edb8734d234b.tar.gz |
Add 'import pygtk; pygtk.require('2.0') statements where needed
Diffstat (limited to 'examples/pango')
-rwxr-xr-x | examples/pango/pangocairo-simple.py | 4 | ||||
-rwxr-xr-x | examples/pango/utf8-demo.py | 2 |
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 |