Hey there,

Could someone please help me with this problem. I would like to have a
better understanding of how to use GdkGC's. Here is some example code to
explain what I would like to be able to do:


def on_button1_clicked(widget, mainObj):
    
    GdkWindow = widget.get_parent_window()
    gc = GdkWindow.new_gc()

    for x in range(1,64):
        for y in range(1,48):

            color =  GdkColor(x * 100, y * 100, 0)
            gc.foreground = color
            
            mainObj.drawingarea1.draw_point(gc, x, y)


This code does not work the way I would expect, the color used is
allways the default foreground of the theme I have installed. 

I have tried to find an example of someone changing the color in a GdkGC
and drawing on a DrawingArea. The code I have seen only uses the default
colors.

Thanks allot,

Phil
.



_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk

Reply via email to