Steve Chaplin wrote:

How can the values a gtk.gdk.GC be read?

Using 'gc.get_values()' gives the error
AttributeError: 'gtk.gdk.GCX11' object has no attribute 'get_values'

Using 'gc.foreground' gives the error
AttributeError: 'gtk.gdk.GCX11' object has no attribute 'foreground'


I'm assuming you are using PyGTK 2.3.91 or later and are using gtk.gdk.Drawable.new_gc() to create the GC. The lack of attributes would appear to be an unintended side-effect of the change to add new types on the fly (bug #129032) - in this case the gtk.gdk.GCX11 type. Probably you should file a bug on this. As a workaround it looks like you can create a new GC that has attributes by using the gtk.gdk.GC() constructor.

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/

Reply via email to