[wpdev-commits] xmlscripts/scripts/wolfpack/commands info.py,1.13,1.14
Brought to you by:
rip,
thiagocorrea
|
From: <dr...@us...> - 2004-01-13 15:39:03
|
Update of /cvsroot/wpdev/xmlscripts/scripts/wolfpack/commands
In directory sc8-pr-cvs1:/tmp/cvs-serv3647
Modified Files:
info.py
Log Message:
This might work better with the timeunused problem, made it a tag for now...
Index: info.py
===================================================================
RCS file: /cvsroot/wpdev/xmlscripts/scripts/wolfpack/commands/info.py,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** info.py 28 Nov 2003 11:53:04 -0000 1.13
--- info.py 13 Jan 2004 15:39:00 -0000 1.14
***************
*** 665,669 ****
gump.addText( 50, 140, "Time unused:", 0x834 )
! gump.addInputField( 200, 140, 200, 16, 0x834, 32, str( item.timeunused ) )
gump.addText( 310, 340, "Page "+str( page_ )+" of "+str( pages ), 0x834 )
--- 665,672 ----
gump.addText( 50, 140, "Time unused:", 0x834 )
! if ( item.hastag( 'timeunused' ) ):
! gump.addInputField( 200, 140, 200, 16, 0x834, 32, str( item.gettag( 'timeunused' ) ) )
! else:
! gump.addInputField( 200, 140, 200, 16, 0x834, 32, '' )
gump.addText( 310, 340, "Page "+str( page_ )+" of "+str( pages ), 0x834 )
***************
*** 748,752 ****
item.disabled = int( hex2dec( textentries[ key ] ) )
elif key == 32:
! item.timeunused = int( hex2dec( textentries[ key ] ) )
if choice.button == 1:
--- 751,759 ----
item.disabled = int( hex2dec( textentries[ key ] ) )
elif key == 32:
! if ( textentries[ key ] == '' ):
! if ( item.hastag('timeunused') ):
! item.deltag('timeunused')
! else:
! item.settag( 'timeunused', int( hex2dec( textentries[ key ] ) ) )
if choice.button == 1:
***************
*** 754,758 ****
return 1
!
!
!
--- 761,763 ----
return 1
!
|