Update of /cvsroot/freevo/freevo/src/gui/areas
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9377

Modified Files:
        info_area.py 
Log Message:
add function call time

Index: info_area.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/gui/areas/info_area.py,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** info_area.py        1 Jan 2005 14:54:57 -0000       1.10
--- info_area.py        1 Jan 2005 17:05:29 -0000       1.11
***************
*** 36,39 ****
--- 36,42 ----
  __all__ = [ 'InfoArea' ]
  
+ # python imports
+ import time
+ 
  # freevo imports
  import util
***************
*** 44,49 ****
  from gui import InfoText
  
  # function calls to get more info from the skin
! function_calls = { 'comingup': util.tv_util.comingup }
  
  class InfoArea(Area):
--- 47,60 ----
  from gui import InfoText
  
+ def current_time():
+     if time.strftime('%P') =='':
+         format ='%a %H:%M'
+     else:
+         format ='%a %I:%M %P'
+     return time.strftime(format)
+ 
  # function calls to get more info from the skin
! function_calls = { 'comingup': util.tv_util.comingup,
!                    'time': current_time }
  
  class InfoArea(Area):



-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to