常用代码:定时器电子钟
本帖最后由 善小而为_ 于 2024-2-20 14:07 编辑import win.ui;
/*DSG{{*/
winform = win.form(text="aardio工程-电子钟";right=643;bottom=262)
winform.add(
static={cls="static";left=16;top=12;right=635;bottom=249;align="center";center=1;font=LOGFONT(h=-37;name='黑体');transparent=1;z=1}
)
/*}}*/
//定时器电子钟
winform.setInterval(
function(){
showDate = "日期:"+tostring(time(time.now(),"%Y-%m-%d"));
showTime = "时间:"+tostring(time(time.now(),"%H:%M:%S"));
winform.static.text = showDate+" "+showTime
},1000
)
winform.show();
return win.loopMessage();
简单实用代码,请参考
页:
[1]