Helper values to be used as Size Hints for objects.
to be used with weight or expand
to be used with align or fill
Expand in both direction
New in version 1.13.
Expand horizontally
New in version 1.13.
Expand vertically
New in version 1.13.
Fill both direction
New in version 1.13.
Fill horizontally
New in version 1.13.
Fill vertically
New in version 1.13.
Flags for Mouse Button events.
No extra mouse button data.
This mouse button press was the 2nd press of a double click.
This mouse button press was the 3rd press of a triple click.
Natural direction.
Neutral direction.
Left to right direction.
Right to left direction.
Mouse In Event.
Mouse Out Event.
Mouse Button Down Event.
Mouse Button Up Event.
Mouse Move Event.
Mouse Wheel Event.
Multi-touch Down Event.
Multi-touch Up Event.
Multi-touch Move Event.
Object Being Freed (Called after Del).
Key Press Event.
Key Release Event.
Focus In Event.
Focus Out Event.
Show Event.
Hide Event.
Move Event.
Resize Event.
Restack Event.
Object Being Deleted (called before Free).
Events go on/off hold.
Size hints changed event.
Image has been preloaded.
Canvas got focus as a whole.
Canvas lost focus as a whole.
Called just before rendering is updated on the canvas target.
Called just after rendering is updated on the canvas target.
Canvas object got focus.
Canvas object lost focus.
Image data has been unloaded.
Called just before rendering starts on the canvas target.
Called just after rendering stops on the canvas target.
Image size is changed.
Devices added, removed or changed on canvas.
Input device changed value on some axis. (since 1.13)
Canvas viewport resized. (since 1.15)
kept as last element/sentinel – not really an event.
No fancy flags set.
This event is being delivered but should be put “on hold” until the on hold flag is unset. The event should be used for informational purposes and maybe some indications visually, but not actually perform anything
This event flag indicates the event occurs while scrolling; for example, DOWN event occurs during scrolling; the event should be used for informational purposes and maybe some indications visually, but not actually perform anything
Touch point is pressed down
Touch point is released
Touch point is moved
Touch point is not moved after pressed
Touch point is cancelled
No font hinting
Automatic font hinting
Bytecode font hinting
ARGB8888
YCBCR422P601_PL
YCBCR422P709_PL
RGB565_A5P
GRY8
YCBCR422601_PL
YCBCR420NV12601_PL
YCBCR420TM12601_PL
How to pack items into cells in a table
None
Table
Item
Preference on scaling unset
Same effect as unset preference on scaling
Use all horizontal container space to place an object, using the given aspect
Use all vertical container space to place an object, using the given aspect
Use all horizontal and vertical container spaces to place an object (never growing it out of those bounds), using the given aspect
Default mode.
Use this mode when you want to give compress display mode hint to an object.
Use this mode when you want to give expand display mode hint to an object.
Use this mode when an object should not change its display mode.
None.
Generic.
Not exists.
Permission danied.
Allocation failure.
Corrupted file.
Unknown format.
No allocation error.
Allocation failed despite attempts to free up memory.
Allocation succeeded, but extra memory had to be found by freeing up speculative resources.
Image fill tiling mode - tiling reflects
Image fill tiling mode - tiling reflects
Tiling clamps - range offset ignored
Tiling clamps and any range offset reflects
Tiling clamps and any range offset repeats
Tiling extends with end values
No pixel format.
ARGB 32bit pixel format with A in the high byte per 32bit pixel word.
YUV 420 Planar format with CCIR 601 color encoding with contiguous planes in the order Y, U and V.
No surface type.
X Window system based type.
OpenGL system based type.
Wayland system based type.
default op: d = d*(1-sa) + s
d = d*(1 - sa) + s*da
d = s
d = s*da
Unknown
d = d + s*da
d = d - s
Unknown
d = d*s + d*(1 - sa) + s*(1 - da)
d = d*(1 - sa + s)
d = d*sa
d = d*s
None
Default
Solid
None
Dynamic
Static
None
Loop
Pingpong
New in version 1.14.
No orientation change
No orientation change
Orient 90 degrees clockwise
Orient 180 degrees clockwise
Rotate 90 degrees counter-clockwise (i.e. 270 degrees clockwise)
Flip image horizontally
Flip image vertically
Flip image along the y = (width - x) line (bottom-left to top-right)
Flip image along the y = x line (top-left to bottom-right)
The rendering is blocking mode.
The rendering is non blocking mode.
No hint at all.
The contents will change over time.
The contents won’t change over time.
Not a device.
The user/seat (the user themselves)
A regular keyboard, numberpad or attached buttons.
A mouse, trackball or touchpad relative motion device.
A touchscreen with fingers or stylus.
A special pen device.
A laser pointer, wii-style or “minority report” pointing device.
A gamepad controller or joystick.
default, X11-like
pointer always bound to the object right below it
useful on object with “repeat events” enabled, where mouse/touch up and down events WONT be repeated to objects and these objects wont be auto-grabbed.
plain
shadow
outline
soft outline
glow
outline shadow
far shadow
outline soft shadow
soft shadow
far soft shadow
shadow direction bottom right
shadow direction bottom
shadow direction bottom left
shadow direction left
shadow direction top left
shadow direction top
shadow direction top right
shadow direction right
Textblock text of type raw.
Textblock text of type plain.
Textblock text of type markup.
Cursor type is under.
Cursor type is before.
The palette to use for the foreground and background colors.
No palette is used.
Standard palette (around 16 colors).
Extended palette (at max 256 colors).
Ignore it.
Bases: object
Introspection description for a smart callback
Type: | string |
---|
Type: | string |
---|
color_argb_premul(int r, int g, int b, int a)
color_argb_unpremul(int r, int g, int b, int a)
color_hsv_to_rgb(float h, float s, float v)
color_parse(desc, is_premul=None)
color_rgb_to_hsv(int r, int g, int b)
extension_can_load(filename) Check if a file extension is supported by Image.
param filename: The file to check type filename: unicode return: True if we may be able to open it,``False`` if it’s unlikely. rtype: bool Note
This function is threadsafe.
font_path_global_append(path) Appends a font path to the list of font paths used by the application
font_path_global_clear() Removes all font paths loaded
font_path_global_list() Retrieves the list of font paths used by the application
font_path_global_prepend(path) Prepends a font path to the list of font paths used by the application
init()
render_method_list() Returns a list of render method names.
rtype: list of str
render_method_lookup(name) Lookup render method and return its id (> 0 if found).
param name: Render method type name: string return: ID rtype: int
shutdown()