On Tue, Oct 09, 2001 at 11:19:42AM +0800, James Henstridge wrote:
>
> Unfortunately, the GdkGC object in 1.99.x doesn't handle this shorthand
> for setting attributes like it did in 0.6.x -- this statement just sets an
> object attribute. The set_foreground() method should work instead.
If you
On Mon, 8 Oct 2001, Skip Montanaro wrote:
>
> Tom> Can someone port this do pygtk2? Is enough functions wrapped yet to
> Tom> do this?
>
> >> from gtk import *
> >>
> >> def _on_expose(drawingarea, event):
> >> # get the GdkWindow
> >> window = event.window
> >>
>
Tom> Can someone port this do pygtk2? Is enough functions wrapped yet to
Tom> do this?
>> from gtk import *
>>
>> def _on_expose(drawingarea, event):
>> # get the GdkWindow
>> window = event.window
>>
>> # get the GC
>> gc = window.new_gc()
>>
>
hi martin!
> > Is there sample code somewhere, or a geek who knows all this? :-)
> Maybe here's a geek who knows these things... :)
> ...
great - I'll try this out!
graçias!
tk.
--
+ Tjabo Kloppenburg + taponet.de + de,en +
___
pygtk mailing list
Can someone port this do pygtk2? Is enough functions wrapped
yet to do this?
> --
>
> from gtk import *
>
> def _on_expose(drawingarea, event):
> # get the GdkWindow
> window = event.window
>
> # get the GC
> g
> I need help on how to use a drawingarea - how to draw colored
> lines/circles, how to clear the area, and so on.
> Is there sample code somewhere, or a geek who knows all this? :-)
Maybe here's a geek who knows these things... :)
OK, after you created a GtkDrawingArea, you should connect the