Op 09-05-12 16:13, Stuart Axon schreef:
In https://live.gnome.org/PyGObject/IntrospectionPorting#Step_1:_The_Great_Renaming it mentions "change expose-event to draw and do drawing with cairo." is there a really minimal example of this somewhere ?
Not really minimal, but see the example folder in the PyGObject package: http://git.gnome.org/browse/pygobject/tree/examples/cairo-demo.py

It basicly comes down to this:

def lets_draw(da, ctx):
    print da, ctx
da = Gtk.DrawingArea()
da.connect('draw', lets_draw)

Cheers,
Timo


- My App uses gtk DrawingArea fairly extensively.

S++

    ------------------------------------------------------------------------
    *From:* Tomeu Vizoso <[email protected]>
    *To:* Stuart Axon <[email protected]>
    *Cc:* Pygtk mailinglist <[email protected]>
    *Sent:* Wednesday, May 9, 2012 2:47 PM
    *Subject:* Re: [pygtk] Porting to gobject and pygi questions?

    On Wed, May 9, 2012 at 1:49 PM, Stuart Axon <[email protected]
    <mailto:[email protected]>> wrote:
    > Hello All,
    >
    >   Appologies for asking on the pygtk list but -
    >
    > I'm starting to port my app from pygtk to pygobject and running
    up against
    > various problems... however I can't work out where to ask
    questions about
    > pygi - the bugtracker on gnome says it's closed and I can't find a
    > mailinglist for it (!)

    Hi,

    all those links should be here:

    https://live.gnome.org/PyGObject

    If it's still not clear, please say so and the page will be completed.

    Regards,

    Tomeu




_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Reply via email to