Kim Deok Hwan <[EMAIL PROTECTED]> writes:

> Is there anything in gtk.py that corresponds to 'gdk_window_clear' in C?
> Or how can I emulate the function of it?

> [...]
>     gdk_window_set_background (drawingarea->window, &gdk_color);
>     /* Clear window */
>     gdk_window_clear (drawingarea->window);

> [...]
>     gc.background = color
>     (HERE)

> What statements (or routines) can enter (HERE) ?

I did not find it either.  In the meantime, I used the following work-around:

    [...]
    window = drawingarea.get_window()
    gc.foreground = color
    draw_rectangle(window, gc, TRUE, 0, 0, window.width, window.height)

While studying, I'm trying to translate all the examples of the GTK tutorial
from C to Python (probably as many did), and drop FIXME's whenever I stumble.
I'm nearly half-way done by now.  Once fully done, I plan to ask you all
for your help for the remaining difficulties.

-- 
Fran�ois Pinard   http://www.iro.umontreal.ca/~pinard


To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]

Reply via email to