GimpUi.MemsizeEntry¶
- Subclasses:
 None
Methods¶
- Inherited:
 Gtk.Box (14), Gtk.Container (35), Gtk.Widget (278), GObject.Object (37), Gtk.Buildable (10), Gtk.Orientable (2)
- Structs:
 Gtk.ContainerClass (5), Gtk.WidgetClass (12), GObject.ObjectClass (5)
class  | 
  | 
  | 
|
  | 
Virtual Methods¶
Properties¶
- Inherited:
 Gtk.Box (3), Gtk.Container (3), Gtk.Widget (39), Gtk.Orientable (1)
Child Properties¶
- Inherited:
 
Style Properties¶
- Inherited:
 
Signals¶
- Inherited:
 
Name  | 
Short Description  | 
|---|---|
Fields¶
- Inherited:
 
Class Details¶
- class GimpUi.MemsizeEntry(*args, **kwargs)¶
 - Bases:
 - Abstract:
 No
- Structure:
 
Similar to a
GimpUi.SizeEntrybut instead of lengths, this widget is used to let the user enter memory sizes. A combo box allows one to switch between Kilobytes, Megabytes and Gigabytes. Used in the GIMP preferences dialog.- classmethod new(value, lower, upper)¶
 - Parameters:
 - Returns:
 Pointer to the new
GimpUi.MemsizeEntry.- Return type:
 
Creates a new
GimpUi.MemsizeEntrywhich is aGtk.HBoxwith aGtk.SpinButtonand a #GtkOptionMenu all setup to allow the user to enter memory sizes.
- get_spinbutton()¶
 - Returns:
 the entry’s #GtkSpinbutton.
- Return type:
 
New in version 3.0.
- get_value()¶
 - Returns:
 the current value of self (in Bytes).
- Return type:
 
Retrieves the current value from a
GimpUi.MemsizeEntry.
- set_value(value)¶
 - Parameters:
 value (
int) – the new value (in Bytes)
Sets the self's value. Please note that the
GimpUi.MemsizeEntryrounds the value to full Kilobytes.
Signal Details¶
- GimpUi.MemsizeEntry.signals.value_changed(memsize_entry)¶
 - Signal Name:
 value-changed- Flags:
 - Parameters:
 memsize_entry (
GimpUi.MemsizeEntry) – The object which received the signal