PHP-GTK2 Cookbook Forum
Welcome, Guest
Please Login or Register.    Lost Password?
Signals list (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Signals list
#99
paamayim (User)
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
Signals list 6 Months ago Karma: 0  
Hi, it's me again.

I was wondering where I could find a list of available signals to connect to my Gtk objects signals.

For example, I'm interested in mouse signals suchs as buttons pressed/released, movements. I opened the docs, but I didnt find a list, shoudl I look for a particular object/class or what?

Thanks...
 
  The administrator has disabled public write access.
#100
kksou (Admin)
Admin
Posts: 254
graph
User Online Now Click here to see the profile of this user
Re:Signals list 6 Months ago Karma: 7  
Hi Paamayim,

For signals, you need to know which widget it belongs to. For example, 'button-press-event' belongs to GtkWidget. If you go to the page:
http://gtk.php.net/manual/en/gtk.gtkwidget.php

You will see it listed there (you have to scroll all the way to the bottom.)

If you do not know which widget a signal belongs to, you might want to download a copy of the PHP-GTK Explorer which I've written:
http://www.kksou.com/php-gtk2/Tools/PHP-GTK-Explorer.php

Click the 'signal' tab first and search for 'clicked', you will see the result as shown below:



Regards,
/kksou
 
  The administrator has disabled public write access.
#101
langsor (User)
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
Re:Signals list 6 Months ago Karma: 0  
Hi,

Is this what you're looking for as a reference?
http://gtk.php.net/manual/en/signalindex.php
http://gtk.php.net/manual/en/gdk.enum.eventtype.php

Start at the top level of the manual and poke around under Appendix and PHP-GTK2 Reference... http://gtk.php.net/manual/en/

If this isn't what you were asking about, sorry.


Also, kksou is right about signals being associated with specific widgets, but you can also sometimes add signals to widgets as seen here: http://gtk.php.net/manual/en/gtk.gtkwidget.method.add_events.php

Hope this helps
 
 
Last Edit: 2008/03/03 05:26 By langsor.
  The administrator has disabled public write access.
#102
paamayim (User)
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
Re:Signals list 6 Months ago Karma: 0  
Thanks for the replies guys, they are what I was looking for.

@ kksou: great script you've done.
 
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop

Copyright © 2006-2008. kksou.com. All Rights Reserved