Back to index

gcompris  8.2.2
Public Member Functions | Public Attributes
gnumch.Square Class Reference

List of all members.

Public Member Functions

def __init__
def setNum

Public Attributes

 num
 pic

Detailed Description

Definition at line 42 of file gnumch.py.


Constructor & Destructor Documentation

def gnumch.Square.__init__ (   self,
  x,
  y 
)

Definition at line 43 of file gnumch.py.

00043 
00044     def __init__(self, x, y):
00045         self.num = None
00046         self.pic = game.rootitem.add( gnomecanvas.CanvasText,
00047                                       text = "",
00048                                       font = gcompris.skin.get_font("gcompris/content"),
00049                                       x = x,
00050                                       y = y )


Member Function Documentation

def gnumch.Square.setNum (   self,
  num 
)

Definition at line 51 of file gnumch.py.

00051 
00052     def setNum(self, num):
00053         self.num = num
00054         if num != None:
00055             self.pic.set( text = num.text )
00056         else:
00057             self.pic.set( text = "" )


Member Data Documentation

Definition at line 44 of file gnumch.py.

Definition at line 45 of file gnumch.py.


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