| Home | Trees | Indices | Help |
|
|---|
|
|
Tkinter.Misc --+
|
Tkinter.BaseWidget --+
|
Tkinter.Pack --+
|
Tkinter.Place --+
|
Tkinter.Grid --+
|
Tkinter.Widget --+
|
Tkinter.Frame --+
|
EditorBase --+
|
NetworkBuilder
This class implements a simple network builder that provides a Canvas to which NetworkNodes can be added. These nodes can be connected by NetworkConnections. The builder stored Nodes and connections in 2 dictionaries where the key is a unique tag (associated with the geometry in the Canvas) and the value is the instance of either the node or the connection. The Builder also maintains a list of currently selected nodes.
|
|||
|
|||
|
__init__(self,
name='NoName',
master=None,
font=None,
withShell=1,
**kw) instance <- NetworkBuilder(name='NoName', master=None, font=None,... |
||
| panelFromName(self, name) | ||
| createUserPanel_cb(self, event=None) | ||
| createUserPanel(self, name, **kw) | ||
| deleteUserPanel_cb(self) | ||
|
getNetworkByName(self,
name) networkList <- getNetworkByName(self, name) Return all the network who's name match the name regular expression |
||
|
getNodeByName(self,
name) nodeList <- getNodeByName(self, name) Return all the nodes from the current network who's name match the name regular expression |
||
| resize_cb(self, event=None) | ||
| resizeNetworkArea(self) | ||
| clearPyShell(self, event=None) | ||
| createCallbackManager(self, event) | ||
| addCallbackManager(self, event, func, doc, **kw) | ||
| showGUI(self) | ||
| hideGUI(self) | ||
| toggleGuiVisibility(self) | ||
| setFont(self, *args) | ||
| interactiveExit_cb(self, event=None) | ||
| exit_cb(self, event=None) | ||
|
handleSelectionChangeMenus(self) This is called by callback manager on event select or deselect nodes and turns on/off menu entries and menu buttons. |
||
|
handleAddNetwork(self) This is called by callback manager on the event add network and turns on menu entries. |
||
|
handleDeleteNetwork(self,
**kw) This is called by callback manager on the event delete network and turns on menu buttons. |
||
| copyNetwork_cb(self, event=None) | ||
| cutNetwork_cb(self, event=None) | ||
| delete(self, event=None) | ||
| freezeNetwork(self) | ||
| unfreezeNetwork(self) | ||
| toggleFreezeNetwork_cb(self, event=None) | ||
| saveNetwork(self, filename, hide=False) | ||
| saveNetwork_cb(self, event=None, hide=False) | ||
| pasteNetwork_cb(self, event=None) | ||
| loadNetwork_cb(self, event=None) | ||
| mergeNetwork_cb(self, event=None) | ||
| loadNetwork(self, filename, network=None, name=None) | ||
|
addNetwork(self,
network) None <- addNetwork(network) adds a Network object to the editor |
||
|
closeNetwork_cb(self) called from File->Close |
||
|
deleteNetwork(self,
network,
saveValues=0) None <- deleteNetwork(network) deletes a Network object from the editor |
||
|
selectNetwork(self,
name) get's called by Pmw with the original name used to create the page |
||
| renameNetworkTab(self, network, newName) | ||
| setNetwork(self, network) | ||
| myButtonPress(self, event=None) | ||
| makeNetworksMenu(self) | ||
| makeFileMenu(self) | ||
| makeEditMenu(self) | ||
| createMenus(self, parent) | ||
| setUndoLabel(self) | ||
| undo(self, event=None) | ||
| setupUndo(self, command, comment) | ||
| scaleHyperToggle(self, event=None) | ||
| scaleHyper_cb(self, event) | ||
| createMacro_cb(self, event=None) | ||
| createMacro(self, network, name) | ||
| selectAll_cb(self, event=None) | ||
|
menuOption_cb(self,
varName) menuOptions(var, varTk toggle menu options... |
||
| toggleSplineConnections(self, event=None) | ||
| toggleColorNodeByLibrary(self, event=None) | ||
| newNet_cb(self, event=None) | ||
| renameNet_cb(self, event=None) | ||
| runCurrentNet_cb(self, event=None) | ||
| togglePauseCurrentNet_cb(self, event=None) | ||
| stopCurrentNet_cb(self, event=None) | ||
| refreshNet_cb(self, net=None, event=None) | ||
| resetWidgetValues_cb(self, event=None) | ||
| resetCache_cb(self, event=None) | ||
| print_cb(self, event=None) | ||
|
extendTypesTable(self,
lib) add new typesTable to the typeManager |
||
|
extendSynonymsTable(self,
lib) add new synonymsTable to the typeManager |
||
|
extendWidgetsTable(self,
lib) add new widgets to widgetsTable |
||
|
configure(self,
**kw) Configure resources of a widget. |
||
| setConfigValue(self, varName, value) | ||
| setFreezeUnfreezeNetwork(self, value) | ||
| togglePythonShell(self, event=None) | ||
| sourceFile(self, resourceFile=None) | ||
|
Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from |
|||
|
|||
|
Inherited from Inherited from |
|||
|
|||
instance <- NetworkBuilder(name='NoName', master=None, font=None,
withShell=1, **kw)
master can be a Frame in which the editor has to be packed
withShell=0 will prevent the creation of an Idle shell (since the
default shell is used)
kw can contain the following named arguments:
visibleWidth, visibleHeight,
totalWidth, totalHeight
any legal keyword for a Canvas
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
menuOptions(var, varTk toggle menu options
var: verbose
colorNodeByLibrary
flashNodesWhenRun
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Configure resources of a widget. The values for resources are specified as keyword arguments. To get an overview about the allowed keyword arguments call the method keys.
|
|
|
|
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0alpha3 on Fri Nov 2 14:08:30 2007 | http://epydoc.sourceforge.net |