gws.plugin.model_widget.geometry

Geometry widget.

Buttons to draw or edit the geometry of a geometry field. With isInline, the widget is shown in the feature form; with withText, the geometry can also be edited as text. The widget is not shown in table views. This is the default widget of geometry fields.

Example:

fields+ {
    name "geom"
    type "geometry"
    widget { type "geometry" isInline true withText true }
}

Source code: gws.plugin.model_widget.geometry

Package Contents

class gws.plugin.model_widget.geometry.Config

Bases: gws.base.model.widget.Config

Buttons to draw or edit the feature geometry.

isInline: bool = False

Display the geometry widget in the form.

withText: bool = False

Show a button to edit the geometry as text.

class gws.plugin.model_widget.geometry.Object

Bases: gws.base.model.widget.Object

Geometry widget object.

supportsTableView = False
props(user)
class gws.plugin.model_widget.geometry.Props

Bases: gws.base.model.widget.Props

isInline: bool
withText: bool