[pygtk] Missing method in gtksourceview.SourceView

Gian Mario Tagliaretti gianmt at gnome.org
Thu Jan 15 07:29:58 WST 2009


On Wed, Jan 14, 2009 at 10:57 PM, Luke Symes <allsymes a gmail.com> wrote:

Hi Luke

> However, when I try to do this in python, I get:
> AttributeError: 'gtksourceview.SourceView' object has no attribute
> 'set_indent_on_tab'

I guess you are importing the old gtksourceview module which doesn't
have that method

>>> import gtksourceview2
>>> gtksourceview2.View.set_indent_on_tab
<method 'set_indent_on_tab' of 'gtksourceview2.View' objects>

cheers
-- 
Gian Mario Tagliaretti
GNOME Foundation member
gianmt a gnome.org


More information about the pygtk mailing list