Home | Trees | Indices | Help |
---|
|
object --+ | timeline.Timeline --+ | ThingObjects.Thing --+ | ThingObjects.HitThing --+ | ButtonThing
A ButtonThing is a simple way to create "buttons" where you have four states: 1) Normal, 2) Over, 3) Down and 4) Up.
See the addStates() method for more information.
Implement the usual drawHitarea() method to define the hit area.
You can implement these event methods:
Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from Inherited from |
Instance Variables | |
Inherited from Inherited from |
Properties | |
Inherited from |
Method Details |
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
|
NOTE: A ButtonThing can't have keys. Put it into another Thing in order to manipulate its position etc.
|
Use, in your ButtonThing class: self.addStates( {"normal":A1,"over":A2,"down":A3,"up":A4} ) (where A1, A2, A3 and A4 are all Things of some kind) If you supply a dict, you *must* supply all those keys. If not, a stock button will be made. |
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Tue May 26 16:03:26 2009 | http://epydoc.sourceforge.net |