|
44 | 44 | panel3 = Panel("Panel 3", x=30, y=30) |
45 | 45 | panel3.append( |
46 | 46 | Row([ # Field will be 200 wide, the Row column width setting. |
47 | | - Field(value="", hint="message", height=70, id="field_msg2", wrap=True), |
| 47 | + Field(value="", hint="message", height=70, id="field_msg3", wrap=True), |
48 | 48 | ("Actions:", Rows([ |
49 | 49 | Button("Send"), # However, buttons will be 100 wide, |
50 | 50 | Button("Save") # because their Rows parent says so. |
|
60 | 60 | # The field has its own dimensions (width=300 and height=50). |
61 | 61 | panel4 = Panel("Panel 4", x=400, y=30) |
62 | 62 | panel4.extend([ |
63 | | - Field(value="", hint="message", y=40, width=300, height=50, id="field_msg3", wrap=True, reserved=[]), |
| 63 | + Field(value="", hint="message", y=40, width=300, height=50, id="field_msg4", wrap=True, reserved=[]), |
64 | 64 | Button("Send") |
65 | 65 | ]) |
66 | 66 | panel4.pack() |
|
75 | 75 | # as well as the position of all controls: |
76 | 76 | panel5 = Panel("Panel 5", x=500, y=200, width=200, height=150) |
77 | 77 | panel5.extend([ |
78 | | - Field(value="", hint="message", x=10, y=60, width=180, height=50, id="field_msg3", wrap=True), |
| 78 | + Field(value="", hint="message", x=10, y=60, width=180, height=50, id="field_msg5", wrap=True), |
79 | 79 | Button("Send", x=10, y=20, width=180) |
80 | 80 | ]) |
81 | 81 |
|
|
0 commit comments