Gtk.CustomFilter¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Gtk.CustomFilter(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
GtkCustomFilter
determines whether to include items with a callback.- classmethod new(match_func, *user_data)[source]¶
- Parameters:
match_func (
Gtk.CustomFilterFunc
orNone
) – function to filter itemsuser_data (
object
orNone
) – user data to pass to match_func
- Returns:
a new
GtkCustomFilter
- Return type:
Creates a new filter using the given match_func to filter items.
If match_func is
None
, the filter matches all items.If the filter func changes its filtering behavior,
Gtk.Filter.changed
() needs to be called.
- set_filter_func(match_func, *user_data)[source]¶
- Parameters:
match_func (
Gtk.CustomFilterFunc
orNone
) – function to filter itemsuser_data (
object
orNone
) – user data to pass to match_func
Sets the function used for filtering items.
If match_func is
None
, the filter matches all items.If the filter func changes its filtering behavior,
Gtk.Filter.changed
() needs to be called.If a previous function was set, its user_destroy will be called now.