home *** CD-ROM | disk | FTP | other *** search
/ PC Welt 2006 November (DVD) / PCWELT_11_2006.ISO / casper / filesystem.squashfs / usr / lib / python2.4 / site-packages / deskbar / ModuleContext.pyc (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2006-08-31  |  1.2 KB  |  36 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.4)
  3.  
  4.  
  5. class ModuleContext:
  6.     '''A generic wrapper for any object stored in a ModuleList.
  7. \t'''
  8.     
  9.     def __init__(self, icon, enabled, module, filename, handler, infos):
  10.         '''The icon should be a gtk.gdk.Pixbuf'''
  11.         self.icon = icon
  12.         self.enabled = enabled
  13.         self.module = module
  14.         self.filename = filename
  15.         self.handler = handler
  16.         self.infos = infos
  17.         self.version = '0.0.0'
  18.         if 'version' in infos:
  19.             self.version = infos['version']
  20.         
  21.  
  22.  
  23.  
  24. class WebModuleContext:
  25.     '''A generic wrapper for any object stored in a WebModuleList.
  26. \t\tThis represents a remote module available for download
  27. \t'''
  28.     
  29.     def __init__(self, id, name, description):
  30.         self.id = id
  31.         self.name = name
  32.         self.description = description
  33.         self.installing = False
  34.  
  35.  
  36.