home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Linux / Linux Mint 3.0 Light / LinuxMint-3.0-Light.iso / casper / filesystem.squashfs / usr / share / onboard / Pane.pyc (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2007-04-29  |  1.2 KB  |  36 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.4)
  3.  
  4.  
  5. class Pane:
  6.     '''The pane holds the keys and is drawn by the keyboard widget.'''
  7.     
  8.     def __init__(self, sok, ident, keys, columns, viewPortSizeX, viewPortSizeY, rgba, fontSize):
  9.         self.ident = ident
  10.         self.keys = keys
  11.         self.viewPortSizeX = viewPortSizeX
  12.         self.viewPortSizeY = viewPortSizeY
  13.         self.fontSize = fontSize
  14.         self.xScale = 1
  15.         self.xScale = 1
  16.         self.rgba = rgba
  17.         self.sok = sok
  18.         self.columns = columns
  19.  
  20.     
  21.     def paint(self, context, width, height):
  22.         self.xScale = width / self.viewPortSizeX
  23.         self.yScale = height / self.viewPortSizeY
  24.         for key in self.keys.values():
  25.             key.paint(context, self.xScale, self.yScale)
  26.         
  27.         for key in self.keys.values():
  28.             key.paintFont(context, self.xScale, self.yScale)
  29.         
  30.  
  31.     
  32.     def set_DrawingArea(self, da):
  33.         self.da = da
  34.  
  35.  
  36.