#!/usr/bin/env python import os import dogtail.tree from dogtail.apps.wrappers.gedit import * # the test script assumes labels are in english os.environ['LANG'] = 'C' dogtail.utils.run('gedit') gedit = Gedit(dogtail.tree.root.application('gedit')) # a normal file gedit.openLocation("/home/paolo/cvs/gnome2/gedit/ChangeLog") # a remote file gedit.openLocation("http://www.gnome.org")