BoolFilter#

class BoolFilter(**properties: Any)#

Superclasses: Filter, Object

GtkBoolFilter evaluates a boolean GtkExpression to determine whether to include items.

Constructors#

class BoolFilter
classmethod new(expression: Expression | None = None) BoolFilter#

Creates a new bool filter.

Parameters:

expression – The expression to evaluate

Methods#

class BoolFilter
get_expression() Expression | None#

Gets the expression that the filter uses to evaluate if an item should be filtered.

get_invert() bool#

Returns whether the filter inverts the expression.

set_expression(expression: Expression | None = None) None#

Sets the expression that the filter uses to check if items should be filtered.

The expression must have a value type of bool.

Parameters:

expression – a GtkExpression

set_invert(invert: bool) None#

Sets whether the filter should invert the expression.

Parameters:

invertTrue to invert

Properties#

class BoolFilter
props.expression: Expression#

The type of the None singleton.

props.invert: bool#

The type of the None singleton.