GooCanvas.CanvasWidget¶
- Subclasses:
None
Methods¶
- Inherited:
GooCanvas.CanvasItemSimple (9), GObject.Object (37), GooCanvas.CanvasItem (48)
- Structs:
Virtual Methods¶
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
How to position the widget relative to the item’s x and y coordinate settings |
||
r/w |
The height of the widget, or -1 to use its requested height |
||
r/w |
The widget to place in the canvas |
||
r/w |
The width of the widget, or -1 to use its requested width |
||
r/w |
The x coordinate of the widget |
||
r/w |
The y coordinate of the widget |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
anchor |
r |
||
height |
r |
||
parent_object |
r |
||
widget |
r |
||
width |
r |
||
x |
r |
||
y |
r |
Class Details¶
- class GooCanvas.CanvasWidget(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
GooCanvas.CanvasWidget
provides support for placing anyGtk.Widget
in the canvas.The
GooCanvas.CanvasWidget
:width
andGooCanvas.CanvasWidget
:height
properties specify the widget’s size. If either of them is -1, then the requested size of the widget is used instead, which is the default for both width and height.Note that there are a number of limitations in the use of
GooCanvas.CanvasWidget
:It doesn’t support any transformation besides
GooCanvas.simple
translation. This means you can’t scale a canvas with aGooCanvas.CanvasWidget
in it.It doesn’t support layering, so you can’t place other items beneath or above the
GooCanvas.CanvasWidget
.It doesn’t support rendering of widgets to a given
cairo.Context
, which means you can’t output the widget to a pdf or postscript file.It doesn’t have a model/view variant like the other standard items, so it can only be used in a
GooCanvas.simple
canvas without a model.It can’t be made a static item.
Property Details¶
- GooCanvas.CanvasWidget.props.anchor¶
- Name:
anchor
- Type:
- Default Value:
- Flags:
How to position the widget relative to the item’s x and y coordinate settings
- GooCanvas.CanvasWidget.props.height¶
-
The height of the widget, or -1 to use its requested height
- GooCanvas.CanvasWidget.props.widget¶
- Name:
widget
- Type:
- Default Value:
- Flags:
The widget to place in the canvas
- GooCanvas.CanvasWidget.props.width¶
-
The width of the widget, or -1 to use its requested width
- GooCanvas.CanvasWidget.props.x¶
-
The x coordinate of the widget