瀏覽代碼

adding layout example for metric

namnguyen 11 月之前
父節點
當前提交
474ec8e1bd
共有 1 個文件被更改,包括 6 次插入2 次删除
  1. 6 2
      doc/gui/examples/controls/metric-layout.py

+ 6 - 2
doc/gui/examples/controls/metric-layout.py

@@ -15,9 +15,13 @@
 # -----------------------------------------------------------------------------------------
 from taipy.gui import Gui
 
+custom_layout = {
+    "width": "1000",
+    "height": "500",
+}
+
 page = """
-<|50|metric|type=linear|>
-<|50|metric|type=circular|>
+<|30|metric|layout={custom_layout}|>
 """
 
 Gui(page).run()