Gtk.Arrow¶
- Subclasses:
None
Methods¶
- Inherited:
Gtk.Misc (4), Gtk.Widget (278), GObject.Object (37), Gtk.Buildable (10)
- Structs:
class |
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
The direction the arrow should point |
||
r/w |
Appearance of the shadow surrounding the arrow |
Style Properties¶
- Inherited:
Name |
Type |
Default |
Flags |
Short Description |
---|---|---|---|---|
|
|
r |
Amount of space used up by arrow |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
misc |
r |
Class Details¶
- class Gtk.Arrow(*args, **kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Gtk.Arrow
should be used to draw simple arrows that need to point in one of the four cardinal directions (up, down, left, or right). The style of the arrow can be one of shadow in, shadow out, etched in, or etched out. Note that these directions and style types may be amended in versions of GTK+ to come.Gtk.Arrow
will fill any space alloted to it, but since it is inherited fromGtk.Misc
, it can be padded and/or aligned, to fill exactly the space the programmer desires.Arrows are created with a call to
Gtk.Arrow.new
(). The direction or style of an arrow can be changed after creation by usingGtk.Arrow.set
().Gtk.Arrow
has been deprecated; you can simply use aGtk.Image
with a suitable icon name, such as “pan-down-symbolic“. When replacingGtk.Arrow
by an image, pay attention to the fact thatGtk.Arrow
is doing automatic flipping betweenGtk.ArrowType.LEFT
andGtk.ArrowType.RIGHT
, depending on the text direction. To get the same effect with an image, use the icon names “pan-start-symbolic“ and “pan-end-symbolic“, which react to the text direction.- classmethod new(arrow_type, shadow_type)[source]¶
- Parameters:
arrow_type (
Gtk.ArrowType
) – a validGtk.ArrowType
.shadow_type (
Gtk.ShadowType
) – a validGtk.ShadowType
.
- Returns:
the new
Gtk.Arrow
widget.- Return type:
Creates a new
Gtk.Arrow
widget.Deprecated since version 3.14: Use a
Gtk.Image
with a suitable icon.
- set(arrow_type, shadow_type)[source]¶
- Parameters:
arrow_type (
Gtk.ArrowType
) – a validGtk.ArrowType
.shadow_type (
Gtk.ShadowType
) – a validGtk.ShadowType
.
Sets the direction and style of the
Gtk.Arrow
, self.Deprecated since version 3.14: Use a
Gtk.Image
with a suitable icon.
Property Details¶
- Gtk.Arrow.props.arrow_type¶
- Name:
arrow-type
- Type:
- Default Value:
- Flags:
The direction the arrow should point
- Gtk.Arrow.props.shadow_type¶
- Name:
shadow-type
- Type:
- Default Value:
- Flags:
Appearance of the shadow surrounding the arrow