Callbacks¶
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
Details¶
- GimpUi.HelpFunc(help_id, help_data)¶
 - 
This is the prototype for all functions you pass as help_func to the various GIMP dialog constructors like gimp_dialog_new(),
GimpUi.query_int_box() etc.Help IDs are textual identifiers the help system uses to figure which page to display.
All these dialog constructors functions call
GimpUi.help_connect().In most cases it will be ok to use
GimpUi.standard_help_func() which does nothing but passing the help_id string toGimp.help(). If your plug-in needs some more sophisticated help handling you can provide your own help_func which has to callGimp.help() to actually display the help. 
- GimpUi.ImageConstraintFunc(image, *data)¶
 - Parameters:
 image (
Gimp.Image) –
- Return type:
 
- GimpUi.IntRadioFrameSensitivityFunc(value, user_data, new_value, *data)¶
 - Parameters:
 - Returns:
 - Return type:
 
Signature for a function called on each radio button value and data, each time the
GimpUi.IntRadioFrameis drawn, to make some radio button insensitive. If the function returnsFalse, it usually means that the value is not a valid choice in current situation. In this case, you might want to toggle instead another value automatically. Set new_value to the value to toggle. If you leave this untouched, the radio button will stay toggled despite being insensitive. This is up to you to decide whether this is meaningful.
- GimpUi.IntSensitivityFunc(value, *data)¶
 
- GimpUi.ItemConstraintFunc(image, item, *data)¶
 - Parameters:
 image (
Gimp.Image) –item (
Gimp.Item) –
- Return type:
 
- GimpUi.QueryBooleanCallback(query_box, value, *data)¶
 - Parameters:
 query_box (
Gtk.Widget) – The query box.value (
bool) – The entered boolean value.
The callback for a boolean query box.
- GimpUi.QueryDoubleCallback(query_box, value, *data)¶
 - Parameters:
 query_box (
Gtk.Widget) – The query box.value (
float) – The entered double value.
The callback for a double query box.
- GimpUi.QueryIntCallback(query_box, value, *data)¶
 - Parameters:
 query_box (
Gtk.Widget) – The query box.value (
int) – The entered integer value.
The callback for an int query box.
- GimpUi.QuerySizeCallback(query_box, size, unit, *data)¶
 - Parameters:
 query_box (
Gtk.Widget) – The query box.size (
float) – The entered size in pixels.unit (
Gimp.Unit) – The selected unit from the #GimpUnitMenu.
The callback for a size query box.
- GimpUi.QueryStringCallback(query_box, string, *data)¶
 - Parameters:
 query_box (
Gtk.Widget) – The query box.string (
str) – The entered string.
Note that you must not
GLib.free() the passed string.