Update of /cvsroot/freevo/freevo/skins/dischi1
In directory sc8-pr-cvs1:/tmp/cvs-serv20241
Modified Files:
tvlisting_area.py
Log Message:
some position fixes
Index: tvlisting_area.py
===================================================================
RCS file: /cvsroot/freevo/freevo/skins/dischi1/tvlisting_area.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** tvlisting_area.py 13 Mar 2003 21:02:08 -0000 1.3
--- tvlisting_area.py 14 Mar 2003 19:29:07 -0000 1.4
***************
*** 10,13 ****
--- 10,16 ----
# -----------------------------------------------------------------------
# $Log$
+ # Revision 1.4 2003/03/14 19:29:07 dischi
+ # some position fixes
+ #
# Revision 1.3 2003/03/13 21:02:08 dischi
# misc cleanups
***************
*** 210,220 ****
x0 = int(x_contents + (float(w_contents) / n_cols) * i)
x1 = int(x_contents + (float(w_contents) / n_cols) * (i+1))
if head_val.rectangle:
r = self.get_item_rectangle(head_val.rectangle, x1-x0,
head_font.h)[2]
! self.drawroundbox(x0 + r.x, content.y + r.y, r.width, r.height, r)
self.write_text(time.strftime("%H:%M",time.localtime(to_listing[0][i+1])),
! head_font, content, x=x0, y=content.y, width=x1-x0,
height=-1)
--- 213,228 ----
x0 = int(x_contents + (float(w_contents) / n_cols) * i)
x1 = int(x_contents + (float(w_contents) / n_cols) * (i+1))
+ ty0 = content.y
if head_val.rectangle:
r = self.get_item_rectangle(head_val.rectangle, x1-x0,
head_font.h)[2]
! if r.x < 0:
! x0 -= r.x
! if r.y < 0:
! ty0 -= r.y
! self.drawroundbox(x0 + r.x, ty0 + r.y, r.width, r.height, r)
self.write_text(time.strftime("%H:%M",time.localtime(to_listing[0][i+1])),
! head_font, content, x=x0, y=ty0, width=x1-x0, height=-1)
***************
*** 232,243 ****
for i in range(2,len(to_listing)):
if label_val.rectangle:
r = self.get_item_rectangle(label_val.rectangle,
label_txt_width, font_h)[2]
! self.drawroundbox(content.x + r.x, y0 + r.y,
! r.width, r.height, r)
self.write_text(to_listing[i].displayname, label_font, content,
! y=y0, width=label_width, height=-1)
if to_listing[i].programs:
--- 240,258 ----
for i in range(2,len(to_listing)):
+ ty0 = y0
+ tx0 = content.x
if label_val.rectangle:
r = self.get_item_rectangle(label_val.rectangle,
label_txt_width, font_h)[2]
!
! if r.x < 0:
! tx0 -= r.x
! if r.y < 0:
! ty0 -= r.y
!
! self.drawroundbox(tx0 + r.x, ty0 + r.y, r.width, r.height, r)
self.write_text(to_listing[i].displayname, label_font, content,
! x=tx0, y=ty0, width=label_width, height=font_h)
if to_listing[i].programs:
***************
*** 285,296 ****
tx1 = max(x0, x1)
if val.rectangle:
r = self.get_item_rectangle(val.rectangle, tx1-tx0,
font_h)[2]
! self.drawroundbox(tx0 + r.x, y0 + r.y,
! r.width, r.height, r)
!
self.write_text(prg.title, font, content, x=tx0,
! y=y0, width=tx1-tx0, height=font_h,
align_v='center',
! align_h = val.align)
#if flag_left:
--- 300,317 ----
tx1 = max(x0, x1)
+ ty0 = y0
+
if val.rectangle:
r = self.get_item_rectangle(val.rectangle, tx1-tx0,
font_h)[2]
! if r.x < 0:
! tx0 -= r.x
! if r.y < 0:
! ty0 -= r.y
!
! self.drawroundbox(tx0+r.x, ty0+r.y, r.width, r.height, r)
!
self.write_text(prg.title, font, content, x=tx0,
! y=ty0, width=tx1-tx0, height=font_h,
! align_v='center', align_h = val.align)
#if flag_left:
-------------------------------------------------------
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