pygtk - pygtk3 checking does signal exist -




how can learn before connecting anything.

example

does_signal_exist(widget, signal):     pass  button = gtk.button()  does_signal_exist(button, "clicked") # returns true does_signal_exist(button, "hello") # returns false does_signal_exist(button, "unboxed") # returns false does_signal_exist(button, "button-press-event") # returns true 

there's wondrous tool called 'manual' or 'reference'. gtk-3.0 manual, , click on classes, , gtk.button. signals. if not there can same signals inherited previous objects.

using help(button or help(gtk.button) (inside python3, either in interactive or in program), have access methods, , lots of other information class , instance.

using manual mentioned above, check out girepository module - these functions can use inside gtk, classes , properties.

and can check if works: use try:/except: check if can connect signal/event interested in.





wiki

Comments

Popular posts from this blog

Asterisk AGI Python Script to Dialplan does not work -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -

python - Read npy file directly from S3 StreamingBody -