import win.ui;
/*DSG{{*/
var winform = win.form(text="汉字转拼音";right=541;bottom=331;parent=...)
winform.add(
button={cls="button";text='汉字转拼音\u2193';left=202;top=147;right=308;bottom=177;dt=1;z=3};
editA={cls="edit";text="请在这里输入汉字";left=8;top=10;right=533;bottom=138;aw=1;dl=1;dr=1;dt=1;edge=1;hscroll=1;multiline=1;vscroll=1;z=1};
editB={cls="edit";left=7;top=191;right=532;bottom=319;ah=1;aw=1;db=1;dt=1;edge=1;hscroll=1;multiline=1;readonly=1;vscroll=1;z=2}
)
/*}}*/

import string.conv.pinyin;
winform.button.oncommand = function(id,event){
	winform.editB.text = string.conv.pinyin(winform.editA.text," ")
}

winform.enableDpiScaling();
winform.show();

win.loopMessage();
return winform;