Package NetworkEditor :: Module itemBase :: Class NetworkItems
[hide private]
[frames] | no frames]

Class NetworkItems

source code

      object --+    
               |    
NetworkItemsBase --+
                   |
                  NetworkItems
Known Subclasses:
ports.Port, items.NetworkConnection, items.NetworkNodeBase

Base class for objects that can be added to a Canvas. Network items sublassing this have to extend the buildIcons method to create a Canvas geometry representing this item.

Instance Methods [hide private]
  __init__(self, name='NoName', autoRun=True)
  toggleAutoRun_cb(self, event=None)
  toggleFrozen_cb(self, event=None)
  freeze(self)
  unfreeze(self)
  run(self, force=0)
run this node.
  postItemMenu(self, event)
  editNodeMenu(self, type, *args, **kw)
  __repr__(self)
repr(x)
  rename(self, name, tagModified=True)
  beforeAddingToNetwork(self, network)
  afterAddingToNetwork(self)
  beforeRemovingFromNetwork(self)
  afterRemovingFromNetwork(self)
  highlight(self, event=None)
  unhighlight(self, event=None)
  select(self)
  deselect(self)
  deleteIcon(self)
  gettags(self)
  buildIcons(self, canvas)
method to be implmented by subclass this method should create the geometric primitives for this item and tag them all with self.iconTag define its uniqueTag set its tags
  hideParamPanel(self, event=None)
  schedule_cb(self)
  introspect(self)
  _introspectCB(self)
helper method used for the introspect data GUI
  deletePort(self, p, resize=True)
Delete a port from a node.

Inherited from NetworkItemsBase: delEditor, getEditor, setEditor

Inherited from NetworkItemsBase (private): _setModified, _setOriginal

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __str__


Properties [hide private]

Inherited from NetworkItemsBase: editor

Inherited from object: __class__


Method Details [hide private]

__init__(self, name='NoName', autoRun=True)
(Constructor)

source code 
None
Overrides: NetworkItemsBase.__init__

toggleAutoRun_cb(self, event=None)

source code 
None

toggleFrozen_cb(self, event=None)

source code 
None

freeze(self)

source code 
None

unfreeze(self)

source code 
None

run(self, force=0)

source code 
run this node. if force is set, the node will run regardless of the availability of new data. return 0 if run failed. (Thread safe)

postItemMenu(self, event)

source code 
None

editNodeMenu(self, type, *args, **kw)

source code 
None

__repr__(self)
(Representation operator)

source code 
repr(x)
Overrides: object.__repr__
(inherited documentation)

rename(self, name, tagModified=True)

source code 
None

beforeAddingToNetwork(self, network)

source code 
None

afterAddingToNetwork(self)

source code 
None

beforeRemovingFromNetwork(self)

source code 
None

afterRemovingFromNetwork(self)

source code 
None

highlight(self, event=None)

source code 
None

unhighlight(self, event=None)

source code 
None

select(self)

source code 
None

deselect(self)

source code 
None

deleteIcon(self)

source code 
None

gettags(self)

source code 
None

buildIcons(self, canvas)

source code 
method to be implmented by subclass this method should create the geometric primitives for this item and tag them all with self.iconTag define its uniqueTag set its tags

hideParamPanel(self, event=None)

source code 
None

schedule_cb(self)

source code 
None

introspect(self)

source code 
None

_introspectCB(self)

source code 
helper method used for the introspect data GUI

deletePort(self, p, resize=True)

source code 
Delete a port from a node. Removes it from the list of ports, updates the portsDescr list and return the descriptin of the deleted port, renumber all ports after this ports and mark them modified. Update code.