Update of /cvsroot/freevo/freevo/skins/dischi1
In directory sc8-pr-cvs1:/tmp/cvs-serv28284
Modified Files:
area.py listing.py xml_skin.py
Log Message:
changed max usage
Index: area.py
===================================================================
RCS file: /cvsroot/freevo/freevo/skins/dischi1/area.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** area.py 25 Feb 2003 22:56:00 -0000 1.1
--- area.py 25 Feb 2003 23:27:36 -0000 1.2
***************
*** 10,13 ****
--- 10,16 ----
# -----------------------------------------------------------------------
# $Log$
+ # Revision 1.2 2003/02/25 23:27:36 dischi
+ # changed max usage
+ #
# Revision 1.1 2003/02/25 22:56:00 dischi
# New version of the new skin. It still looks the same (except that icons
***************
*** 96,111 ****
if copy_object:
object = copy.deepcopy(object)
!
! try:
! if object.width[:3] == 'max':
! object.width = self.area_val.width + int(object.width[3:])
! except TypeError:
! pass
!
! try:
! if object.height[:3] == 'max':
! object.height = self.area_val.height + int(object.height[3:])
! except TypeError:
! pass
if fit_area:
--- 99,108 ----
if copy_object:
object = copy.deepcopy(object)
!
! MAX = self.area_val.width
! object.width = eval('%s' % object.width)
!
! MAX = self.area_val.height
! object.height = eval('%s' % object.height)
if fit_area:
Index: listing.py
===================================================================
RCS file: /cvsroot/freevo/freevo/skins/dischi1/listing.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** listing.py 25 Feb 2003 22:56:00 -0000 1.1
--- listing.py 25 Feb 2003 23:27:36 -0000 1.2
***************
*** 10,13 ****
--- 10,16 ----
# -----------------------------------------------------------------------
# $Log$
+ # Revision 1.2 2003/02/25 23:27:36 dischi
+ # changed max usage
+ #
# Revision 1.1 2003/02/25 22:56:00 dischi
# New version of the new skin. It still looks the same (except that icons
***************
*** 67,86 ****
if not r.width:
r.width = item_w
! else:
! try:
! if r.width[:3] == 'max':
! r.width = item_w + int(r.width[3:])
! except TypeError:
! pass
!
if not r.height:
r.height = item_h
! else:
! try:
! if r.height[:3] == 'max':
! r.height = item_h + int(r.height[3:])
! except TypeError:
! pass
if r.x < 0:
--- 70,84 ----
if not r.width:
r.width = item_w
!
if not r.height:
r.height = item_h
!
! MAX = item_w
! r.x = int(eval('%s' % r.x))
! r.width = int(eval('%s' % r.width))
+ MAX = item_h
+ r.y = int(eval('%s' % r.y))
+ r.height = int(eval('%s' % r.height))
if r.x < 0:
Index: xml_skin.py
===================================================================
RCS file: /cvsroot/freevo/freevo/skins/dischi1/xml_skin.py,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** xml_skin.py 25 Feb 2003 22:56:00 -0000 1.10
--- xml_skin.py 25 Feb 2003 23:27:36 -0000 1.11
***************
*** 10,13 ****
--- 10,16 ----
# -----------------------------------------------------------------------
# $Log$
+ # 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
***************
*** 87,91 ****
val = scale*int(val)
if max:
! return 'max%d' % int(val)
else:
return int(val)
--- 90,97 ----
val = scale*int(val)
if max:
! if int(val) < 0:
! return 'MAX%d' % int(val)
! else:
! return 'MAX+%d' % int(val)
else:
return int(val)
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog