From 34a7aae90843e7cde776e5d6e1417919206f924d Mon Sep 17 00:00:00 2001 From: yumoqing Date: Wed, 17 Mar 2021 16:04:17 +0800 Subject: [PATCH] bugfix --- docs/cn/.binds.md.swp | Bin 16384 -> 0 bytes docs/cn/cdf.md | 43 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+) delete mode 100644 docs/cn/.binds.md.swp diff --git a/docs/cn/.binds.md.swp b/docs/cn/.binds.md.swp deleted file mode 100644 index 943231faaafc4e22fd47c1f25e583427f7d32679..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 16384 zcmeHNYiwI*89wW{EL^q$|Ij9#xq>8B>RvXssaht%x(iIBT`3b%2&of0tyjnPY-d#{ zmE0~DJE`NeOWLHh(YGo<_uIEhc-<~ZwjVvYhdxRUN$O~OMtr={ zf7>7a&f~jx?A*BZzI(Q8f9Rp>Hs8K&lfPrre)qE-8=F18mi@s^PG3uKQ;T;~v)k(o z+S{Dh?P@)+7_b=lC=9fRS~uQ*t919)Et}Wd?vlUs#qWNU(X74}0~P}o0~P}o0~P}o z0~P}o0~P}xLk2?rb<)2e_d4JS;3f?>I{4%MpK1Vqy-kw(fL`Elw@T7`z?(o07y_OKb^{Lr zUjg3vyd?bz_$BZLuneSt31A$!6SxCd2iyd_^EtE!-URjmj{=VX4*>u8tR(#%C;_{G zCxI)Uk)%HZ0pJtPUdsZE3q+UF|I5RDRa52*`uZN z!-Z3w+>1v!BvskkT*07YugkX0w$tNs1YL5A&)ez?w8~witA(tH5=MKt#kE28O zxPu`ZI)&UJ4|RD+Yl{wgV`?Xw)uEjsoNZgfX8XN$Kx3U`)26U(J1FF+(!N7Fb!b72 z&8cHqB^y_!kK|K*SF@+2DkVN&3P(%h%TNP9tD^~Jc34Tw;Hx@2nNRoSGfT>3XJMdQ ziN;EaaB=#uGB=?{E)|Y|j*OWUP=r_Y;0>sa$i6~}ww1nI~Z>YoXlHFdp!Nz}jVylyF?E%jLw{x#6WNTEP>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 @@ ## 其他属性 非上述属性的其他的字典属性,blocks会试图用此属性值来创建构件,如果成功,则将此构件在当前构件中保存为此属性名称,并可用使用属性名称当变量来调用 Blocks.getWidgetById()函数来获取 +## 例子 +### HELLO +``` + { + "widgettype":"VBox", + "options":{}, + "subwidgets":[ + { + "widgettype":"Title1", + "options":{ + "text":"Say Hello", + "i18n":True, + "size_hint_y":None, + "height":"py::CSize(2)" + } + }, + { + "widgettype":"Text", + "options":{ + "text":"Hello KivyBlocks" + } + } + ] + } +``` +##### 说明 +创建一个VBox类型的构件,VBox创建一个子构件垂直排列的容器,子构件按照顺序从上而下排列,在这个例子中,本VBox容器中放了两个子构件,一个是“title1”的标题1构件,另一个是Text构件,VBox不带参数是表示占满父构件的全部空间。 + +##### 显示效果 +[Hello](../imgs/hello_window.png) + +### 服务器来的构件字典数据 +``` + { + "widgettype":"urlwidget", + "options":{ + "params":{}, + "url":"{{entire_url('ctrl.ui')}}" + } + } +``` +#### 说明 +urlwidget的一个特殊的构件类型