提交 dd6bf02e 编写于 作者: Smart-Space's avatar Smart-Space

更新res/page2.aardio, res/page1.aardio

上级 868a2d47
import win.ui;
/*DSG{{*/
var winform = win.form(text="首页";right=549;bottom=469;mode="popup")
winform.add(
edit={cls="edit";text='TinUI - tkinter拓展UI库\r\n\r\nTinUI基于tkinter画布,是一个提供现代化样式元素控件的渲染核心。\r\n\r\nTinUI能够通过自身绘制出功能组件和文字与图片,也可以使用画布功能添加任何tkinter原生控件和任何画布元素。使用TinUI,可以使界面设计和代码设计分离,此外,TinUI绘制的虚拟组件速度更快,样式更加丰富。\r\n\r\n这里是TinUI使用帮助应用程序,集成并提供了大部分关于TinUI使用和说明的内容,本应用程序中的内容均来自于TinUI开发者。\r\n\r\n任何一件作品都需要时间打磨,TinUI也不例外。开启你的TinUI之旅吧……';left=10;top=15;right=376;bottom=459;autohscroll=false;bgcolor=15790320;font=LOGFONT(h=-18;name='Microsoft YaHei UI');hidesel=1;multiline=1;readonly=1;z=1};
groupbox={cls="groupbox";text="TinUI部分元素控件";left=386;top=14;right=550;bottom=466;ah=1;aw=1;edge=1;z=2};
plus2={cls="plus";left=396;top=46;right=540;bottom=115;background="E:\GitHub\TinUI\image\TinUI按钮2.gif";repeat="scale";z=3};
plus3={cls="plus";left=390;top=131;right=547;bottom=185;background="E:\GitHub\TinUI\image\TinUI输入框.gif";repeat="scale";z=4};
plus4={cls="plus";left=390;top=193;right=547;bottom=290;background="E:\GitHub\TinUI\image\TinUI菜单.gif";repeat="scale";z=5};
plus5={cls="plus";left=390;top=305;right=545;bottom=459;background="E:\GitHub\TinUI\image\TinUI树状图.gif";repeat="scale";z=6}
)
/*}}*/
winform.edit.oncommand = function(id,event){
}
winform.show();
win.loopMessage();
return winform;
\ No newline at end of file
import win.ui;
import web.form
import string.html
import console
/*DSG{{*/
var winform = win.form(text="帮助";right=549;bottom=469)
winform.add(
custom={cls="custom";text="自定义控件";left=132;top=50;right=547;bottom=470;z=3};
listbox={cls="listbox";left=1;top=2;right=131;bottom=470;font=LOGFONT(h=-14;name='Microsoft YaHei UI');integralHeight=0;items={"title";"paragraph";"button";"label";"checkbutton";"entry";"separate";"radiobutton";"link";"waitbar1";"labelframe";"waitbar2";"combobox";"progressbar";"table";"onoff";"spinbox";"scalebar";"info";"menubar";"tooltip";"back";"waitbar3";"textbox";"scrollbar";"listbox";"canvas";"ui";"pipspager";"notebook";"ratingbar";"radiobox";"notecard";"pivot";"button2";"expander";"waitframe";"listview";"treeview"};vscroll=1;z=1};
static={cls="static";text='控件名称\r\n控件使用简短介绍';left=131;top=4;right=547;bottom=46;font=LOGFONT(h=-14);transparent=1;z=2}
)
/*}}*/
var wb=web.form(winform.custom)
wb.go('https://tinui.smart-space.com.cn/')
function change_docu(title,docu){
winform.static.text=title+'\r\n'+docu
}
//获取选定元素控件
winform.listbox.oncommand = function(id,event){
widget=winform.listbox.selText
if (widget==null){
return false;
}
index=winform.listbox.selIndex
docu=''
change_docu(widget,docu)
move_view(index)
}
//显示相应位置
function move_view(index){
//console.open()
html=wb.html
htmldoc=string.html(html)
//console.log()
text=htmldoc.html[1].body[1].div[1].h3[index*2-1].id//获取链接
wb.go('https://tinui.smart-space.com.cn/#'+text)
//wb.html=htmldoc.html[1].body[1].div[1].outerXml()
}
winform.show();
win.loopMessage();
return winform;
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册