Package teamwork :: Package widgets :: Module bigwidgets :: Class SequenceWidget
[hide private]
[frames] | no frames]

Class SequenceWidget

source code

CanvasWidget --+
               |
              SequenceWidget

A canvas widget that keeps a list of canvas widgets in a horizontal line.

Attributes:

Instance Methods [hide private]
 
__init__(self, canvas, *children, **attribs)
Create a new sequence widget.
source code
None
__setitem__(self, attr, value)
Set the value of the attribute attr to value.
source code
(any)
__getitem__(self, attr)
Returns: the value of the attribute attr.
source code
list of int
_tags(self)
Returns: a list of canvas tags for all graphical elements managed by this canvas widget, not including graphical elements managed by its child widgets.
source code
None
_manage(self)
Arrange the child widgets of this canvas widget.
source code
 
_yalign(self, top, bot) source code
None
_update(self, child)
Update this canvas widget in response to a change in one of its children.
source code
string
__repr__(self)
Returns: a string representation of this canvas widget.
source code

Inherited from CanvasWidget: bbox, bind_click, bind_drag, canvas, child_widgets, destroy, height, hidden, hide, manage, move, parent, show, tags, unbind_click, unbind_drag, update, width

Method Details [hide private]

__init__(self, canvas, *children, **attribs)
(Constructor)

source code 

Create a new sequence widget.

Parameters:
  • canvas (Tkinter.Canvas) - This canvas widget's canvas.
  • children (list of CanvasWidget) - The widgets that should be aligned horizontally. Each child must not have a parent.
  • attribs - The new canvas widget's attributes.
Overrides: CanvasWidget.__init__

__setitem__(self, attr, value)
(Index assignment operator)

source code 

Set the value of the attribute attr to value. See the class documentation for a list of attributes supported by this canvas widget.

Returns: None
Overrides: CanvasWidget.__setitem__
(inherited documentation)

__getitem__(self, attr)
(Indexing operator)

source code 
Returns: (any)
the value of the attribute attr. See the class documentation for a list of attributes supported by this canvas widget.
Overrides: CanvasWidget.__getitem__
(inherited documentation)

_tags(self)

source code 
Returns: list of int
a list of canvas tags for all graphical elements managed by this canvas widget, not including graphical elements managed by its child widgets.
Overrides: CanvasWidget._tags
(inherited documentation)

_manage(self)

source code 

Arrange the child widgets of this canvas widget. This method is called when the canvas widget is initially created. It is also called if the user calls the manage method on this canvas widget or any of its ancestors.

Returns: None
Overrides: CanvasWidget._manage
(inherited documentation)

_update(self, child)

source code 

Update this canvas widget in response to a change in one of its children.

Parameters:
  • child - The child that changed.
Returns: None
Overrides: CanvasWidget._update
(inherited documentation)

__repr__(self)
(Representation operator)

source code 
Returns: string
a string representation of this canvas widget.
Overrides: CanvasWidget.__repr__
(inherited documentation)