"draw" event is never called on a Gtk.DrawingArea in python
Bug #999519 reported by
Valmantas Palikša
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gir-repository (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
gtk+3.0 (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
I'm trying this simple script, but the "on_draw" function never gets called. This worked fine before upgrading to Ubuntu 12.04
from gi.repository import GObject, Gtk, Gdk, GLib
a = Gtk.DrawingArea()
def on_draw(*args):
print "Draw"
a.connect("draw", on_draw)
w = Gtk.Window()
w.add(a)
w.show_all()
Gtk.main()
To post a comment you must log in.
solved, apparently python-gi-cairo package was needed.