Package topo :: Package tkgui :: Module editor :: Class EditorObject
[hide private]
[frames] | no frames]

Class EditorObject

source code


Anything that can be added and manipulated in an EditorCanvas. Every EditorCanvas has a corresponding Topo object associated with it. An instance of this class can have the focus.
Instance Methods [hide private]
 
__init__(self, name, canvas, **params)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
draw(self)
Draw the object at the current x, y position.
source code
 
objdoc(self)
Documentation string for this object.
source code
 
show_properties(self)
Show parameters frame for object.
source code
 
update_parameters(self) source code
 
okay_parameters(self, parameter_window) source code
 
set_focus(self, focus) source code
 
move(self)
Update position of object and redraw.
source code
 
remove(self)
Remove this object from the canvas and from the Topographica simulation.
source code
 
in_bounds(self, x, y)
Return true if x,y lies within this gui object's boundary.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  FROM = 0
int(x[, base]) -> integer
  TO = 1
int(x[, base]) -> integer
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, name, canvas, **params)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: object.__init__
(inherited documentation)

Class Variable Details [hide private]

FROM

int(x[, base]) -> integer

Convert a string or number to an integer, if possible. A floating point argument will be truncated towards zero (this does not include a string representation of a floating point number!) When converting a string, use the optional base. It is an error to supply a base when converting a non-string. If base is zero, the proper base is guessed based on the string content. If the argument is outside the integer range a long object will be returned instead.

Value:
0

TO

int(x[, base]) -> integer

Convert a string or number to an integer, if possible. A floating point argument will be truncated towards zero (this does not include a string representation of a floating point number!) When converting a string, use the optional base. It is an error to supply a base when converting a non-string. If base is zero, the proper base is guessed based on the string content. If the argument is outside the integer range a long object will be returned instead.

Value:
1