Gtk.Arrow¶
| Subclasses: | None | 
|---|
Methods¶
| Inherited: | Gtk.Misc (4), Gtk.Widget (278), GObject.Object (37), Gtk.Buildable (10) | 
|---|---|
| Structs: | Gtk.WidgetClass (12), GObject.ObjectClass (5) | 
| class | new(arrow_type, shadow_type) | 
| set(arrow_type, shadow_type) | 
Virtual Methods¶
| Inherited: | Gtk.Widget (82), GObject.Object (7), Gtk.Buildable (10) | 
|---|
Properties¶
| Inherited: | Gtk.Misc (4), Gtk.Widget (39) | 
|---|
| Name | Type | Flags | Short Description | 
|---|---|---|---|
| arrow-type | Gtk.ArrowType | r/w | The direction the arrow should point | 
| shadow-type | Gtk.ShadowType | r/w | Appearance of the shadow surrounding the arrow | 
Style Properties¶
| Inherited: | Gtk.Widget (17) | 
|---|
| Name | Type | Default | Flags | Short Description | 
|---|---|---|---|---|
| arrow-scaling | float | 0.699999988079071 | r | Amount of space used up by arrow | 
Signals¶
| Inherited: | Gtk.Widget (69), GObject.Object (1) | 
|---|
Class Details¶
- 
class Gtk.Arrow(*args, **kwargs)¶
- Bases: - Gtk.Misc- Abstract: - No - Structure: - Gtk.ArrowClass- Gtk.Arrowshould 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.Arrowwill fill any space alloted to it, but since it is inherited from- Gtk.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 using- Gtk.Arrow.set().- Gtk.Arrowhas been deprecated; you can simply use a- Gtk.Imagewith a suitable icon name, such as “pan-down-symbolic“. When replacing- Gtk.Arrowby an image, pay attention to the fact that- Gtk.Arrowis doing automatic flipping between- Gtk.ArrowType.LEFTand- Gtk.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.Arrowwidget.- Return type: - Creates a new - Gtk.Arrowwidget.- Deprecated since version 3.14: Use a - Gtk.Imagewith a suitable icon.
- arrow_type (
 - 
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.Imagewith a suitable icon.
- arrow_type (
 
- 
classmethod 
Property Details¶
- 
Gtk.Arrow.props.arrow_type¶
- Name: - arrow-type- Type: - Gtk.ArrowType- Default Value: - Gtk.ArrowType.RIGHT- Flags: - READABLE,- WRITABLE- The direction the arrow should point 
- 
Gtk.Arrow.props.shadow_type¶
- Name: - shadow-type- Type: - Gtk.ShadowType- Default Value: - Gtk.ShadowType.OUT- Flags: - READABLE,- WRITABLE- Appearance of the shadow surrounding the arrow