Back to index

gcompris  8.2.2
Public Member Functions | Public Attributes
bargame.Gcompris_bargame.ball Class Reference

List of all members.

Public Member Functions

def __init__

Public Attributes

 ball

Detailed Description

Definition at line 403 of file bargame.py.


Constructor & Destructor Documentation

def bargame.Gcompris_bargame.ball.__init__ (   self,
  root,
  x,
  y,
  scale,
  image 
)

Definition at line 404 of file bargame.py.

00404 
00405     def __init__(self, root, x, y, scale, image):
00406 
00407       self.ball = root.add(
00408         gnomecanvas.CanvasPixbuf,
00409         pixbuf = image,
00410         x=x,
00411         y=y)
00412       bounds = self.ball.get_bounds()
00413       self.ball.set(width  = (bounds[2]-bounds[0])*scale,
00414                     height = (bounds[3]-bounds[1])*scale,
00415                     width_set  = True,
00416                     height_set = True)
00417 
  class answer_button:

Member Data Documentation

Definition at line 406 of file bargame.py.


The documentation for this class was generated from the following file: