29 lines
587 B
Plaintext
29 lines
587 B
Plaintext
import win.ui;
|
|
/*DSG{{*/
|
|
mainForm = win.form(text="CAN上位机";right=757;bottom=467)
|
|
mainForm.add()
|
|
/*}}*/
|
|
|
|
import web.view2;
|
|
import wsock.tcp.simpleHttpServer;
|
|
import godking.message;
|
|
wb = web.view2(mainForm,,,"--force-app-mode");
|
|
//wb = web.view2(mainForm);
|
|
wb.enableDefaultContextMenus(false);
|
|
//wb.go("https://www.baidu.com/");
|
|
wb.external = {
|
|
showmsg = function(str){
|
|
mainForm.msgOk("ok");
|
|
//mainForm.msgOk(str);
|
|
}
|
|
test = function(){
|
|
mainForm.msgOk("ok");
|
|
}
|
|
|
|
}
|
|
wb.go(wsock.tcp.simpleHttpServer.startUrl("\web\index.html"));
|
|
|
|
|
|
|
|
mainForm.show();
|
|
return win.loopMessage(); |