Hope is a Dream. Dream is a Hope.

非公開ブログは再開しました。

UIチュートリアルを試す。その2

f:id:hope_is_dream:20141024053729p:plain

res = 
"dialog {\
    info: Panel{orientation:'column', alignChildren:'left',\
        text:'Personal Info',\
        n1: Group{ orientation: 'row',\
            s: StaticText{text:'Name:'},\
            e: EditText{characters:30},\
            b: Button{text:'ok'}\
            },\
        n2: Group{ orientation:'row',\
            s:StaticText{text:'Names:'},\
            e:EditText{characters:30},\
            b: Button{text:'ok'}\
            }\
    }\
    ,\
    info: Panel{orientation:'column', alignChildren:'left',\
        text:'Personal Info',\
        n1: Group{ orientation: 'row',\
            s: StaticText{text:'Name:'},\
            e: EditText{characters:30},\
            b: Button{text:'ok'}\
            },\
        n2: Group{ orientation:'row',\
            s:StaticText{text:'Names:'},\
            e:EditText{characters:30},\
            b: Button{text:'ok'}\
            }\
    },\
    b: Group { orientation: ’row’,\
        okBtn: Button { text:’OK’, properties:{name:’ok’} }, \
        cancelBtn: Button { text:’Cancel’, properties:{name:’cancel’} } \
    }\
}";
win = new Window (res); 
win.center();
win.show();