[pygtk] Painting in text view margin and the "draw" signal
Timo
timomlists at gmail.com
Sun Feb 26 19:20:37 WST 2012
Op 26-02-12 02:51, Osmo Salomaa schreef:
> Hi,
>
> With Gtk2 and the old static bindings I made use of the text view right
> margin by painting a pango layout there. Now I'm trying to port my code
> to Gtk3 and the introspection bindings. Documentation [1] tells me that
> I should be using the "draw" signal instead of "expose-event", but my
> callback for the "draw" signal doesn't even seem to get called.
Callback works ok here, well, after removing everything after the print
function. Ubuntu 11.10 with GTK 3.2.0 and PyGObject 3.0.0.
Cheers,
Timo
> Is there
> some significant difference between these two signals? Anyone yet ported
> similar code? Below is my non-working half-ported minimal example.
>
> https://gist.github.com/1912166
>
> [1] http://developer.gnome.org/gtk3/3.3/ch25s02.html
>
More information about the pygtk
mailing list