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

Class ObjectEditor

source code

Known Subclasses:
InputPortWidgetEditor, NodeEditor, PortEditor

Base class for editors such as node and port editor

Instance Methods [hide private]
  __init__(self, object, type, master=None)
Contructor of the editor.
  createForm(self, master)
Build the form.
  addOkApplyCancel(self)
Add the Ok, Apply and Cancel buttons
  manageEditorButtons(self)
Helper function to enable/disable the ok apply cancel buttons.
  nameEntryChange_cb(self, event=None)
  Apply(self, event=None)
Callback for Apply Button
  OK(self, event=None)
Callback for OK Button, calls Apply and Dismiss
  Cancel(self)
Callback for Cancel Button
  Dismiss(self, event=None)
Destroy edit form and reset objcet's point to editor
  go(self)
method for starting an editor in modal form (i.e.

Method Details [hide private]

__init__(self, object, type, 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.

createForm(self, master)

source code 
Build the form. Every editor has a frame called top followed by an Entry allowing to change the edited-object's name. Every editor also has Ok, Apply, Cancel buttons as the bottom of the form. These buttons are in a frame called okFrame which is a child of top.

addOkApplyCancel(self)

source code 
Add the Ok, Apply and Cancel buttons

manageEditorButtons(self)

source code 
Helper function to enable/disable the ok apply cancel buttons. These buttons are disabled if another window is opened and needs to be closed before this editor can be closed.

nameEntryChange_cb(self, event=None)

source code 
None

Apply(self, event=None)

source code 
Callback for Apply Button

OK(self, event=None)

source code 
Callback for OK Button, calls Apply and Dismiss

Cancel(self)

source code 
Callback for Cancel Button

Dismiss(self, event=None)

source code 
Destroy edit form and reset objcet's point to editor

go(self)

source code 
method for starting an editor in modal form (i.e. the application blocks until the editor is dismissed