Update of /cvsroot/freevo/freevo/skins/dischi1
In directory sc8-pr-cvs1:/tmp/cvs-serv22183

Modified Files:
        xml_skin.py 
Log Message:
docs update

Index: xml_skin.py
===================================================================
RCS file: /cvsroot/freevo/freevo/skins/dischi1/xml_skin.py,v
retrieving revision 1.23
retrieving revision 1.24
diff -C2 -d -r1.23 -r1.24
*** xml_skin.py 8 Mar 2003 17:36:47 -0000       1.23
--- xml_skin.py 13 Mar 2003 21:01:15 -0000      1.24
***************
*** 10,13 ****
--- 10,16 ----
  # -----------------------------------------------------------------------
  # $Log$
+ # Revision 1.24  2003/03/13 21:01:15  dischi
+ # docs update
+ #
  # Revision 1.23  2003/03/08 17:36:47  dischi
  # integration of the tv guide
***************
*** 44,72 ****
  # implemented yet.
  #
- # Revision 1.14  2003/02/26 21:21:12  dischi
- # blue_round1.xml working
- #
- # Revision 1.13  2003/02/26 19:59:27  dischi
- # title area in area visible=(yes|no) is working
- #
- # Revision 1.12  2003/02/26 19:18:53  dischi
- # Added blue1_small and changed the coordinates. Now there is no overscan
- # inside the skin, it's only done via config.OVERSCAN_[XY]. The background
- # images for the screen area should have a label "background" to override
- # the OVERSCAN resizes.
- #
- # Revision 1.11  2003/02/25 23:27:36  dischi
- # changed max usage
- #
- # Revision 1.10  2003/02/25 22:56:00  dischi
- # New version of the new skin. It still looks the same (except that icons
- # are working now), but the internal structure has changed. Now it will
- # be easier to do the next steps.
- #
- # Revision 1.9  2003/02/23 18:42:20  dischi
- # Current status of my skin redesign. Currently only the background and
- # the listing area is working, the listing without icons. Let me know what
- # you thing before I spend more time with it
- #
  #
  # -----------------------------------------------------------------------
--- 47,50 ----
***************
*** 115,119 ****
  
  OSD_FONT_DIR = 'skins/fonts/'
- OSD_DEFAULT_FONT = 'skins/fonts/kimberly_alt.ttf'
  
  geometry = (config.CONF.width, config.CONF.height)
--- 93,96 ----
***************
*** 122,126 ****
--- 99,108 ----
  # Help functions
  #
+ 
+ 
  def attr_int(node, attr, default, scale=0.0):
+     """
+     return the attribute as integer
+     """
      try:
          if node.attrs.has_key(('', attr)):
***************
*** 148,152 ****
--- 130,138 ----
      return default
  
+ 
  def attr_hex(node, attr, default):
+     """
+     return the attribute in hex as integer
+     """
      try:
          if node.attrs.has_key(('', attr)):
***************
*** 156,160 ****
--- 142,150 ----
      return default
  
+ 
  def attr_visible(node, attr, default):
+     """
+     return TRUE or FALSE based in the attribute values 'yes' or 'no'
+     """
      if node.attrs.has_key(('', attr)):
          if node.attrs[('', attr)] == "no":
***************
*** 163,172 ****
--- 153,171 ----
      return default
  
+ 
  def attr_str(node, attr, default):
+     """
+     return the attribute as string
+     """
      if node.attrs.has_key(('', attr)):
          return node.attrs[('', attr)].encode('latin-1')
      return default
  
+ 
  def attr_file(node, attr, default, c_dir, guessing=TRUE):
+     """
+     return the attribute as filename. This functions searches for alternative
+     image filenames based on the string
+     """
      if node.attrs.has_key(('', attr)):
          file = node.attrs[('', attr)].encode('latin-1')
***************
*** 192,196 ****
--- 191,199 ----
      return default
  
+ 
  def attr_font(node, attr, default):
+     """
+     return the attribute as font (with full path)
+     """
      if node.attrs.has_key(('', attr)):
          fontext = os.path.splitext(node.attrs[('', attr)])[1]
***************
*** 208,212 ****
          if not font:
              print "can find font >%s<" % font
!             font = OSD_DEFAULT_FONT
          return font
      return default
--- 211,215 ----
          if not font:
              print "can find font >%s<" % font
!             font = config.OSD_DEFAULT_FONTNAME
          return font
      return default
***************
*** 406,409 ****
--- 409,415 ----
  
  class XML_content(XML_data):
+     """
+     content inside a layout
+     """
      def __init__(self):
          XML_data.__init__(self, ('type', 'spacing', 'x', 'y', 'width',
***************
*** 439,442 ****
--- 445,451 ----
          
  class XML_layout:
+     """
+     layout tag
+     """
      def __init__(self, label):
          self.label = label
***************
*** 463,466 ****
--- 472,478 ----
  
  class XML_font(XML_data):
+     """
+     font tag
+     """
      def __init__(self, label):
          XML_data.__init__(self, ('name', 'size', 'color'))
***************
*** 483,486 ****
--- 495,501 ----
  
  class XML_player:
+     """
+     player tag for the audio play skin
+     """
      def __init__(self):
          self.content = ( 'screen', 'title', 'view', 'info' )
***************
*** 500,503 ****
--- 515,521 ----
  
  class XML_tv:
+     """
+     tv tag for the tv menu
+     """
      def __init__(self):
          self.content = ( 'screen', 'title', 'view', 'info', 'listing' )
***************
*** 515,522 ****
  # ======================================================================
  
! #
! # Main XML skin class
! #
  class XMLSkin:
      def __init__(self):
          self.menu = {}
--- 533,542 ----
  # ======================================================================
  
! 
! 
  class XMLSkin:
+     """
+     skin main settings class
+     """
      def __init__(self):
          self.menu = {}
***************
*** 588,595 ****
  
  
-     #
-     # parse the skin file
-     #
      def load(self, file, copy_content = 0):
          if not os.path.isfile(file):
              if os.path.isfile(file+".xml"):
--- 608,616 ----
  
  
      def load(self, file, copy_content = 0):
+         """
+         load and parse the skin file
+         """
+ 
          if not os.path.isfile(file):
              if os.path.isfile(file+".xml"):




-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to