This is the primary Timeline. You should instance this class to begin
work. After that you add other Things to it.
An AllThings object has only one frame and cannot have keys. You
should create at least one Thing object and add it to AllThings, then
work from there.
If you want to install custom fonts (using a BagOfStuff) then you
should do so *before* you instantiate AllThings.
|
__init__(self,
canvas_width,
canvas_height,
window_width=None,
window_height=None,
speed=30,
hideCursor=False,
title=' Things! ' )
x.__init__(...) initializes x; see x.__class__.__doc__ for signature |
|
|
|
add(self,
*args,
**kwargs)
Override of Timeline.add to cater for adding SceneThings to app. |
|
|
|
|
|
pause(self)
This will pause the app. |
|
|
|
quit(self)
Call this to quit your app at the next opportunity. |
|
|
|
getDrawingArea(self)
If you want to do fancy stuff directly to the canvas this will return
the gtk.DrawingArea. |
|
|
|
comeToLife(self)
Start the show! After all your Things are made and added, this
command will send the volts flowing :) |
|
|
|
mouse(self)
An easy way to get the mouse position. |
|
|
|
cursor(self,
shape=' ARROW ' ,
hideCursor=False)
To change the cursor you send a string (a standard gtk name) |
|
|
|
showGrid(self)
Call this to show a set of axes to get your bearings. |
|
|
|
export(self,
paf,
type=' png ' )
When this is called, Things will export each frame (to the window
size, not canvas size) to the given file name, with a number added. |
|
|
|
panZoom(self,
yesno=True)
The idea is to allow you to zoom about the mouse (like Inscape does
it), but I have not figured it out yet. |
|
|
|
startScene(self,
start)
Tell the app (AllThings) to start playing from a given scene. |
|
|
|
playNextScene(self)
SceneThing objects can be added to an AllThings (app) object. |
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|