Menu with buttons and checkboxes example 2¶
menu_2D.py¶
1# © 2024 Autodesk, Inc. All rights reserved.
2
3def hello():
4 print("Hello World!")
5
6menu1 = vrMenu(2, 1, 1)
7menu1.setPosition2D(10,10)
8menu1.addLabel("<font color=red>Menu</font>")
9menu1.addCheckBox("Show statistics", "showStatistic(item_state)")
10menu1.addPushButton("Hello World", "hello()")
11menu1.setAlpha(1)
12menu1.show()