kigadgets.item

Module Contents

Classes

BoardItem

HasPosition

Board items that has valid position property should inherit

HasOrientation

Board items that has orientation property should inherit this.

HasLayer

Layer handling based on strings like 'F.Cu', 'B.Silkscreen', 'User.12', etc.

HasConnection

All BOARD_CONNECTED_ITEMs should inherit this.

Selectable

This influences the main window. Make sure to pcbnew.Refresh() to see it

HasWidth

TextEsque

Base class for items with text-like properties

class kigadgets.item.BoardItem

Bases: _ABC

Inheritance diagram of kigadgets.item.BoardItem
property native_obj
property board
classmethod wrap(instance)
geohash()
class kigadgets.item.HasPosition

Bases: _ABC

Inheritance diagram of kigadgets.item.HasPosition

Board items that has valid position property should inherit this.

property position
property x
property y
geohash()
class kigadgets.item.HasOrientation

Bases: _ABC

Inheritance diagram of kigadgets.item.HasOrientation

Board items that has orientation property should inherit this.

property orientation

Rotation of the item in degrees.

geohash()
class kigadgets.item.HasLayer

Bases: _ABC

Inheritance diagram of kigadgets.item.HasLayer

Layer handling based on strings like ‘F.Cu’, ‘B.Silkscreen’, ‘User.12’, etc. If the layer is not present, it will be caught at runtime, rather than disallowed.

property layer
geohash()
class kigadgets.item.HasConnection

Bases: _ABC

Inheritance diagram of kigadgets.item.HasConnection

All BOARD_CONNECTED_ITEMs should inherit this.

property net_name
property net_code
geohash()
class kigadgets.item.Selectable

Bases: _ABC

Inheritance diagram of kigadgets.item.Selectable

This influences the main window. Make sure to pcbnew.Refresh() to see it

property is_selected
select(value=True)

Selecting changes the appearance and also plays a role in determining what will be the subject of a subsequent command (delete, move to layer, etc.)

deselect()
brighten(value=True)

Brightening gives a bright green appearance

geohash()
class kigadgets.item.HasWidth

Bases: _ABC

Inheritance diagram of kigadgets.item.HasWidth
property width
geohash()
class kigadgets.item.TextEsque

Bases: _ABC

Inheritance diagram of kigadgets.item.TextEsque

Base class for items with text-like properties

Note

Text orientation and object rotation/orientation mean different things

property text
property thickness
property size
property orientation
property justification
justification_lookups
geohash()