Hi,

I have trouble with regard to PyGTK 1.99.3 (together with GTK+
1.3.9 and Python2.2a4).  I know that the `Style' object in PyGTK
0.6.x has the member `white_gc', but it seems not in 1.99.3.
Here is a code snippet that I could not figure out how to fix
"AttributeError: 'Style' object has no attribute 'white_gc'".

def configure_event(widget, event):
    global pixmap
    if pixmap is not None:
        pixmap.unref()
    x, y, width, height = widget.get_allocation()
    pixmap = gtk.gdk.Pixmap(widget.window, width, height, -1)
    pixmap.draw_rectangle(
        widget.style.white_gc, # This causes an attributeError
        gtk.TRUE, 0, 0, width, height)
    return gtk.TRUE

Any comments are very appreciated.

I also need some tutorial documents and/or example codes in
terms of the new GTK+ and PyGTK APIs.  Are there such materials
available?

Thanks,

-- 
KAJIYAMA, Tamito <[EMAIL PROTECTED]>
_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk

Reply via email to