testFindLabel

This function will search widget and all its descendants for a GtkLabel widget with a text string matching label_pattern. The label_pattern may contain asterisks “*” and question marks “?” as placeholders, glib.global.patternMatch is used for the matching. Note that locales other than "C“ tend to alter (translate” label strings, so this function is genrally only useful in test programs with predetermined locales, see gtk.global.testInit for more details.

Parameters

widget gtk.widget.Widget

Valid label or container widget.

labelPattern string

Shell-glob pattern to match a label string.

Return Value

Type: gtk.widget.Widget

a GtkLabel widget if any is found.