Module sketcher :: Class workspace
[hide private]
[frames] | no frames]

Class workspace

source code

          object --+    
                   |    
pygame.sprite.Sprite --+
                       |
                      workspace

This is the container class for holding and loading the tools, and general GUI layers, of the application. Some of the tools that may be included are functions for adjusting the input pen style and size, the canvas repository, etc., along with their associated GUI icons and properties.

Instance Methods [hide private]
 
__init__(this, canvas=None, image=None, rect=(0, 0, 128, 256), alpha=255)
Initializes the workspace.
source code
 
show(this)
Shows the workspace on top of canvas.
source code

Inherited from pygame.sprite.Sprite: __repr__, add, add_internal, alive, groups, kill, remove, remove_internal, update

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(this, canvas=None, image=None, rect=(0, 0, 128, 256), alpha=255)
(Constructor)

source code 

Initializes the workspace. Parameter:

  • canvas, the canvas the workspace belongs to.
  • the background image of the workspace.
  • the position and demensions (x,y,width,height) of the workspace.
  • alpha, applies transparency to the workspace background.
Overrides: object.__init__