标签:
1 import win.ui; 2 import fsys.dlg; 3 import string.list; 4 /*DSG{{*/ 5 var winform = win.form(text="aardio form";right=325;bottom=456) 6 winform.add( 7 account={cls="listview";left=20;top=20;right=303;bottom=350;edge=1;gridLines=1;z=2}; 8 button={cls="button";text="input";left=28;top=367;right=300;bottom=411;z=1} 9 ) 10 /*}}*/ 11 12 //设置账户列表 13 winform.account.insertColumn("账号",90,1) 14 winform.account.insertColumn("密码",90,2) 15 winform.account.insertColumn("获取空间",90,3) 16 winform.button.oncommand = function(id,event){ 17 input() 18 } 19 20 //导入账号密码 21 22 input = function(){ 23 dir = fsys.dlg.open();//打开文件夹选择文件 24 tlist = string.list(dir,,"----"); 25 for i,na,ps in tlist.each() { 26 winform.account.addItem() 27 winform.account.setItemText(na,i,1) 28 winform.account.setItemText(ps,i,2) 29 } 30 } 31 32 winform.show() 33 win.loopMessage();
标签:
原文地址:http://www.cnblogs.com/lvge/p/5800903.html