Package Things :: Module ThingObjects :: Class DrawThing
[frames] | no frames]

Class DrawThing

       object --+        
                |        
timeline.Timeline --+    
                    |    
                Thing --+
                        |
                       DrawThing

A DrawThing is a very simple Thing: You need only supply the draw() method. (Don't use an __init__ method at all.)

Instance Methods
 
__init__(self)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Inherited from Thing: __len__, changeLayer, changeProps, funcs, getProps, goPlay, goStop, jumps, keys, labels, loop, nextFrame, play, showData, stop, stops, toTop

Inherited from timeline.Timeline: add

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

Instance Variables

Inherited from Thing: currentFrame, frame, globalProps, lifespan

Inherited from timeline.Timeline: parentThing

Properties

Inherited from object: __class__

Method Details

__init__(self)
(Constructor)

 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Parameters:
  • id - A string to identify this Thing. It's mainly for debug purposes, but handy within your own code too.
Overrides: object.__init__
(inherited documentation)