Custom DrawingArea doesn't show

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello!
I want to do some custom drawing in my pygtk GUI.
My approach was to override DrawingArea, get a cairo context on
'realize" and overwrite 'do_expose_event' / connect to 'expose-event'
(neither worked).

The test window, i added my custom DrawingArea to just shows blank,
however it accomodates to the size request of my DA.
I can manually draw into the saved CairoContext of the DA and it shows.
When I do queue_draw on the window or the DA, it flickers and shows the
correct graphics for a moment.
When I drag the window around, it happens that it suddenly shows the
graphics, but with some bug (ie where it was overlapped by other windows).

Seems that most times it draws and is immediadely drawn over with bg color.

I also tried to return True in the expose-event handler, and to
connect_after it.
Always the same.

Is this the correct behaviour? Should I connect to another event?

regards
Herwig Hochleitner


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIpJg32yN0WRIYfpERAhP/AJ45rzK3DzOSPlR7BBjskGpP8n85RACeJP3l
Z17J+NN84myw3f0oZkFAS88=
=nFvY
-----END PGP SIGNATURE-----
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux