Hi all,What version exactly of PyGTK are you using i.e what's the value of gtk.pygtk_version? Sound like you are using a pre-2.0 version. RH 9.0 comes with 1.99.12 standard; did you upgrade this?
I've been looking through the pygtk2 tutorial (version 1.2) by John Finlay, and have been playing with textviews. Almost all of the example programs in the tutorial work for me, but the testtext.py does not. When I run it I get
Traceback (most recent call last): File "testtext.py", line 1167, in ? testtext = TestText(sys.argv[1:]) File "testtext.py", line 1155, in __init__ view = View() File "testtext.py", line 556, in __init__ buffer = Buffer() File "testtext.py", line 125, in __init__ self.not_editable_tag = self.create_tag('None', editable=gtk.FALSE, foreground="purple") TypeError: 'foreground' is an invalid keyword argument for this function
According to the pygtk 2 reference manual, the textbuffer.create_tag method takes the tag_name as well as one or more property_name values. I tried taking out the foreground property, and get the same TypeError that 'editable' is invalid, so it doesn't seem that its allowing any property values.
Is anyone familiar with textbuffer tags? Any ideas why it won't allow property values in the create_tag for me? I know the gtk version of this program works.
Using Redhat 9, python 2.2, pygtk 2.
John
_______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
