Skip to content

Commit

Permalink
Tree-Checkbox Add MinSize
Browse files Browse the repository at this point in the history
Signed-off-by: Noel Power <noel.power@suse.com>
  • Loading branch information
noelpower committed Feb 8, 2023
1 parent 9df0f49 commit 6fae622
Showing 1 changed file with 38 additions and 36 deletions.
74 changes: 38 additions & 36 deletions examples/Tree-Checkbox.py
Expand Up @@ -7,42 +7,44 @@
class TreeCheckboxClient:
def main(self):
UI.OpenDialog(
VBox(
Heading("YaST2 Mini Control Center"),
Tree(
Id("mod"),
Opt("multiSelection"),
"Modules",
[
Item(
Id("country"),
Term("icon", "yast-yast-language.png"),
"Localization",
True,
[
Item(
Id("keyboard"),
Term("icon", "yast-keyboard.png"),
"Keyboard"
),
Item(
Id("timezone"),
Term("icon", "yast-timezone.png"),
"Time zone"
)
]
),
Item(Id("mouse"), Term("icon", "yast-mouse.png"), "Mouse"),
Item(Id("lan"), Term("icon", "yast-lan.png"), "Network"),
Item(Id("xmas"), Term("icon", "yast-software.png"), "Merry X-Mas"),
Item(
Id("newyear"),
Term("icon", "yast-software.png"),
"Happy New Year"
)
]
),
PushButton(Id("ok"), Opt("default"), "&OK")
MinSize( 40, 15,
VBox(
Heading("YaST2 Mini Control Center"),
Tree(
Id("mod"),
Opt("multiSelection"),
"Modules",
[
Item(
Id("country"),
Term("icon", "yast-yast-language.png"),
"Localization",
True,
[
Item(
Id("keyboard"),
Term("icon", "yast-keyboard.png"),
"Keyboard"
),
Item(
Id("timezone"),
Term("icon", "yast-timezone.png"),
"Time zone"
)
]
),
Item(Id("mouse"), Term("icon", "yast-mouse.png"), "Mouse"),
Item(Id("lan"), Term("icon", "yast-lan.png"), "Network"),
Item(Id("xmas"), Term("icon", "yast-software.png"), "Merry X-Mas"),
Item(
Id("newyear"),
Term("icon", "yast-software.png"),
"Happy New Year"
)
]
),
PushButton(Id("ok"), Opt("default"), "&OK")
)
)
)

Expand Down

0 comments on commit 6fae622

Please sign in to comment.