bazaar: BoostPyTest: some new exports, like TopWindow, Log, Prompt, Progress, Callback soon to come

git-svn-id: svn://ultimatepp.org/upp/trunk@3410 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
kohait 2011-05-10 19:39:30 +00:00
parent d40392943f
commit ba9eb36262
18 changed files with 269 additions and 3 deletions

View file

@ -52,6 +52,9 @@ BoostPyTest::BoostPyTest()
es.SetData("Hello from Upp");
scope(upp_module).attr("es") = ptr(&es);
scope(upp_module).attr("pr") = ptr(&pr);
//the additional import is needless
String sc =
@ -70,8 +73,21 @@ BoostPyTest::BoostPyTest()
"print upp.es.data\n"
"c = upp.Color(123,124,125)\n"
"print c"
"print c\n"
//"upp.vc.data = c\n"
"import time\n"
"upp.pr.create()\n"
"i = 0\n"
"while i < 10:\n"
" print i\n"
" upp.pr.text = str(i)\n"
" i = i+1\n"
" upp.pr.step(1)\n"
" time.sleep(1)\n"
"upp.pr.close()\n"
;
con.cmd.SetData(sc);