Public bug reported:

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()

** Affects: gir-repository (Ubuntu)
     Importance: Undecided
         Status: New

** Affects: gtk+3.0 (Ubuntu)
     Importance: Undecided
         Status: New

** Also affects: gir-repository (Ubuntu)
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/999519

Title:
  "draw" event is never called on a Gtk.DrawingArea in python

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gir-repository/+bug/999519/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to