Package NetworkEditor :: Module Editor :: Class NodeEditor
[hide private]
[frames] | no frames]

Class NodeEditor

source code

ObjectEditor --+
               |
              NodeEditor

Node Editor. Allows to rename, add input and output ports, modifed the node's functions and start editors for ports and widgets

Instance Methods [hide private]
  __init__(self, node, master=None)
Contructor of the editor.
  nameEntryChange_cb(self, event=None)
apply the new name to the node and remember it has been modified
  Apply(self, event=None)
Callback for Apply Button
  Dismiss(self, event=None)
Destroy edit form and reset objcet's point to editor
  createForm(self, master)
Create standard editor form and add a Pmw Group for input ports, one for output ports and a check button for viewing the source node's code.
  addPortToForm(self, port, frame)
create a new line of widgets for a new port in the node editor
  newInputPort(self, event=None)
create a new input port with a default name
  newOutputPort(self, event=None)
  deletePortButtons(self, port)
removes widgets for this port from node editor
  deletePort(self, port, event=None)
delete a port
  editGrid_cb(self, event=None)
open a widget grid configuration editor
  editFunction_cb(self, event=None)
callback function of edit source code check button.
  displaySourceCode(self)
If no source code editor is created yet build one, else just show it If idlelib is found we use it, else we use default Pmw-based widget.
  editPort(self, port, event=None)
  editWidget(self, port, event=None)
start widget editor

Inherited from ObjectEditor: Cancel, OK, addOkApplyCancel, go, manageEditorButtons


Method Details [hide private]

__init__(self, node, master=None)
(Constructor)

source code 
Contructor of the editor.
    object is the obect the editor exposes (i.e. a node of a port for
instance).
    type is a string used to name the Editor window 'Node Editor' or 'Port
Editor'. master
    master is an optional container into which to place the editor. If ommited
the editor will appear in its own top level.

Overrides: ObjectEditor.__init__
(inherited documentation)

nameEntryChange_cb(self, event=None)

source code 
apply the new name to the node and remember it has been modified
Overrides: ObjectEditor.nameEntryChange_cb

Apply(self, event=None)

source code 
Callback for Apply Button
Overrides: ObjectEditor.Apply
(inherited documentation)

Dismiss(self, event=None)

source code 
Destroy edit form and reset objcet's point to editor
Overrides: ObjectEditor.Dismiss
(inherited documentation)

createForm(self, master)

source code 
Create standard editor form and add a Pmw Group for input ports, one for output ports and a check button for viewing the source node's code.
Overrides: ObjectEditor.createForm

addPortToForm(self, port, frame)

source code 
create a new line of widgets for a new port in the node editor

newInputPort(self, event=None)

source code 
create a new input port with a default name

newOutputPort(self, event=None)

source code 
None

deletePortButtons(self, port)

source code 
removes widgets for this port from node editor

deletePort(self, port, event=None)

source code 
delete a port

editGrid_cb(self, event=None)

source code 
open a widget grid configuration editor

editFunction_cb(self, event=None)

source code 
callback function of edit source code check button. Manages button's state, and status of Ok, Apply and Cancel buttons

displaySourceCode(self)

source code 
If no source code editor is created yet build one, else just show it If idlelib is found we use it, else we use default Pmw-based widget.

editPort(self, port, event=None)

source code 
None

editWidget(self, port, event=None)

source code 
start widget editor