13 from pyfbsdk_additions
import *
16 def PopulateLayout(mainLyt):
24 mainLyt.AddRegion(
"main",
"main", x, y, w, h)
25 mainLyt.SetControl(
"main",main)
33 names = [
"from ->",
"left ->",
"to ->",
"right ->"]
42 names = [
"<- from",
"<- right",
"<- to",
"<- left"]
59 names = [(
"1/4 of width", 0.25), (
"1/2 of width", 0.5), (
"1/4 of width", 0.25)]
61 for name, ratio
in names:
64 box.AddRelative(b, ratio)
69 main.AddRelative(hstripes,1.0)
75 names = [
"from ",
"top",
"to",
"bottom"]
84 names = [
"from",
"bottom",
"to",
"top"]
101 names = [(
"1/4 of width", 0.25), (
"1/2 of width", 0.5), (
"1/4 of width", 0.25)]
103 for name, ratio
in names:
106 box.AddRelative(b, ratio)
107 vstripes.Add(box, 70)
109 main.AddRelative(vstripes,1.0)