I just wish I could be of some help to others, but it is always me
who needs help ...

I would like to check everything that's entered into a Entry widget and
thusly connected the signals "insert-at-cursor" and "paste-clipboard".
Alas, both never get called. Widget events ("focus-in-event", "focus-out-event")
work, though.

Since I'm the only living soul with this particular problem (neither Google nor
the mailing list archive turn anything up) there is a gargantuan chance that
I'm doing something totally wrong.

Code snippet:

  def showsig(self, widget, event, uparm):
      print "Signal %s" % uparm

  def __init__(self):
       # ...
        box = gtk.HBox(False, 1)
        box.pack_start(gtk.Label("Entry 1:"), False, True, 5)
        e1 = gtk.Entry()
        e1.set_width_chars(18)
        e1.connect("focus-in-event", self.showsig, "E1 focus in")
        e1.connect("focus-out-event", self.showsig, "E1 focus out")
        e1.connect("insert-at-cursor", self.showsig, "E1 insert")
        e1.connect("paste-clipboard", self.showsig, "E1 paste clipboard")
        box.pack_start(e1, True, True, 5)

[Grrr! I cannot keep web.de from compressing all whitespace. Sorry.]

Could anyone enlight me?

Have a good new year everybody!

Hans-Joachim Widmaier
______________________________________________________________________________
Nachrichten, Musik und Spiele schnell und einfach per Quickstart im 
WEB.DE Screensaver - Gratis downloaden: http://screensaver.web.de/?mc=021110

_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to