Update of /cvsroot/wpdev/xmlscripts/scripts/commands
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11442/commands
Modified Files:
import.py
Log Message:
made import use the arguments as the default filename
Index: import.py
===================================================================
RCS file: /cvsroot/wpdev/xmlscripts/scripts/commands/import.py,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** import.py 2 Oct 2004 19:00:07 -0000 1.13
--- import.py 2 Oct 2004 22:30:57 -0000 1.14
***************
*** 79,83 ****
# InputField
gump.addResizeGump( x=20, y=210, id=0xBB8, width=310, height=25 )
! gump.addInputField( x=25, y=212, width=295, height=20, hue=0x834, id=1, starttext="export.wsc" )
gump.addText( x=265, y=250, text='Import', hue=0x835 )
--- 79,85 ----
# InputField
gump.addResizeGump( x=20, y=210, id=0xBB8, width=310, height=25 )
! if len(arguments) == 0:
! arguments = 'export.wsc'
! gump.addInputField( x=25, y=212, width=295, height=20, hue=0x834, id=1, starttext=arguments )
gump.addText( x=265, y=250, text='Import', hue=0x835 )
|