Re: [pygtk] pygtk - gtk Drawing Area - need help!

2001-10-08 Thread Matt Wilson
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

Re: [pygtk] pygtk - gtk Drawing Area - need help!

2001-10-08 Thread James Henstridge
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 > >> >

Re: [pygtk] pygtk - gtk Drawing Area - need help!

2001-10-08 Thread Skip Montanaro
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() >> >

Re: [pygtk] pygtk - gtk Drawing Area - need help!

2001-10-08 Thread Tjabo Kloppenburg
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

Re: [pygtk] pygtk - gtk Drawing Area - need help!

2001-10-07 Thread Tom Cato Amundsen
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

Re: [pygtk] pygtk - gtk Drawing Area - need help!

2001-10-07 Thread Martin Grimme
> 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