这是一段简单的生成自定义界面代码。
包括:panel、splitter、输入框、按钮。
split1 = '###[name:split1,type:splitter,width:5,align:alleft]###'
panel1 = '###[name:panel1,type:panel,width:390,align:alleft,left:1,]###'
panel2 = '###[name:panel2,type:panel,align:alclient,]###'
print(panel2)
edit1 = '###[name:edit1,type:edit,parent:panel1,label:美国政治国家和资本权力先打起来了,text:aaa,width:200,top:40,left:140,]###'
button1 = '###[name:button1,type:button,tag:1,click:test1(),parent:panel1,caption:按钮1,left:20,top:250,width:60,height:20,align:alcustom,]###'
button2 = '###[name:button2,type:button,tag:2,click:test2(),parent:panel1,caption:按钮2,left:20,top:280,width:70,height:20,align:alcustom,]###'
def test1():
print("the test1 is selected!台海军事斗争新形势。")
def test2():
print("the test2 is selected! 超级油轮的好时候来了?")
生成界面: