pcisim.core.wire
index
../../src/pcisim/core/wire.py

This module implements Wire widget class.
 
@CONSTS
    HR : indicates an horizontal line
    VR : indicates a vertical line

 
Modules
       
wx

 
Classes
       
pcisim.lib.widget.widgetbase.WidgetBase(__builtin__.object)
Wire

 
class Wire(pcisim.lib.widget.widgetbase.WidgetBase)
    A graphical object which represents a link between two components
on the board.
 
This link is logical implemented by a Port or Bus object.
 
Wire is composed by horizontal and vertical lines with ease for
collision detection.
 
@ATTRIBS
    (Port) port : port represented by the wire
    (list)(list[2]) points : coordinates of points which form the wire
    (list)(wx.Rect) rects : collision rects of the lines which compose
        the wire
 
    color : color of the wire when normal
    writecolor : color of the wire when written
    readcolor : color of the wire when read
 
    (Bool) reading : flag true if wire in read state
    (Bool) writing : flag true if wire in write state
 
 
Method resolution order:
Wire
pcisim.lib.widget.widgetbase.WidgetBase
__builtin__.object

Methods defined here:
__init__(self, port, upos, *parts)
@PARAMS
    (Port) port : port represented by the wire
    (tuple[2]) upos : initial point expressed in units
    *parts : wire components in one of the following forms:
        | (HR, width)
        | (VR, height)
 
@NOTES
    'height' and 'width' are expressed in units

Methods inherited from pcisim.lib.widget.widgetbase.WidgetBase:
__str__(self)
scale(self, newunit)
Scales the widget using an unitsize.
 
@PARAMS
    | (list[2]) newunit : custom unit to use
    | (None) newunit : use default unit size
 
@NOTES
    Children widgets will be scaled as well.

Data descriptors inherited from pcisim.lib.widget.widgetbase.WidgetBase:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
Data
        __all__ = ['Wire']