Hey folks. I sent this to glade-users, and perhaps its more appropriate
for this list. Any ideas?
-------------------. Web-based problem management: www.stonekeep.com
Dave Belfer-Shevett >----------------------------------------------------.
[EMAIL PROTECTED] / My idea of an agreeable person is a person who \
------------------< agrees with me. (Benjamin Disreali) |
\______________________________________________________/
---------- Forwarded message ----------
Date: Thu, 28 Sep 2000 16:09:38 -0400 (EDT)
From: Dave Belfer-Shevett <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Questions about accelerators.
Hi folks. I'm writing a GTK app using libglade in Python. So far thinks
are going okay, but I'm having some difficulty connecting accelerators and
trapping signals from them.
I've defined an accelerator within a GtkText widget (call it 'ctrl-f1'),
and bound it to the key. I save it, and in the Glade file, I have:
[shevett@cheetah]:~/python/spanker/proj1$ ./spanker.py
Gtk-WARNING **: gtk_accel_group_add(): could not find signal "ctrl-f1"in
the `GtkText' class ancestry
Gtk-WARNING **: gtk_signal_connect_full(): could not find signal
"enter" in the `GtkText' class ancestry
Okay, fine, that means I need to use a signal that exists. (I
think). But what I -rally- want to do is link 'Ctrl-f1' to the 'clicked'
signal on a button elsewhere.
How do I do this - specifically in python/Glade. :)
Thanks!
-------------------. Web-based problem management: www.stonekeep.com
Dave Belfer-Shevett >----------------------------------------------------.
[EMAIL PROTECTED] / 32. Never do card tricks for the group you play \
------------------< poker with. |
\______________________________________________________/
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk