Gimp.context_set_pattern
@accepts(unicode)
@returns(bool)
def context_set_pattern(name):
# Python wrapper for gimp_context_set_pattern()
Set the specified pattern as the active pattern.
This procedure allows the active pattern to be set by specifying its name. The name is simply a string which corresponds to one of the names of the installed patterns. If there is no matching pattern found, this procedure will return an error. Otherwise, the specified pattern becomes active and will be used in all subsequent paint operations.
Since 2.2
- name
The name of the pattern.
- Returns